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 » Scripters
Home Search
 

Re: Plugins

Previous Thread :: Next Thread 
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
07 Aug 2016 04:16 PM
Does anyone know a script that can copy and past a gui into the clients screen.
Report Abuse
DoNotReadThisNamePlz is not online. DoNotReadThisNamePlz
Joined: 01 Aug 2014
Total Posts: 679
07 Aug 2016 04:17 PM
StarterGui..?
Or you could just clone it using :Clone()
Report Abuse
Auracyte is not online. Auracyte
Joined: 01 Feb 2011
Total Posts: 330
07 Aug 2016 04:24 PM
Depends on what you're trying to accomplish.
Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
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
0xDEADC0DE is not online. 0xDEADC0DE
Joined: 10 Apr 2016
Total Posts: 1039
07 Aug 2016 04:51 PM
Parent it to CoreGui


- AbstractMadness, currently terminated. 0/1.5M+ :(
Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
07 Aug 2016 04:51 PM
Thanks, I will try that.
Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
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
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
07 Aug 2016 05:07 PM
Bump.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
0xDEADC0DE is not online. 0xDEADC0DE
Joined: 10 Apr 2016
Total Posts: 1039
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
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
08 Aug 2016 05:54 AM
Bump.
Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
08 Aug 2016 06:09 AM
Bump.
Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
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
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
08 Aug 2016 06:32 AM
Bump.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
08 Aug 2016 07:57 AM
What is your code that handles MouseButton1Down? Where is it located?


Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
08 Aug 2016 08:36 AM
MousaeButton1Down is inside of the button.
Report Abuse
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
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
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
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
scaryww2guy1 is not online. scaryww2guy1
Joined: 01 May 2012
Total Posts: 193
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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