|
| 19 Apr 2012 10:06 PM |
Well im trying to make Hotkeys so when the player opens the tool they cant turn it off tell me what you think is wrong with this very very short script, thanks to everyone that helps.
function onActivated() script.Parent = nil end
script.Parent.Activated:connect(onActivated)
btw there isnt anny output |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 19 Apr 2012 10:14 PM |
| That would destroy the tool. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 10:24 PM |
| I've Heard from numerouse people that this is how you make Hotkeys.... Correct me if im wrong. If this is not how then how my good sir? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 19 Apr 2012 10:25 PM |
| That just removes the tool when they click it :/ |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 10:26 PM |
| i mean were the tool, or hopperbin dissapers, but you can still use the mouse, and button functions how do you do that? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 19 Apr 2012 10:27 PM |
| How can you make the tool or hopperbin events run if you don't have it? Is that what you're asking? |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 10:30 PM |
Bottom line is this won't work.
Basicly you're making them equip the tool & then you remove it from them.
They can't use something that doesn't exist. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 10:31 PM |
Well like mastrj's dbz game if you click the tool after you pick your character it disapers but the functions/ events << whatever, still run, like you can still press c and it will do something.
and i thought if a object was nil, then it wasn't completely destroyed so i thought you could still use mouse, and key events. But i was wrong i guess.
So how would i do this? |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 19 Apr 2012 10:36 PM |
| Clone it to their character, maybe. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 10:37 PM |
| Cause i have been working on these tools for my game and i don't really want the players to pick there tool, then be dumb enough to just backspace it somewhere, and i made run and reset events in my tools so if they click a different tool, then they won be able to run or reset if they get glitched until they click back to that tool and that is to much work for the player in my opinion. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 10:38 PM |
| but thanks miz i will try that. |
|
|
| Report Abuse |
|
|
|
| 19 Apr 2012 11:51 PM |
| You do the same thing save the mouse from another script within PlayerGui, for example. |
|
|
| Report Abuse |
|
|