Before you go, I have another question.
I receive this error
What part of the code is line 15 now?
I meant to post it. The forum is being weird for some reason.
target.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Jail.Teleporter.Position)
You could use target.Character:WaitForChild('HumanoidRootPart').CFrame
instead, usually helps if the script is loaded before the instance youâre looking for.
is it .WaitForChild()
or :WaitForChild()
? it is a common error that happens, using the period instead of two period character
Itâs :WaitForChild(). Iâm not sure whatâs wrong though.
target is just a string is it not? You havenât gotten the player instance.
Is it ok if you resend the script as it is now? Thatâd help us look for the issues
I just fixed it as soon as you sent that. I changed the line to this (I cant even tell what I did):
workspace:WaitForChild(target).HumanoidRootPart.CFrame = CFrame.new(workspace.Jail.Teleporter.Position)