|
| 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 |
|
|
|
| 06 Feb 2014 12:21 PM |
bump
One does not simply print("Hello World") Ahtnamas Studio |
|
|
| Report Abuse |
|
|
YumERAGON
|
  |
| Joined: 18 Apr 2012 |
| Total Posts: 3893 |
|
| |
|
|
| 06 Feb 2014 12:28 PM |
just remove the damn plate
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 16 Sep 2014 02:23 PM |
| Godammit get rid of the place k? :D |
|
|
| Report Abuse |
|
|