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

i need a Scripter to help me please? [closed]

Asked by 4 years ago
Edited 4 years ago

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

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. kkkeelan999 92 — 4y
0
agreed blarp_blurp645 63 — 4y

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?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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

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 :) User#32538 0 — 4y
Ad