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
 

Why is the decal not removing ?

Previous Thread :: Next Thread 
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
06 Feb 2014 11:34 AM
Ok so i made a popup and it worked fine it removed but after i added in sound it dose not remove here is script


Sound = script.Parent.Scream
Popup = script.Parent.Popup
Seen = true
function onTouch(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil and Seen == true then
Seen = false
local plyr = game.Players:FindFirstChild(h.Parent.Name)
local c = Popup:clone()
c.Parent = plyr.PlayerGui
local s = Sound:Play()
s.Parent = plyr
wait(.5)
c:remove()
s:remove()
wait(.1)
end
end
script.Parent.Touched:connect(onTouch)


One does not simply print("Hello World") Ahtnamas Studio
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
06 Feb 2014 12:21 PM
bump

One does not simply print("Hello World") Ahtnamas Studio
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
06 Feb 2014 12:24 PM
Try Destroy()
Report Abuse
Tomspro123 is not online. Tomspro123
Joined: 31 Jan 2013
Total Posts: 72
06 Feb 2014 12:28 PM
just remove the damn plate
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
06 Feb 2014 12:39 PM
Sound = script.Parent.Scream
Popup = script.Parent.Popup
Seen = true

function onTouch(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
local p = game.Players:FindFirstChild(h.Parent.Name)
if Seen == true and h ~= nil and p ~= nil then
Seen = false
p = Popup:clone()
p.Parent = p.PlayerGui
s = Sound:clone()
s.Parent = p.PlayerGui
wait()
s:play()
wait(1)
p:Destroy()
s:Stop()wait()
s:Destroy()
seen = true
end end

script.Parent.Touched:connect(onTouch)
Report Abuse
Tomspro123 is not online. Tomspro123
Joined: 31 Jan 2013
Total Posts: 72
16 Sep 2014 02:23 PM
Godammit get rid of the place k? :D
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