A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeFAQRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
 
naknak
 
Supernapalm
 
m27frogy
 
slayer9365
 
myrco919
 
branefreez
 
ninga95
 
CloneTrooper787
 
raboy117
 
Top posting users this month
Latest topics
» Send me an Email
January 8th 2016, 10:14 am by naknak

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
July 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
July 6th 2015, 4:16 pm by m27frogy

» Ambassador!
April 15th 2015, 11:40 pm by naknak

» Boop - Tag
April 13th 2015, 9:46 pm by naknak

» Vip Class Script
April 13th 2015, 4:54 pm by naknak

» Who's active?!
April 13th 2015, 4:52 pm by naknak

» Where to go from here.
April 13th 2015, 4:51 pm by naknak

» Genesis Point
July 17th 2014, 7:04 pm by branefreez

» Reward System
July 17th 2014, 5:41 am by m27frogy

» Script Request
July 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 here
April 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
January 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
January 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 Coding
October 26th 2013, 1:12 pm by pook03

» Simple Button
September 1st 2013, 6:19 pm by branefreez


Share | 
 

 Mouse, Tool, Help!

View previous topic View next topic Go down 
AuthorMessage
Sethalonian
Intermediate Scripter
Intermediate Scripter
avatar

Posts : 63
Join date : 2011-06-10
Age : 19

PostSubject: 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?
Back to top Go down
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Re: Mouse, Tool, Help!   June 11th 2011, 5:54 pm

Force them to select it then remove the tool?
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
avatar

Posts : 63
Join date : 2011-06-10
Age : 19

PostSubject: Re: Mouse, Tool, Help!   June 12th 2011, 2:24 pm

But if i remove the tool how can the scripts run?
Back to top Go down
naknak
Administrator
Administrator
avatar

Posts : 878
Join date : 2010-07-30

PostSubject: Re: Mouse, Tool, Help!   June 12th 2011, 2:46 pm

Try it. I thought they still work.
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
avatar

Posts : 63
Join date : 2011-06-10
Age : 19

PostSubject: 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.
Back to top Go down
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 18

PostSubject: 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

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
avatar

Posts : 63
Join date : 2011-06-10
Age : 19

PostSubject: 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 :)!
Back to top Go down
CloneTrooper787
Moderator
Moderator
avatar

Posts : 81
Join date : 2011-01-22

PostSubject: 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.

_________________
CloneTrooper787, Site Moderator
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
avatar

Posts : 63
Join date : 2011-06-10
Age : 19

PostSubject: Re: Mouse, Tool, Help!   June 29th 2011, 9:04 am

cool
Back to top Go down
TheSiteBringer
Novice Scripter
Novice Scripter
avatar

Posts : 28
Join date : 2011-07-31

PostSubject: Re: Mouse, Tool, Help!   August 1st 2011, 9:30 pm

Person299's admin commands can do the thing. Give it a try!
Back to top Go down
blueymaddog
Administrator
Administrator
avatar

Posts : 1081
Join date : 2010-12-09
Age : 18

PostSubject: 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

_________________
blueymaddog
Administrator • Moderator • Expert Scripter
PM: blueymaddog
<+1 post. ujelly?>
Back to top Go down
Sponsored content




PostSubject: Re: Mouse, Tool, Help!   

Back to top Go down
 
Mouse, Tool, Help!
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» God Tool Availability In Sandbox
» Battle Report Imaging Tool
» SANKit tool
» Painting With a mouse pad= wrist pains
» Now I need Paint Tool Sai help???!!!

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: