#Getting "TextButton is not a valid member of ImageButton" when running my autoclicker

9 messages · Page 1 of 1 (latest)

verbal raptor
#

so I made an auto clicker from a yt video and a comment said to apply this script if it wouldnt stop and it worked but I dont know how to fix that error

hybrid shuttle
#

bro, please copy and past script with lua format

mighty cipher
#

:FindFirstChildWhichIsA("TextButton")

#

because it might be named something else

verbal raptor
# hybrid shuttle bro, please copy and past script with lua format

local player = game.Players.LocalPlayer
local leaderstats = player.leaderstats
local clicks = leaderstats:WaitForChild("Clicks")
local Player = game.Players.LocalPlayer

local Clicks = Player:WaitForChild("leaderstats"):WaitForChild("Clicks")
local Rebirths = Player:WaitForChild("leaderstats"):WaitForChild("Rebirths")

local isOn = false

script.Parent.MouseButton1Click:Connect(function()
if isOn == false then
isOn = true
script.Parent.TextButton.Text = "ON"
else
isOn = false
script.Parent.TextButton.Text = "OFF"
end
end)

while true do
if isOn == true then
clicks.Value = clicks.Value + (1 * (Rebirths.Value * 2))
end
wait(0.1)
end

verbal raptor
verbal raptor
#

I get a red line under the =