|
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
| |
|
| |
|
| |
|
Phrosty
|
  |
| Joined: 04 Jan 2012 |
| Total Posts: 346 |
|
| |
|
| |
|
|
| 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 |
|
|