generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: NEED A DELETE SCRIPT

Previous Thread :: Next Thread 
Unalaq is not online. Unalaq
Joined: 30 Jun 2013
Total Posts: 196
10 May 2014 04:46 PM
function onTouched(hit)
script.Parent.Ghost:play()
end
script.Parent.Touched:connect(onTouched)













Need a delete script after this for jumpscare, would be awesome if someone could help.
Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
10 May 2014 04:48 PM
delete for what
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
10 May 2014 04:51 PM
Like this?
local time = "ANumb3rV4lue."
script.Parent.Touched:connect(function(touch)
if touch.Parent:FindFirstChild("Humanoid") then Ghost:Play()
wait(tonumber(time)) --Just to be safe. It'll convert everything to a number first, so if there's a string in the time value it'll get the digits in it.
script.Parent:Destroy()
else return
end
end)

--Shira Wolven
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
10 May 2014 04:53 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
script.Parent.Ghost:Play()
repeat wait() until script.Parent.Ghost.IsPlaying == false
Ghost:Destroy()
end end)
Report Abuse
Unalaq is not online. Unalaq
Joined: 30 Jun 2013
Total Posts: 196
10 May 2014 04:57 PM
Just what I needed thanks guys!
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
10 May 2014 04:58 PM
Goulstem, last time I relied on isplaying, it was VERY buggy. It doesn't turn off until you Stop() or Pause() the sound.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image