Top posting users this month | |
Latest topics | » Where to go from here.September 14th 2020, 1:20 pm by MrNicNac» Send me an EmailSeptember 14th 2020, 1:16 pm by MrNicNac» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]July 6th 2015, 7:38 pm by m27frogy» New Site PossiblyJuly 6th 2015, 4:16 pm by m27frogy» Ambassador!April 15th 2015, 11:40 pm by naknak» Boop - TagApril 13th 2015, 9:46 pm by naknak» Vip Class ScriptApril 13th 2015, 4:54 pm by naknak» Who's active?!April 13th 2015, 4:52 pm by naknak» Genesis PointJuly 17th 2014, 7:04 pm by branefreez» Reward SystemJuly 17th 2014, 5:41 am by m27frogy» Script RequestJuly 10th 2014, 11:43 am by naknak» local scripts?July 10th 2014, 11:39 am by naknak» Project: Reconstruction [Died]July 10th 2014, 11:36 am by naknak» Hi. I am new hereApril 26th 2014, 4:01 pm by altshiftkey» What's your favorite sport?January 1st 2014, 2:13 pm by m27frogy» FlashLight ScriptJanuary 1st 2014, 2:11 pm by m27frogy» Gun Making! [READ DESC]January 1st 2014, 2:10 pm by m27frogy» Hi, I am new here!November 26th 2013, 3:33 pm by Keanu73» Improve CodingOctober 26th 2013, 1:12 pm by pook03» Simple ButtonSeptember 1st 2013, 6:19 pm by branefreez |
|
| Mouse, Tool, Help! | |
| | Author | Message |
---|
Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Mouse, Tool, Help! June 11th 2011, 2:38 pm | |
| ok, Im trying to make a gui game. I need to get the player mouse. Apparently no one can do this without simulating it with a tool. So i want to protect the game from the risk of breaking if a tool is deselected... so how do i get it to in a way... not be visible but be on... without deleting the tool. I have to use local scripts so can any one answer me? | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Mouse, Tool, Help! June 11th 2011, 5:54 pm | |
| Force them to select it then remove the tool? | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: Mouse, Tool, Help! June 12th 2011, 2:24 pm | |
| But if i remove the tool how can the scripts run? | |
| | | naknak Administrator
Posts : 878 Join date : 2010-07-30
| Subject: Re: Mouse, Tool, Help! June 12th 2011, 2:46 pm | |
| Try it. I thought they still work. | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: Mouse, Tool, Help! June 16th 2011, 7:52 am | |
| Ok, I'll have to try it. I'm not done scripting it yet, but I'll try it. | |
| | | blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Mouse, Tool, Help! June 16th 2011, 9:08 am | |
| :o I made a hack around this but it broke:
player = PutPlayerHere mouse = nil tool = Instance.new("Tool") hand = Instance.new("Part",tool) hand.Name = "Handle" tool.Equipped:connect(function(m) mouse = m end) tool.Parent = player.Character repeat wait() until mouse tool.Parent = nil
print(mouse)
i tryed using mouse events but it said that the mouse was no longer active. :O | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: Mouse, Tool, Help! June 16th 2011, 4:02 pm | |
| I wish it was possible to do it without a tool :(.... but what I tried works so turn my :( upside down :)! | |
| | | CloneTrooper787 Moderator
Posts : 81 Join date : 2011-01-22
| Subject: Re: Mouse, Tool, Help! June 28th 2011, 8:29 pm | |
| The tool still works when deleted. Use Person299's Admin Commands and type 'givebtools/me', select the delete tool, then type 'removebtools/me' the tool will not be visible at the bottom of the screen, but the actual tool still can be used. | |
| | | Sethalonian Intermediate Scripter
Posts : 63 Join date : 2011-06-10 Age : 26
| Subject: Re: Mouse, Tool, Help! June 29th 2011, 9:04 am | |
| | |
| | | TheSiteBringer Novice Scripter
Posts : 28 Join date : 2011-07-31
| Subject: Re: Mouse, Tool, Help! August 1st 2011, 9:30 pm | |
| Person299's admin commands can do the thing. Give it a try! | |
| | | blueymaddog Administrator
Posts : 1081 Join date : 2010-12-09 Age : 26
| Subject: Re: Mouse, Tool, Help! February 12th 2012, 4:09 am | |
| yay his first active post! lets celebrate naknak! btw: Person299's AC's are outdated and i wouldn't rely on them! :P | |
| | | Sponsored content
| Subject: Re: Mouse, Tool, Help! | |
| |
| | | | Mouse, Tool, Help! | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Who is online? | In total there are 31 users online :: 0 Registered, 0 Hidden and 31 Guests
None
Most users ever online was 136 on October 21st 2024, 12:16 pm
|
| Please tell us what time zone you are in here
Got a really good idea? Post it in projects and it might show up here! |
|