game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:connect(function(char) if char then char.HumanoidRootPart.CFrame = CFrame.new(38.552, 0.5, 119.404) print('Worked') end end)
Basically i want the player when it spawns to teleport automatically to a part, it still goes weird.
runservice works for me whenever i try any of this
local svrun = game:GetService("RunService") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) svrun.Stepped:Wait() if char then local root = char:WaitForChild("HumanoidRootPart") root.CFrame = CFrame.new(38.552, 0.5, 119.404) print('Worked') end end)
Can't you just use a spawn location from the toolbox? And just make it transparent and cancollide = true aswell as deleting the decal will make it compeletly invisible aswell as teleporting the player when they join.