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: Very Small script, for some odd reason not working.

Previous Thread :: Next Thread 
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
19 Apr 2012 10:14 PM
That would destroy the tool.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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 is not online. 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
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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 is not online. 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
TheShoeBox is not online. TheShoeBox
Joined: 20 Aug 2010
Total Posts: 5022
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
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
19 Apr 2012 10:36 PM
Clone it to their character, maybe.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
19 Apr 2012 10:38 PM
but thanks miz i will try that.
Report Abuse
andymewborn is not online. andymewborn
Joined: 07 Oct 2008
Total Posts: 1112
19 Apr 2012 11:51 PM
You do the same thing save the mouse from another script within PlayerGui, for example.
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