|
| 15 Jan 2012 05:04 PM |
ok i been try to do a key down event and i trying to do like:
press and hold f to buy shotgun,, like a wall gun
so i was wondering do you need a global script to connect the local script inside hopperbin to the brick thats not local. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
jode6543
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 5363 |
|
|
| 15 Jan 2012 06:28 PM |
I don't believe you need to connect local-side to server-side for Instances.
"Be nice to nerds. Chances are you'll end up working for one. -Bill Gates" |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 11:45 PM |
| well i will work on script but i just wanted to know know before i jump into this |
|
|
| Report Abuse |
|
|
|
| 15 Jan 2012 11:46 PM |
| and ya i will need to use something to connect the local script with the brick because local script is inside the gun and the player and the script run on out side of the client with the server |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Jan 2012 09:49 AM |
script.Parent.Selected:connect(function(t) t.KeyDown:connect(function(key) if (script.Parent.Parent.Character.Torso.Position - game.Workspace.gun.Position).magnitude < 6 and key == "f" then --script here end end) end)
|
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 10:16 AM |
| well i did'nt ask for a script but thankyou anyways i try it later |
|
|
| Report Abuse |
|
|
| |
|