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

i need a Scripter to help me please?

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 :)

2 comments

0

This isn't a request site. Provide the script you're working on and ask for help on a specific problem in the script.

0

agreed

1 answer

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

1 comment

0

okay just wondering because the game i'm making is your player is the vampire but you ki*l non-playable characters basically NPC i'm basically looking for a script like in the game called Vampires Vs Slayers they have the script but i don't know what they used to get it :( just wondering. and thank you so much for the pathfinding link ill look into that tonight :)

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