|
| 07 Aug 2016 04:16 PM |
| Does anyone know a script that can copy and past a gui into the clients screen. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 04:17 PM |
StarterGui..? Or you could just clone it using :Clone() |
|
|
| Report Abuse |
|
|
Auracyte
|
  |
| Joined: 01 Feb 2011 |
| Total Posts: 330 |
|
|
| 07 Aug 2016 04:24 PM |
| Depends on what you're trying to accomplish. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 04:50 PM |
| I cannot interact with the StarterGui in studio. All I want to do is be able to click a button while in studio by using a plugin. |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 04:51 PM |
Parent it to CoreGui
- AbstractMadness, currently terminated. 0/1.5M+ :( |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Aug 2016 04:58 PM |
It works! I can interact with my gui kind of... My current function:
function Event() print("Clicked!") end script.Parent.MouseButton1Down:connect(Event)
Won't do anything. Do I need to use a different method as it is a plugin? |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 04:59 PM |
Yes. You should use Gui.Parent = CoreGui Gui.Button.MouseButton1Down:connect
Because if you parent the plugin to it, you won't get anything.
|
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 05:05 PM |
I have the interface in the core gui. (It comes onto my screen).
The issue is, when I click on a button, nothing happens. I have the parents right because it works when it is not in a plugin. So I guess I just need a different function. What do I do? |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Aug 2016 05:07 PM |
I don't think they will run in CoreGui, plugin or not. You should really handle the events from the plugin itself.
|
|
|
| Report Abuse |
|
|
|
| 07 Aug 2016 05:07 PM |
Do you parent the gui? If so just do local gui = gui_hiearchy and then edit it from there
- AbstractMadness, currently terminated. 0/1.5M+ :( |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 08 Aug 2016 06:11 AM |
| I have got the plugin GUI to open when I click on the plugin on the toolbar. It is in the core gui. However, the problem now is, none of the buttons work. I am using MouseButton1Down. |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Aug 2016 07:57 AM |
What is your code that handles MouseButton1Down? Where is it located?
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:36 AM |
| MousaeButton1Down is inside of the button. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:37 AM |
| MouseButton1Down is inside of the button which is in the frame which is in the GUI which is in the core interface. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:40 AM |
the events should all be handled in the plugin
the gui with no scripts in it should be placed in the coregui |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 08:48 AM |
Okay. So I would put something more like this?
function Print() print("Left clicked!") game.CoreGui.PluginTest.Frame.Button.MouseButton1Down:connect(Print) |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 09:23 AM |
| You have to make it so that active will toggle the gui by putting it in the script and back into the coregui or by removing it when incactive |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2016 09:24 AM |
Also if you want to test your plugins:
Use this
local mouse if plugin then mouse = plugin:GetMouse() else mouse = game.Players.LocalPlayer end
--and always check if plugin because then it will work both when in StarterGui and when in a plugin |
|
|
| Report Abuse |
|
|