script: local NPC = script.Parent local HumanoidRootPart = NPC.HumanoidRootPart local MaxDistance = math.huge local debounce = false NPC.Humanoid.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and not debounce then debounce = true hit.Parent.Humanoid.Health -= 20 wait(1) debounce = false end end) while wait() do local Players = game.Players:GetPlayers() local closest for i, plr in pairs(Players) do if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude if not closest then closest = PlayerHumanoidRootPart end if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then closest = PlayerHumanoidRootPart end
end end if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
Note to those that might be encountering an issue where the npc won't move despite the entire script being typed in: Make sure to drag ChaseScript onto Rig
I'm probably of no help 4 months later, but if you go into the Rig > Humanoid, then into the Humanoid properties, and scroll down to Game, there is MaxHealth, which in short term can help if you give it a really high number Edit: I tried creating a code, which I suck atAnd I couldn't get it to work. AI helped make this (which I wrote most of.) Try reading already existing codes and sometimes Studio will help but you can always ask AI which I found is an amazing tool for learning code. Just put the script in the Humanoid space and give the Rig a name so you can keep track of them. I chose "Rig1" as the name and where Rig1 is in the code, replace with what you want. I also added some yapping so you can make some sense of it... hopefully ------------------------------------------------------------------- local humanoid = workspace.Rig1.Humanoid if humanoid.MaxHealth < 100 then humanoid.MaxHealth = 100 end ---It is saying if the max health is less than 100 (The max value), it is equal to 100 while true do --While that is true (That it is less than 100 and SHOULD be equal to 100) if humanoid.Health < humanoid.MaxHealth then --if the health of the humanoid is less than the max health humanoid.Health = humanoid.MaxHealth --It is set to equal max health end wait(1)--wait 1 second to repeat which should be enough, but I heard it is possible for wait code to be laggy if there are a lot end
Hey, your script works perfectly with running and chasing the player, but how do i make the npc to jump over the obstacles? Im just new to scripting so sorry if its a stupid question
Just Added New script And write this local Npc = script.Parent local hum = Npc:FindFirstChild("Humanoid") hum.Died:Connect(function() wait(2) Npc:Destroy() end)
Thank you so much, it actually works. One question though, if there are multiple of these rigs that keep attacking each other instead of the player, how do I make it so they don't attack each other. If you give an answer ill subscribe
i think what he’s trying to say is u need to add in a line ( or part of the same line) that also checks the name of the parent of the “humanoid” part and make sure that the name of the parent isn’t *insert name of npc*
but idk i tried changing the line to "if hit.Parent:FindFirstChild("Humanoid") and not debounce and not hit.Parent:GetFullName("*insert name*") then" and it didn't do anything
Made my own changes in the code that seems to work, starting from line 8: NPC.Humanoid.Touched:Connect(function(hit) if hit.Parent.Name ~= "Name of your npc:s" then if hit.Parent:FindFirstChild("Humanoid") and not Debounce then Debounce = true hit.Parent.Humanoid.Health -= 20 wait(1) Debounce = false end
end
end) If hit.parent (The rig) doesn't have the npc:s name. Then it's able to kill it. Just remember to keep the quotation marks and it will hopefully work!
Pleaseee, your videos are amazing but I had problems with this one, I used a rig from the toolbox of sonic exe and it only does damage when I touch him but he doesn’t chase.. what do I do. Was it bc I didn’t do the same rig as you or no..? I just really need to figure it out. Please and thank you🙏
Hey Devmelon, i really enjoyed your help and script, however whenever i destroy the npc the parts do not disappear, i need help with this because its causing my games to crash
TYSM! i was making a game based on my school lunch moniter and she puts us through hell everyday and my buddies told me to make a scary roblox game abt her so i took a good accurate cosplay of her and made the killer NPC with this tut and now i have scary roblox game!!!! THANK YOU SO MUCH I WOULDNT BE ABLE TO DO THIS WITHOUT YOU!!!!!!!
I tried to do the chase script and after i was done it didnt work i do think it had something to do line 37 where you had “if Closest and (HumanoidRootPart.Position - Closest.Position).Magnitude
I have a small question. I made a bunch of enemies but i don't want them to attack each other. However I don't really know how to fix that so could you make a video on how to make that?
Hey thanks for helping me with my game! (your prob not going to see this) but how can i make it so the rig will chase after a player when its near them? thanks for helping me with my game and i hope you have the time to respond
Hey! I think I. Will make a renewed version of the tutorial but there’s a way of checking the distance between the player and the dummy and checking if it’s lower
how make modle like this? i got 3d modle from a website and now i wanna chase player and attack it (i don't care aboud animation) Becuse my modle doesn't have any humanoid so script not do anything
name the rig to NPC script is local NPC = script.Parent local HumanoidRootPart = NPC.HumanoidRootPart local MaxDistance = math.huge local debounce = false NPC.Humanoid.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and not debounce then debounce = true hit.Parent.Humanoid.Health -= 20 wait(1) debounce = false end end) while wait() do local Players = game.Players:GetPlayers() local closest
for i, plr in pairs(Players) do if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude
if not closest then closest = PlayerHumanoidRootPart end
if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then closest = PlayerHumanoidRootPart end
end end
if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
Hey devmelon! I watched your tutorial on how to make a difficult chart obby and it really helped! How did you learn code? I want to learn lua too but I cant learn it. Its too hard.
Finally a script that works I have looked trough so many tutorials and they have just been filled with people that cant speak properly and they also dont teach you anything they just say copy this script that I have linked in the description.
This is very good cause you dont just give the viewer a free model and say use this you teach the user how to make one themself also how do you make it so a zombie can hit you from a certain distance?
idk if you'll respond but is there a way to make it so that the npc stops following you after you get a certain distance away, and starts attacking you when you get close enough?
It follows me, but doesn't kill is there a way to fix that I copied and pasted it from Bluewithafruit but it works and everything just not the kill part but I need it for my game lol
Can someone send a link to the script through pastebin? for some reason it isn't working for me and i think it is because of the position of the end but i tried to fix that to make everything align exactly how the video's script sentences are positioned and it still doesn't work
local NPC = script.Parent local HumanoidRootPart = NPC.HumanoidRootPart local MaxDistance = math.huge local debounce = false NPC.Humanoid.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and not debounce then debounce = true hit.Parent.Humanoid.Health -= 20 wait(1) debounce = false end end) while wait() do local Players = game.Players:GetPlayers() local closest
for i, plr in pairs(Players) do if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude
if not closest then closest = PlayerHumanoidRootPart end
if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then closest = PlayerHumanoidRootPart end
end end
if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
local NPC = script.Parent local HumanoidRootPart = NPC.HumanoidRootPart local MaxDistance = math.huge local debounce = false NPC.Humanoid.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and not debounce then debounce = true hit.Parent.Humanoid.Health -= 20 wait(1) debounce = false end end) while wait() do local Players = game.Players:GetPlayers() local closest for i, plr in pairs(Players) do if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude if not closest then closest = PlayerHumanoidRootPart end if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then closest = PlayerHumanoidRootPart end
end end if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
Thanks for watching! If you enjoyed make sure to like and also comment any suggestions below!
Can you make another video like this but with a more advanced ai? (e.g moving around parts) It would really help!
Is this for r6 too??
How to put script in description of a devmelon video tutorial
Yeeeeeee NICE VIDEO!
how do you make it to where it only chases you when in a certain range
script:
local NPC = script.Parent
local HumanoidRootPart = NPC.HumanoidRootPart
local MaxDistance = math.huge
local debounce = false
NPC.Humanoid.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and not debounce then
debounce = true
hit.Parent.Humanoid.Health -= 20
wait(1)
debounce = false
end
end)
while wait() do
local Players = game.Players:GetPlayers()
local closest
for i, plr in pairs(Players) do
if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then
local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart
local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude
if not closest then
closest = PlayerHumanoidRootPart
end
if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then
closest = PlayerHumanoidRootPart
end
end
end
if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
you saved me from finding a typo
OMG BRO TYSM I WAS TRYING TO SEARCH FOR A TYPO FOR 30 MIN BUT U SAVED ME
you just saved my keyboard bro 😂
Thank You!!!
THANK YOU SO MUCH BRO
Awesome video! Very Helpful and insightful
Glad it was helpful!
Wait death ur here too?!🤓
finaly someone explaining the script not just giving it to us to copy it thanksss
Thansk!
Note to those that might be encountering an issue where the npc won't move despite the entire script being typed in: Make sure to drag ChaseScript onto Rig
w video bro keep it up
Thanks!
Can you make it so you get a leaderstat/variable when you kill it
How can you make it so one npc attacks another NPC thats on another team
I managed to stitch together a working script for my request
How would i make it immortal or something like that bc if i put 2 they kill eachother
I'm probably of no help 4 months later, but if you go into the Rig > Humanoid, then into the Humanoid properties, and scroll down to Game, there is MaxHealth, which in short term can help if you give it a really high number
Edit: I tried creating a code, which I suck atAnd I couldn't get it to work. AI helped make this (which I wrote most of.) Try reading already existing codes and sometimes Studio will help but you can always ask AI which I found is an amazing tool for learning code.
Just put the script in the Humanoid space and give the Rig a name so you can keep track of them. I chose "Rig1" as the name and where Rig1 is in the code, replace with what you want. I also added some yapping so you can make some sense of it... hopefully
-------------------------------------------------------------------
local humanoid = workspace.Rig1.Humanoid
if humanoid.MaxHealth < 100 then
humanoid.MaxHealth = 100
end ---It is saying if the max health is less than 100 (The max value), it is equal to 100
while true do --While that is true (That it is less than 100 and SHOULD be equal to 100)
if humanoid.Health < humanoid.MaxHealth then --if the health of the humanoid is less than the max health
humanoid.Health = humanoid.MaxHealth --It is set to equal max health
end
wait(1)--wait 1 second to repeat which should be enough, but I heard it is possible for wait code to be laggy if there are a lot
end
the best of all the devs. love the work dev melon.
Thank you good sir
You're fr one of the best Roblox Devs on RUclips right now.
Thanks!
How would i be able to change the max distance, like if you were in a certain range it would follow you
You set the max distance on the script
@@devmelonroblox could i do local maxDistance = 10 ?
@@Rushing-know yes
Hey, your script works perfectly with running and chasing the player, but how do i make the npc to jump over the obstacles? Im just new to scripting so sorry if its a stupid question
Bro, I can't work, I've been trying for an hour but everything I've done has failed, everything I've done has failed😢
same
Copy and paste this into the old line 2: local HumanoidRootPart = NPC.HumanoidRootPart
Is should work
NO WAY! This is amazing. YOU literally read my mind. I was looking for the perfect video, and i think i found it! Thanks so much!
You're so welcome!
When you kill the npc hes body stays there , it takes damage when someone walks over it , how do I make him desapear after death??!!?!
Just Added New script And write this
local Npc = script.Parent
local hum = Npc:FindFirstChild("Humanoid")
hum.Died:Connect(function()
wait(2)
Npc:Destroy()
end)
@@MrJackeeper Thanks a lot :D
Thank you so much, it actually works. One question though, if there are multiple of these rigs that keep attacking each other instead of the player, how do I make it so they don't attack each other. If you give an answer ill subscribe
@@LastReelX check in the chasing and damage script if the name of hit.Parent or target is not the name of the npc
you can do if game.Players:FindFirstChild(hit.Partent.Name) then
that should work
youre literally my roblox studio teacher lmao
Ahahah
fr
How do you make it so that multiple npcs dont kill each other but kill you only
You can name them all one name and where it checks for humanoid you can do if name ~= “name of npc”
@@devmelonrobloxcan u explain in more detail
i think what he’s trying to say is u need to add in a line ( or part of the same line) that also checks the name of the parent of the “humanoid” part and make sure that the name of the parent isn’t *insert name of npc*
but idk i tried changing the line to "if hit.Parent:FindFirstChild("Humanoid") and not debounce and not hit.Parent:GetFullName("*insert name*") then" and it didn't do anything
Made my own changes in the code that seems to work, starting from line 8:
NPC.Humanoid.Touched:Connect(function(hit)
if hit.Parent.Name ~= "Name of your npc:s" then
if hit.Parent:FindFirstChild("Humanoid") and not Debounce then
Debounce = true
hit.Parent.Humanoid.Health -= 20
wait(1)
Debounce = false
end
end
end)
If hit.parent (The rig) doesn't have the npc:s name. Then it's able to kill it. Just remember to keep the quotation marks and it will hopefully work!
plsssss help u didnt make a code for allowing him to die
i tried to do it but it didn't work to well,it only took damage
beautiful intro
thanks lol
Pleaseee, your videos are amazing but I had problems with this one, I used a rig from the toolbox of sonic exe and it only does damage when I touch him but he doesn’t chase.. what do I do. Was it bc I didn’t do the same rig as you or no..? I just really need to figure it out. Please and thank you🙏
Do you get any errors in your script?
@@devmelonrobloxno, but does it matter that I didn’t animate it and only copy and pasted the animate script?
this awesome! defenitly deserve more subscribers
How do I make it so that when the npc dies it stops dealing damage?
Hey Devmelon, i really enjoyed your help and script, however whenever i destroy the npc the parts do not disappear, i need help with this because its causing my games to crash
TYSM! i was making a game based on my school lunch moniter and she puts us through hell everyday and my buddies told me to make a scary roblox game abt her so i took a good accurate cosplay of her and made the killer NPC with this tut and now i have scary roblox game!!!! THANK YOU SO MUCH I WOULDNT BE ABLE TO DO THIS WITHOUT YOU!!!!!!!
bruh finally a scipt that ACUALLY WORKED thx devmelon you helped me ALOT
my enemy npcs keep killing each other and then when u touch them their remains hurt u HELP
you could instead do a script to where it Destroy()'s the body parts of the npc upon death, not sure if it may work but try it if all else fails
I tried to do the chase script and after i was done it didnt work i do think it had something to do line 37 where you had “if Closest and (HumanoidRootPart.Position - Closest.Position).Magnitude
U have output windows opened? If you're not getting any errors, try putting print("test") in your script and see if it prints it.
He put it in the wrong place then he moved it down
THANKS SO MUCH, i think this is the only tutorial that works and gives animation to it. tysm + 1 sub
i love how he showcased the thing before explaining it xD
Ahahah thanks
Would this still work if im at the top of stairs and the npc is at the bottom?
How can we add an animation on its walking/running and attack mode?
I have a small question. I made a bunch of enemies but i don't want them to attack each other. However I don't really know how to fix that so could you make a video on how to make that?
same
if hit.Parent:FindFirstChild(script.Name) then return end -- add this line before doing damage above debounce = true
Hey thanks for helping me with my game!
(your prob not going to see this) but how can i make it so the rig will chase after a player when its near them?
thanks for helping me with my game and i hope you have the time to respond
Hey! I think I. Will make a renewed version of the tutorial but there’s a way of checking the distance between the player and the dummy and checking if it’s lower
It’s quite hard to explain in comments
Oh wow you actually did respond! That’s fine though I will try my best!
@@DaLemonMonke815 ofc! Good luck with ur game
how would i insert a custom running animation i made so that it will play when he runs
Change the animation in animate script it’s called run
how make modle like this? i got 3d modle from a website and now i wanna chase player and attack it (i don't care aboud animation)
Becuse my modle doesn't have any humanoid so script not do anything
my npc isnt moving any advice?
Same
It could be anchored, try unanchoring it
@@Mr_Budders ok
Look in the output and click the red it should take you to where the error is and fix it.
name the rig to NPC
script is
local NPC = script.Parent
local HumanoidRootPart = NPC.HumanoidRootPart
local MaxDistance = math.huge
local debounce = false
NPC.Humanoid.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and not debounce then
debounce = true
hit.Parent.Humanoid.Health -= 20
wait(1)
debounce = false
end
end)
while wait() do
local Players = game.Players:GetPlayers()
local closest
for i, plr in pairs(Players) do
if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then
local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart
local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude
if not closest then
closest = PlayerHumanoidRootPart
end
if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then
closest = PlayerHumanoidRootPart
end
end
end
if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
what about adding an animation to it with cooldowns
how would i make the detection range of the enemy lower (im making a castle i only want it to follow you when you go in)
if you know tell me
@@gdzh i found out but i can't put the full thing in the comments cuz it doesn't go through
@@beastmomkiok😢
Someone help me it’s not working and the output says there are no errors
Hey devmelon! I watched your tutorial on how to make a difficult chart obby and it really helped! How did you learn code? I want to learn lua too but I cant learn it. Its too hard.
I think I learned by watching dev kings beginner tutorials
Finally a script that works
I have looked trough so many tutorials and they have just been filled with people that cant speak properly and they also dont teach you anything they just say copy this script that I have linked in the description.
i made my own custom modle but it wont move it only follows my direction
It did not work😢
Same😢
Could you teach us how we can be one of the enemies?
hey man i just came here to tell u that u that ur videos are useful, funny, and informative 🤓🤓🤓 but jokes aside u actually need more than 1.9k subs
Thanks
devmelon thank you and i subscribe you. can you make a video about the hiding system from the enemy?
Its gives me error
Workspace,rig,ai:30: attempt to compare vector3 < number how i fix it
Thanks❤ and how do you replace the animations with different ones?
Yopu check the naimation script and there will be the run id in there youll find it
This is very good cause you dont just give the viewer a free model and say use this you teach the user how to make one themself also how do you make it so a zombie can hit you from a certain distance?
Why when i died it stop chasing me
It works well unless more than 1 npc is near eachother, then they will kill eachother
You can add a code so that it doesn’t follow if the persons name is npc and name all the npcs npc
@@devmelonrobloxhow to do that?
How to add animation in There?
So I’m trying to do this but with a pumpkin (basically a model pumpkin) am I able to apply this to my pumpkin as well?
yes
devmelon: and it will-.. and it will allow-.. and it will allow you-... and it will allow the NPC to damage you.
😭
idk if you'll respond but is there a way to make it so that the npc stops following you after you get a certain distance away, and starts attacking you when you get close enough?
Something with magnitude and positions
looking good, devmelon but it's better when it has attack animations so the enemy npc would be epic.
How can I make a script that the dummy will respawn and still attack me?
Thank you So much (very very helpful
I tired this script but its stuck just looking around its not moving or giving me damage
when i kill the npc it still follows me around.. the following part is the humanoidrootpart...
it solved my problem thanks so much
im just wondering how you can give them a punching animation?
This works perfectly fine on the client but as soon as more than one player is on the server it doesnt follow one of them. How can I fix that?
what am i copy and pasting for the animate?
How can i make it spawn randomly around my map and multiple of them
Is it possible to make the chasing NPC follow you in a way while flying? The way it falls off into the void is not what i want.
Hey, I made multiple enemies, and they keep killing each other. Is there a way to fix this?
TYSM the other yt gave me fake scripts tysm!!! def earned a sub
It follows me, but doesn't kill is there a way to fix that I copied and pasted it from Bluewithafruit but it works and everything just not the kill part but I need it for my game lol
NPC doesn't damage you when you stand on top of it and also how do I adjust it's speed?
How can you make is chase you from a limited amount of range because now it chases you from across the map
ask chat gpt, im learning from Him to scripting he knows a lot
But how Do I stop enemies from killing each Other? New Sub
Can someone send a link to the script through pastebin? for some reason it isn't working for me and i think it is because of the position of the end but i tried to fix that to make everything align exactly how the video's script sentences are positioned and it still doesn't work
Hey devmelon ive tried typing the script that you did in the video and it doesn't seem to work so idk what i did wrong.
local NPC = script.Parent
local HumanoidRootPart = NPC.HumanoidRootPart
local MaxDistance = math.huge
local debounce = false
NPC.Humanoid.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and not debounce then
debounce = true
hit.Parent.Humanoid.Health -= 20
wait(1)
debounce = false
end
end)
while wait() do
local Players = game.Players:GetPlayers()
local closest
for i, plr in pairs(Players) do
if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then
local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart
local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude
if not closest then
closest = PlayerHumanoidRootPart
end
if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then
closest = PlayerHumanoidRootPart
end
end
end
if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
Yo Devmelon, How to make a pathfinding npc that attacks you?
How do we add animations to the npc?
Using the animate script you change the animations
can anyone help i did it but my rig is just floating and doing the fall animation
How do u make it so he only attacks when u get close to him?
how do i make it then when the player approaches the npc he starts following him
Change math.huge to wtv range you want
local NPC = script.Parent
local HumanoidRootPart = NPC.HumanoidRootPart
local MaxDistance = math.huge
local debounce = false
NPC.Humanoid.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and not debounce then
debounce = true
hit.Parent.Humanoid.Health -= 20
wait(1)
debounce = false
end
end)
while wait() do
local Players = game.Players:GetPlayers()
local closest
for i, plr in pairs(Players) do
if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character.Humanoid.Health > 0 then
local PlayerHumanoidRootPart = plr.Character.HumanoidRootPart
local Distance = (HumanoidRootPart.Position - PlayerHumanoidRootPart.Position).Magnitude
if not closest then
closest = PlayerHumanoidRootPart
end
if (HumanoidRootPart.Position - closest.Position).Magnitude > Distance then
closest = PlayerHumanoidRootPart
end
end
end
if closest and (HumanoidRootPart.Position - closest.Position).Magnitude
BRO THANK YOUUUU
It worked the first time but when I colored it it stopped working
Make sure you spelled everything correctly
how the hell do u kill the npc? for the life of me i can't get it to die, it just keeps following me after death
Is there any way to add a range of agro for the rig so it does t attack me from anywhere?
change the math.huge on the MaxDistance into any number you want, that works for me
What if you don't want it to chase you but attack upon entering the radius?
After I kill it no matter how far away I run it still can deal damage to me
Is there a way to make an area inaccessible for it? To prevent it getting stuck I mean.
how do u make it so when u get touched by it u get kicked instead
yo dev melon how do i make the rig not hurt any other rigs i might put on there?
Bro why dont you try this idea, it will make it lot easier for us to do:
Just copy paste your coding in the description its really helpful ngl...
It is not making an animation for me, can you help me with this?
is it possible to make a safe zone where the npc wont go inside of?
It's good, but if spawn too much they can kill each other, can you make them cannot kill each other?
thank you so much
0:25 IT ACTUALLY OOF MY BRAIN
can you make one where a mesh model can attack cause I can't find one of those videos
Can I use a R6 dummy for this?