#Getting "TextButton is not a valid member of ImageButton" when running my autoclicker
9 messages · Page 1 of 1 (latest)
bro, please copy and past script with lua format
use
:FindFirstChildWhichIsA("TextButton")
because it might be named something else
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
Do I add it where it says script.Parent and then I replace it with :FindFirstChildWhichIsA("TextButton") instead of TextButton.Text?
yeah
I get a red line under the =