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

how to make a part look at me where i'm going whenever i enter a zone in the game?

Asked by 1 year ago

basically whenever someone enters in his zone he starts doing so

1 answer

Log in to vote
0
Answered by 1 year ago

Use a boolean variable when the player enters the zone. I'll name it "zoneEntered"

part = -- your part here
zoneEntered = false  -- set to true when player enters the zone

while wait() do
  if zoneEntered then
    part.CFrame = CFrame.lookAt(part.Position, player.Head.Position) -- change player to the player's character
  end
end

I typed everything on mobile so let me know if there's errors

Ad

Answer this question