[2X🍀] Tower Defense RNG
11.1k Views
97 Executions

auto roll traits (Read Description)

Tower Defense RNG
ShadowMonarch
ShadowMonarchPublished 5
2 years ago
Please login to perform these actions:

auto roll traits (Read Description) is a Tower Defense RNG script for Roblox, uploaded to ScriptBlox on Nov 12, 2024.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

It works but not very optimized make sure to have auto roll off before you execute and after execution just roll once on any tower or trap you want to roll on after you get the traits just press stop rolling and if you wanna roll on a different tower roll one it once then press start rolling ( i tried my best to make it detect traits that you have rolled and then stop the script if you get all traits but that didn't work out well) if anyone wants to make it better please be my guest as I am not that great at coding

View Raw
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local RollService = ReplicatedStorage:WaitForChild("_NetworkServiceContainer"):WaitForChild("RollService")

local activeUUID = nil
local rolling = true

local function createDraggableButton(buttonText, initialPosition, buttonColor)
    local CustomScreenGui = Instance.new("ScreenGui")
    local CustomButton = Instance.new("TextButton")
    local UICorner = Instance.new("UICorner")
    local UIStroke = Instance.new("UIStroke")
    local CoreGui = game:GetService("CoreGui")

    CustomScreenGui.Name = "RollingControlGUI"
    CustomScreenGui.Parent = CoreGui
    CustomScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
    CustomScreenGui.ResetOnSpawn = false

    CustomButton.Parent = CustomScreenGui
    CustomButton.BackgroundColor3 = buttonColor or Color3.fromRGB(255, 255, 255)
    CustomButton.BackgroundTransparency = 0.5
    CustomButton.Position = initialPosition
    CustomButton.Size = UDim2.new(0.1, 0, 0.05, 0)
    CustomButton.Text = buttonText
    CustomButton.TextColor3 = Color3.fromRGB(255, 255, 255)
    CustomButton.TextScaled = true

    UICorner.CornerRadius = UDim.new(1, 0)
    UICorner.Parent = CustomButton

    UIStroke.Parent = CustomButton
    UIStroke.Thickness = 2
    UIStroke.Color = Color3.fromRGB(0, 0, 0)

    local dragging
    local dragInput, dragStart, startPos

    CustomButton.InputBegan:Connect(function(input)


Comments

6
Log in to join the conversation. Login
ItzDevilBacon's profile picture
ItzDevilBacon2 years ago(edited)

my script is remix for his, the mechanic is almost same

1
tykunoma's profile picture
tykunoma2 years ago(edited)

very cool LIKE :)

1
EZZZZZ's profile picture
EZZZZZ2 years ago(edited)

nice script LIKE :)

1
ShadowMonarch's profile picture
ShadowMonarchUploader2 years ago(edited)

🤫

1
Nugger's profile picture
Nugger2 years ago(edited)

GPT

1
ShadowMonarch's profile picture
ShadowMonarchUploader2 years ago(edited)

I tried my best to make it as optimized as possible please read description before using it

1

More Tower Defense RNG scripts

See all