Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I fix this script for IOS teleporting?

function onClicked()
	if script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Board") ~= nil then
		script.Parent.Parent.Parent.Parent.Character.Board:remove()
	end
	script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(171.677, 697.81, 471.344) 
end
script.Parent.MouseButton1Down:connect(onClicked)


any way you can help guys ?

1 comment

0

Oh it is all on a surface GUi.

3 answers

e.e?

function Clicked()
    if script.Parent.Parent.Parent.Parent.Character:FindFirstChild("Board") ~= nil then
        script.Parent.Parent.Parent.Parent.Character.Board:remove()
    end
    script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(171.677, 697.81, 471.344) 
end
script.Parent.MouseButton1Down:connect(Clicked)
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(171.677, 697.81, 471.344) 

try changing to

script.Parent.Parent.Parent.Parent.Character:MoveTo(171.677, 697.81, 471.344)

This discussion is preserved as it was. New answers, comments, and votes are closed.