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

How to make Custom Enemy [Custom Rig] ?

Asked by 6 years ago

So I've been finding a way to NOT USE HUMANOID and make my own. Use IntValue for Health and etc. I tried using AnimationController for the "Custom Enemy" it works fine. The thing is , I can't find a away to make the Custom Enemy to follow the Players.

Here's what I got so far.

local Self = script.Parent
local Target = game.Workspace.Target

while true do
    wait(0.1)
    Self.BodyPosition.P = 100
    Self.BodyPosition.Position =  Target.Position + Vector3.new(0,10,0)
end

I tried using BodyPosition , It follows the Target. (the further I move the target , the faster the 'self' flew to the target XD) Do you have any ideas rather than using BodyPosition? Or maybe you know how to improve my script?

Thanks in advance :D

0
is this an npc finding a player to attack? magentacrasyguy -7 — 6y
0
Something wrong with the default humanoid? It has everything you need for setting a target to move to and the pathfinding service isn't hard to use. xPolarium 1388 — 6y
0
Try using cframe. Qariter 110 — 6y

1 answer

Log in to vote
0
Answered by
Qariter 110
6 years ago
Edited 6 years ago

Try using CFrame,Vector3. I think there is no other way to move a rig(without a humanoid) to a player wihout CFrame or vector3. Of course, if you find a another way. *Psst, if you want a custom rig with a humanoid, try using the custom character plguin. *

1
Hehe , Thanks though.I'll find a other way XD Danielkaya 58 — 6y
0
Happy to help! Qariter 110 — 6y
Ad

Answer this question