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: Simple.

Previous Thread :: Next Thread 
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
18 Nov 2012 10:11 PM
Where would I put a sound if I want it so only 1 person hears it?
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
18 Nov 2012 10:19 PM
Clone it to their PlayerGui
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
18 Nov 2012 10:25 PM
Ok.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
18 Nov 2012 10:25 PM
Parent it to the Player or one of it's childs.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
18 Nov 2012 10:26 PM
So would the rickroll part of this work?

admins = {"crouton04","cvc3cameron","cvc3"}
commands = {"kill/, respawn/, rickroll//, and cmds/"}
game.Players.PlayerAdded:connect(function (plr)
for c = 1,#admins do
if admins[c].Name == plr.Name then
plr.Chatted:connect(function (msg)
if msg:lower():sub(1,5) == "kill/" then
victim = game.Players[msg:sub(6)];
if victim then victim.Character.Humanoid.Health = 0
end
elseif msg:lower():sub(1,8) == "respawn/" then
victim = game.Players[msg:sub(9)];
if victim then victim:LoadCharacter()
end
elseif msg:lower():sub(1,10) == "rickroll//" then
victim = game.Players[msg:sub(12)];
if victim then
ricklol = Instance.new("Sound")
ricklol.Parent = victim.StarterGui
ricklol.Volume = 1
ricklol.Pitch = 1
ricklol:Play()
wait(20)
ricklol:Remove()
end
elseif msg:lower():sub(1,5) == "cmds/" then
lol = Instance.new("Message")
lol.Parent = plr.StarterGui
lol.Text = commands[1]
wait(10)
lol:Remove()
end
end)
end
end
end)
Report Abuse
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
18 Nov 2012 11:16 PM
1.)

To stop a sound, you do :Stop() not :Remove() because it keeps playing e_e

2.) You didn't put the soundid
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
19 Nov 2012 12:32 AM
Lawl it deleted, and thanks..
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