Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I Really Need Help With This AFK Tele Gui Script can you help?

Asked by 8 years ago

I have it set up but it won't work, can you guys please help Here it is:

click = false

function onClick()
if click() == true then 
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-215.1, 1.5, 950.3)
script.Parent.Text = "AFK"
click = true
elseif click == true then
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(61.24, -1977.74, 0.005)
script.Parent.Text = "BACK"
click = false
end
end

script.Parent.MouseButton1Click:connect(onClick)
0
Omg Please Help ;~; christiannewman 0 — 8y
1
Your problem is lines 4 and 8; You set both of them up to check if 'click' is true, and you set up line 4 for 'click' as a function. :P TheeDeathCaster 2368 — 8y
0
oh xD christiannewman 0 — 8y
0
Please change the question to [ANSWERED] deputychicken 226 — 8y
View all comments (4 more)
0
How do I fix it? what do I remove? christiannewman 0 — 8y
0
k christiannewman 0 — 8y
0
the first answer didn't work christiannewman 0 — 8y
0
Can you just send me the fixed script to my roblox Please christiannewman 0 — 8y

1 answer

Log in to vote
-2
Answered by 8 years ago

Remove Line 8

Ad

Answer this question