Assignment Tracker

Assignments Calendar

Roblox - Creating an Enemy (Script)

Visit Wolfman Art






Enemy Script


local enmhum = script.Parent.Humanoid
local anm = script.Parent.Humanoid.Animation
local load = script.Parent.Humanoid:LoadAnimation(anm)

while wait() do
  for i,v in pairs (game.Players:Getchildren()) do
  local character = game.Workspace:WaitForChild(v.Name)
  enmhum:MoveTo(character.PrimaryPart.Position)
  load:Play()
  enmhum:MoveToFinished:Wait(1)
  load:Stop()
end
end

Comments

WolfmanArtist - Popular Posts