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: Mouse Help..

Previous Thread :: Next Thread 
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
12 Dec 2011 08:56 AM
How can I get a mouse from a plugin that doesn't create the button/tool bar?

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy? And Flappydavid goes DADDY HELP ME BIKERKING3200 IS GOING TO KILL ME!~ ~Do what I say or Die~
Report Abuse
juriaan is not online. juriaan
Joined: 25 Nov 2008
Total Posts: 939
12 Dec 2011 09:13 AM
You cant.
Becuase you need the Button/Tool bar to create the mouse Object !

Juriaan
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
12 Dec 2011 09:15 AM
Dang.

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy? And Flappydavid goes DADDY HELP ME BIKERKING3200 IS GOING TO KILL ME!~ ~Do what I say or Die~
Report Abuse
juriaan is not online. juriaan
Joined: 25 Nov 2008
Total Posts: 939
12 Dec 2011 09:19 AM
Maybe you can turn it off after it is clicked once..
Like you Activate it and after that you De-Activate it.
Dont know or that works but give it a Shot !

Juriaan
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
12 Dec 2011 09:21 AM
But, How can I turn it off?

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy? And Flappydavid goes DADDY HELP ME BIKERKING3200 IS GOING TO KILL ME!~ ~Do what I say or Die~
Report Abuse
juriaan is not online. juriaan
Joined: 25 Nov 2008
Total Posts: 939
12 Dec 2011 09:25 AM
We have a Method for that

Look at this Code

self = PluginManager():CreatePlugin()
mouse = self:GetMouse()
mouse.Button1Down:connect(function() onClicked(mouse) end)
self.Deactivation:connect(function()
Off()
end)
toolbar = self:CreateToolbar("Utilities")
toolbarbutton = toolbar:CreateButton("Tele", "Teleports you to the position of your mouse on click", "")
toolbarbutton.Click:connect(function()
print("lol")
if on then
Off()
else
On()
end
end)


function Teleport(pos)
print(pos)
x = game.Players.LocalPlayer
x.Character:MoveTo(pos)
end



function onClicked(mouse)
if on then
Teleport(mouse.Hit.p)
end
end

function On()
self:Activate(true)
toolbarbutton:SetActive(true)
on = true
end

function Off()
toolbarbutton:SetActive(false)
on = false
end

Credit: GoG Tutorials (for more Information ask me to PM the Link to the Article)


Juriaan
Glad to help
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
12 Dec 2011 09:27 AM
Want me to give you my plugin because I don't get it...

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy? And Flappydavid goes DADDY HELP ME BIKERKING3200 IS GOING TO KILL ME!~ ~Do what I say or Die~
Report Abuse
juriaan is not online. juriaan
Joined: 25 Nov 2008
Total Posts: 939
12 Dec 2011 09:51 AM
For a Plugin Button we use
:SetActive(boolean)

For a toolbar we use
:Activate(boolean)

Juriaan
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
12 Dec 2011 09:53 AM
So, If I make a Toolbar in my plugin I can get a mouse?

~Cows go MOOO, Ducks go quack, Bikerking200 goes Mommy? And Flappydavid goes DADDY HELP ME BIKERKING3200 IS GOING TO KILL ME!~ ~Do what I say or Die~
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 10:43 AM
Bump.

┏┓╋╋┏┓╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋┏━━━┳━━━┳━━━┓ ┃┃╋╋┃┃╋╋╋╋╋╋┃┃╋╋╋╋╋╋╋╋┃┏━┓┃┏━┓┃┏━┓┃ ┃┗━┳┫┃┏┳━━┳━┫┃┏┳┳━┓┏━━╋┛┏┛┃┃┃┃┃┃┃┃┃ ┃┏┓┣┫┗┛┫┃━┫┏┫┗┛╋┫┏┓┫┏┓┣━┛┏┫┃┃┃┃┃┃┃┃ ┃┗┛┃┃┏┓┫┃━┫┃┃┏┓┫┃┃┃┃┗┛┃┃┗━┫┗━┛┃┗━┛┃ ┗━━┻┻┛┗┻━━┻┛┗┛┗┻┻┛┗┻━┓┣━━━┻━━━┻━━━┛ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 10:46 AM
## Anyone going to help? ##

┏┓╋╋┏┓╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋┏━━━┳━━━┳━━━┓ ┃┃╋╋┃┃╋╋╋╋╋╋┃┃╋╋╋╋╋╋╋╋┃┏━┓┃┏━┓┃┏━┓┃ ┃┗━┳┫┃┏┳━━┳━┫┃┏┳┳━┓┏━━╋┛┏┛┃┃┃┃┃┃┃┃┃ ┃┏┓┣┫┗┛┫┃━┫┏┫┗┛╋┫┏┓┫┏┓┣━┛┏┫┃┃┃┃┃┃┃┃ ┃┗┛┃┃┏┓┫┃━┫┃┃┏┓┫┃┃┃┃┗┛┃┃┗━┫┗━┛┃┗━┛┃ ┗━━┻┻┛┗┻━━┻┛┗┛┗┻┻┛┗┻━┓┣━━━┻━━━┻━━━┛ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛
Report Abuse
AntiBoomz0r is online. AntiBoomz0r
Joined: 02 Oct 2009
Total Posts: 1345
13 Dec 2011 10:49 AM
Nah..

You just need to get the mouse with

mouse = plugin:GetMouse()

with plugin as whatever variable you set it, and

plugin:Activate()

to activate the mouse


You dont need a button for it :o
or a toolbar
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 10:59 AM
? Wha?

┏┓╋╋┏┓╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋┏━━━┳━━━┳━━━┓ ┃┃╋╋┃┃╋╋╋╋╋╋┃┃╋╋╋╋╋╋╋╋┃┏━┓┃┏━┓┃┏━┓┃ ┃┗━┳┫┃┏┳━━┳━┫┃┏┳┳━┓┏━━╋┛┏┛┃┃┃┃┃┃┃┃┃ ┃┏┓┣┫┗┛┫┃━┫┏┫┗┛╋┫┏┓┫┏┓┣━┛┏┫┃┃┃┃┃┃┃┃ ┃┗┛┃┃┏┓┫┃━┫┃┃┏┓┫┃┃┃┃┗┛┃┃┗━┫┗━┛┃┗━┛┃ ┗━━┻┻┛┗┻━━┻┛┗┛┗┻┻┛┗┻━┓┣━━━┻━━━┻━━━┛ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
13 Dec 2011 11:06 AM
Sorry but your siggy is way to huge and it is bugging me...
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 11:06 AM
So if I do this?

    plastic.MouseButton1Down:connect(function()
    plastic:GetMouse()
    end)

Do you mean leik that?

┏┓╋╋┏┓╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋┏━━━┳━━━┳━━━┓ ┃┃╋╋┃┃╋╋╋╋╋╋┃┃╋╋╋╋╋╋╋╋┃┏━┓┃┏━┓┃┏━┓┃ ┃┗━┳┫┃┏┳━━┳━┫┃┏┳┳━┓┏━━╋┛┏┛┃┃┃┃┃┃┃┃┃ ┃┏┓┣┫┗┛┫┃━┫┏┫┗┛╋┫┏┓┫┏┓┣━┛┏┫┃┃┃┃┃┃┃┃ ┃┗┛┃┃┏┓┫┃━┫┃┃┏┓┫┃┃┃┃┗┛┃┃┗━┫┗━┛┃┗━┛┃ ┗━━┻┻┛┗┻━━┻┛┗┛┗┻┻┛┗┻━┓┣━━━┻━━━┻━━━┛ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 11:07 AM
Oh sorry Poke i'll change or remove.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
13 Dec 2011 11:12 AM
No no it's fine it's just I don't like it but that's only 1 person so idc if you have it or not.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 11:14 AM
Oh well already changed it.

~Bikerking200 :P~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
13 Dec 2011 11:21 AM
How do you add a siggy?
Do you just paste It when you post?
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 11:23 AM
No, I have Google Chrome so then I added a Plugin for it :P

~Bikerking200 :P~
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
13 Dec 2011 11:28 AM
Did you make the plug in?
:o
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 11:29 AM
Sadly, No.

~Bikerking200 :P~
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
13 Dec 2011 12:26 PM
Bump.

~Bikerking200 :P~
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