|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Dec 2011 10:43 AM |
Bump.
┏┓╋╋┏┓╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋┏━━━┳━━━┳━━━┓ ┃┃╋╋┃┃╋╋╋╋╋╋┃┃╋╋╋╋╋╋╋╋┃┏━┓┃┏━┓┃┏━┓┃ ┃┗━┳┫┃┏┳━━┳━┫┃┏┳┳━┓┏━━╋┛┏┛┃┃┃┃┃┃┃┃┃ ┃┏┓┣┫┗┛┫┃━┫┏┫┗┛╋┫┏┓┫┏┓┣━┛┏┫┃┃┃┃┃┃┃┃ ┃┗┛┃┃┏┓┫┃━┫┃┃┏┓┫┃┃┃┃┗┛┃┃┗━┫┗━┛┃┗━┛┃ ┗━━┻┻┛┗┻━━┻┛┗┛┗┻┻┛┗┻━┓┣━━━┻━━━┻━━━┛ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛ |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2011 10:46 AM |
## Anyone going to help? ##
┏┓╋╋┏┓╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋┏━━━┳━━━┳━━━┓ ┃┃╋╋┃┃╋╋╋╋╋╋┃┃╋╋╋╋╋╋╋╋┃┏━┓┃┏━┓┃┏━┓┃ ┃┗━┳┫┃┏┳━━┳━┫┃┏┳┳━┓┏━━╋┛┏┛┃┃┃┃┃┃┃┃┃ ┃┏┓┣┫┗┛┫┃━┫┏┫┗┛╋┫┏┓┫┏┓┣━┛┏┫┃┃┃┃┃┃┃┃ ┃┗┛┃┃┏┓┫┃━┫┃┃┏┓┫┃┃┃┃┗┛┃┃┗━┫┗━┛┃┗━┛┃ ┗━━┻┻┛┗┻━━┻┛┗┛┗┻┻┛┗┻━┓┣━━━┻━━━┻━━━┛ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛ |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Dec 2011 10:59 AM |
? Wha?
┏┓╋╋┏┓╋╋╋╋╋╋┏┓╋╋╋╋╋╋╋╋┏━━━┳━━━┳━━━┓ ┃┃╋╋┃┃╋╋╋╋╋╋┃┃╋╋╋╋╋╋╋╋┃┏━┓┃┏━┓┃┏━┓┃ ┃┗━┳┫┃┏┳━━┳━┫┃┏┳┳━┓┏━━╋┛┏┛┃┃┃┃┃┃┃┃┃ ┃┏┓┣┫┗┛┫┃━┫┏┫┗┛╋┫┏┓┫┏┓┣━┛┏┫┃┃┃┃┃┃┃┃ ┃┗┛┃┃┏┓┫┃━┫┃┃┏┓┫┃┃┃┃┗┛┃┃┗━┫┗━┛┃┗━┛┃ ┗━━┻┻┛┗┻━━┻┛┗┛┗┻┻┛┗┻━┓┣━━━┻━━━┻━━━┛ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃ ╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛ |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2011 11:06 AM |
| Sorry but your siggy is way to huge and it is bugging me... |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Dec 2011 11:07 AM |
Oh sorry Poke i'll change or remove.
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 13 Dec 2011 11:14 AM |
Oh well already changed it.
~Bikerking200 :P~ |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2011 11:21 AM |
How do you add a siggy? Do you just paste It when you post? |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2011 11:23 AM |
No, I have Google Chrome so then I added a Plugin for it :P
~Bikerking200 :P~ |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2011 11:28 AM |
Did you make the plug in? :o |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2011 11:29 AM |
Sadly, No.
~Bikerking200 :P~ |
|
|
| Report Abuse |
|
|
| |
|