~~ Not the best scripter ~~
function onClicked(plr)
if plr.PlayerGui.Value.Value == 4 then
plr.PlayerGui.Value.Value = 0
local D = plr.PlayerGui.DValue
local F = plr.PlayerGui.FValue
local G = plr.PlayerGui.GValue
local H = plr.PlayerGui.HValue
D.Value = false
F.Value = false
G.Value = false
H.Value = false
if plr.Character:FindFirstChild("Torso") then
plr.Character.Torso.CFrame = CFrame.new(script.Parent.TelePosition.Value)
wait()
plr.Character.Torso.CFrame = CFrame.new((plr.Character.Torso.Position.X + 0), (plr.Character.Torso.Position.Y + 0.5),(plr.Character.Torso.Position.Z + 0))
else print'already has'
end
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |