REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 09 Nov 2013 04:40 PM |
function ontouch (hit) local plr = game.Players:FindFirstChild(hit.Parent) plr.PlayerGUI.Sound1.Sound:Play() end
script.Parent.touched:connect(ontouch) |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 09 Nov 2013 04:47 PM |
It's PlayerGui, not PlayerGUI.
✦мøяƴø子✦ |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 09 Nov 2013 04:53 PM |
| Nope still not working....the Sound is in a frame called "Sound1" in starterGui |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 09 Nov 2013 04:54 PM |
function ontouch (hit) plr = game.Players:FindFirstChild(hit.Parent) plr.PlayerGui.Sound1.Sound:Play() end script.Parent.Touched:connect(ontouch) |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
Kaffeine
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 230 |
|
|
| 09 Nov 2013 05:18 PM |
script.Parent.Touched:connect(function(hit) local plr = game.Players:GetPlayerFromCharacter(hit.Parent);
if (plr) then plr.PlayerGui.Sound1.Sound:Play(); end; end); |
|
|
| Report Abuse |
|
|