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?
✓ ANSWER ACCEPTED
How to make my Ghost disappear?
2 answers
✓ Accepted answer
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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
