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: what is wrong with this?

Previous Thread :: Next Thread 
REM25 is not online. 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 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 04:41 PM
Bump
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 04:46 PM
Bump!!!!
Report Abuse
moryo7 is not online. moryo7
Joined: 19 Jul 2010
Total Posts: 5028
09 Nov 2013 04:47 PM
It's PlayerGui, not PlayerGUI.


✦мøяƴø子✦
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 04:49 PM
Still not working :/
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 04:51 PM
Bump
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 04:52 PM
Bump :3
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 04:52 PM
.Touched
Report Abuse
REM25 is not online. 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 is not online. 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 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 04:55 PM
Bump!
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 04:56 PM
hit.Parent.Name
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 04:57 PM
Nope :/


BUMP
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 05:02 PM
Bump!!!!!!!!!!!!!!!!
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 05:14 PM
Help
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
09 Nov 2013 05:17 PM
Someone!
Report Abuse
Kaffeine is not online. 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
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