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: GUI Help: Simple Fix

Previous Thread :: Next Thread 
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
21 Jan 2012 07:41 AM
Can someone fix this?


script.Parent.MouseButton1Click:connect(function()
local char = game.Players.LocalPlayer.Character
local GunTest = char:findFirstChild("GunTest") or game.Players.LocalPlayer.Backpack:findFirstChild("GunTest")
if GunTest then
if GunTest.Silencer.Transparency == 0 then
GunTest.Silencer.Transparency = 1
GunTest.Fire.Volume = 1 --nor sure about this
GunTest.Fire.Pitch = 1 --not sure about this
else
GunTest.Silencer.Transparency = 0
GunTest.Fire.Volume = 0.2 --nor sure about this
GunTest.Fire.Pitch = 0.2 --not sure about this
end
end
end)
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
21 Jan 2012 07:51 AM
[ Content Deleted ]
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
21 Jan 2012 08:07 AM
Thanks
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
21 Jan 2012 11:43 AM
1000 Posts!
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
21 Jan 2012 11:45 AM
2,450 Posts!
Report Abuse
Phrosty is not online. Phrosty
Joined: 04 Jan 2012
Total Posts: 346
21 Jan 2012 11:47 AM
Nice ;D
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
21 Jan 2012 11:47 AM
Help?
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
21 Jan 2012 11:50 AM
script.Parent.MouseButton1Click:connect(function()
local char = game.Players.LocalPlayer.Character
local GunTest
if char:findFirstChild("GunTest") then
GunTest = char:findFirstChild("GunTest")
elseif game.Players.LocalPlayer.Backpack:findFirstChild("GunTest")
GunTest = game.Players.LocalPlayer.Backpack:findFirstChild("GunTest")
end
if GunTest then
if GunTest.Silencer.Transparency == 0 then
GunTest.Silencer.Transparency = 1
GunTest.Fire.Volume = 1 --nor sure about this
GunTest.Fire.Pitch = 1 --not sure about this
else
GunTest.Silencer.Transparency = 0
GunTest.Fire.Volume = 0.2 --nor sure about this
GunTest.Fire.Pitch = 0.2 --not sure about this
end
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