Need help pls i'm new to scripting on roblox and i'm not sure how to script this :(
Hello i'm making a new game but i need a script for a vampire basically i need a Vampire Ki**ing Script that would ki*l any NPC player on touch i will add credit in game and in game description if the Script Works any help would be appreciated. i have sent this to some roblox scripters but got no reply :( so hopefully i can get help on here :)
If all you want to do is kill the player when they touch an object, put this script inside the object that you want to kill the player.
function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then -- if a humanoid exists, then humanoid.Health = 0 -- damage the humanoid end end script.Parent.Touched:connect(onTouch)
If you want the vampire to actually move towards the player then check out this guide on pathfinding.
https://developer.roblox.com/en-us/articles/Pathfinding
Closed as Not Constructive by hiimgoodpack and SoftlockedUnderZero
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?