Why wont this work?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
I am currently making a game that is a spot the difference prison escape game and I am using click teleports I have scripted.
The click teleport has a clickdetector with a range of 32 for the correct answer and the script is
03 | local c = game.Players:GetChildren() |
05 | c [ i ] .Character.Torso.CFrame = CFrame.new(script.Parent.Parent.OnePartTele.Position) |
10 | script.Parent.ClickDetector.MouseClick:connect(onClicked) |
Because the brick for where it should teleport is name "OnePartTele" and it works. For the next stage I did the same thing a click detector with range of 32 and the same script but changed "OnePartTele" to "PartTwo" and the script is
03 | local c = game.Players:GetChildren() |
05 | c [ i ] .Character.Torso.CFrame = CFrame.new(script.Parent.Parent.Part 2. Position) |
10 | script.Parent.ClickDetector.MouseClick:connect(onClicked) |
for the second teleport the script is not working,
Anyone know how I can fix this?