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

How to make my Ghost disappear?

Asked by
Miike0 6
8 years ago

I'm making a Halloween Obby and one of the obstacles is gonna be dodging multiple ghosts coming your way. I have already placed a ghost humanoid into my place and put the walkingpoint so it will go to a certain point. How would I make it so when it got to that certain point that it would then delete itself and restart? For example, in Deathrun after an obstacle is done it would fade away. How could I do that to my ghost? Or even a model that I could study the script?

2 answers

Log in to vote
0
Answered by 8 years ago

If you have a part where the ghost stops at you could put a script into that with a function for onTouched

function onTouched(hit)
    if hit.Parent.Name = "Ghost" then
    hit.Parent:Destroy()
end

script.Parent.Touched:connect(onTouched)

Replace ghost with whatever the humanoids name is

Ad
Log in to vote
0
Answered by
3x6x0 0
8 years ago

new code:

while true do
    game.Workspace.Ghost.Humanoid.WalkingPoint = 0, 0, 0 --replace to where you want
    game.Workspace.Ghost.Humanoid.WalkingPoint = 1, 1, 1 -- same thing here
end

first thing i posted didnt work(i bet)and wasnt detailed

Answer this question