Every time I touch the button that makes you teleport, It always says that vector3 isn't a member of Part. Can someone help me out?
Heres the script:
function Teleporter() script.Parent.vector3.new(workspace.SpawnLocation2.Position + Vector3.new(0,5,0)) end script.Parent.Touched:connect(Teleporter)
You din't write the script write. It should look like this.
function Teleport() script.Parent.Position = Vector3.new(game.Workspace.SpawnLocation2.Position + Vector3.new(0, 5, 0)) end --Or if you want to teleport the player. function Teleport(Hit) if Hit.Parent and Hit.Parent:FindFirstChild("Humanoid") then Hit.Parent:MoveTo(game.Workspace.SpawnLocation2.Position + Vector3.new(0, 5, 0)) end end script.Parent.Touched:connect(function(Teleport)