Lets guide you through your code to show what exactly is wrong.
Starting with line 1.
Spawns = game.Workspace.Easy1.Spawns
function Tele()
wait(1)
game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new[Spawns.Location]
end
game.Players.PlayerAdded:connect(Tele)
Here is the updated code.
Spawns = game.Workspace.Easy1.Spawns
function Tele(player)
player:WaitForChild("Character")
player.Character.MoveTo(Spawns.Position)
end
game.Players.PlayerAdded:connect(Tele)
also, if you really want to use CFrame you will need to multiply it.
here is an example below
(try this out in studio to see what it looks like.)
game.Workspace.(NameOfPlayer).Torso.CFrame = game.workspace.Part.CFrame * CFrame.new(0,1,0);
And as a reminder The difference between using vector3 vs CFrame at least in roblox from what I have noticed is
when dealing with CFrames you multiply, but when dealing with Vector3's your add
1 comment
nah mate there is more than one way to help. Error handling does not always give you the right direction to take in coding.