Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Why isn't my creature following me?

Asked by
Aeike 9
6 years ago

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?

0
You're using "LocalPlayer" which only works in LocalScripts Rawblocky 217 — 6y
0
l;jk Aeike 9 — 6y

Answer this question