I'm trying to make this humanoid thing follow me when I spawn, but it broke.

while true do 
	wait(0.01)
	local plr = game.Players.LocalPlayer
	local char = plr.Character
	pos = char.Torso.Position
	script.Parent.BodyPosition = pos
end

This is a SCRIPT, not a local script, in a creature in lighting. What am I doing wrong?

2 comments

0

You're using "LocalPlayer" which only works in LocalScripts

0

l;jk