Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 31 May 2014 12:13 PM |
This script works fine in solo mode. There are no errors in the output, but it would seem that the connect is broken when it is not in solo, and I have no idea why.
Please, please help!
ID = 1000 trigger = "b" function onKey(key) key = key:lower() if key == trigger then script.heistStart:Fire() print(trigger.."WAS PRESSED, YOU GUYS") randMask = math.random(1,4) storage = game.ServerStorage mask = {storage.Mask01,storage.Mask02,storage.Mask03,storage.Mask04} rMask = mask[randMask]:clone() v = script.Parent.Parent.Parent.Parent rMask.Parent = v.Character if game:GetService("GamePassService"):PlayerHasPass(v,ID) then local Classy = game.ServerStorage.ClassyGun Classy:clone().Parent = v.Backpack print("Mmm, Classy.") script.Parent.Parent:Destroy() else local Normal = game.ServerStorage.NormalGun Normal:clone().Parent = v.Backpack script.Parent.Parent:Destroy() end end end script.Parent.Parent.Parent.Parent:GetMouse().KeyDown:connect(onKey) |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
| |
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 01 Jun 2014 02:23 AM |
| Nothing in the output, the event only fires in solo mode. :\ |
|
|
| Report Abuse |
|
|
|
| 01 Jun 2014 02:26 AM |
| Are you using a local script? |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
| |
|
| |
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 01 Jun 2014 03:58 AM |
| I tried it, it didn't work. |
|
|
| Report Abuse |
|
|
Waffloid
|
  |
| Joined: 14 Jul 2011 |
| Total Posts: 1606 |
|
|
| 03 Jun 2014 05:29 AM |
I fixed it!
–I'm not crazy, the voices in my head said so!- |
|
|
| Report Abuse |
|
|