I'm trying to get the player's character.
local player = game.Players:WaitForChild("LocalPlayer") -- Wait for player join local char = player:WaitForChild("Character") -- Wait for character add char.HumanoidRootPart.CFrame = CFrame.new(100, 500, 136)
Can't get the LocalPlayer like that. The character either. Two ways to get the character , first get the player
local players = game:GetService("Players") local plr = players.LocalPlayer or players.PlayerAdded:Wait() local char = plr.Character or plr.CharacterAdded:Wait() char.HumanoidRootPart.CFrame = CFrame.new(100,500,136)