Hello, I’am devloving a game and I need get a script for when u click to a part it tp to u to other part, I done one but it isn’t working
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
: mines: (function onClicked()
local p = game.Players:GetChildren()
for i = 1, #p do
p[i].Character:MoveTo(Vector3.new(-508.431, 1.3, -307.572))—Put here the positon
then
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Works with click detector.
I need help because if not I cant do good something, please, help.