Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make Custom Enemy [Custom Rig] ?

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

3 comments

0

is this an npc finding a player to attack?

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.

0

Try using cframe.

1 answer

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. *

2 comments

1

Hehe , Thanks though.I'll find a other way XD

0

Happy to help!

This discussion is preserved as it was. New answers, comments, and votes are closed.