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
 

Click help

Previous Thread :: Next Thread 
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
03 Apr 2015 12:28 PM
script.Parent.MouseButton1Click:connect(function(plr)
pcall(function()
game.Lighting.Scripts.Test:clone().Parent = plr.PlayerGui
end)
end)


The script works till it gets to "game.Lighting....." I used print("") to check the Dev Console to where the script stops. I want the script to clone a GUI into the characters PlayerGui, The button is in a Surface GUI. Any help on how to fix this?
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
03 Apr 2015 02:11 PM
Bump.
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
03 Apr 2015 02:55 PM
.
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
03 Apr 2015 02:57 PM
what's the output and what is the problem
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
03 Apr 2015 03:23 PM
The output says nothing and the problem is that it won't clone into the Player's PlayerGui.
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
03 Apr 2015 03:32 PM
replace the pcall with print'hello' and tell me the output
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
03 Apr 2015 04:11 PM
Hello and trying to index local 'plr' (nil value)

with a local script nothing appears.
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
03 Apr 2015 04:14 PM
Wait, where is the surface gui?

And I don't think mousebutton1down is an event of it
Report Abuse
mycheeze is not online. mycheeze
Joined: 27 Jun 2011
Total Posts: 6748
03 Apr 2015 04:18 PM
>Stop using lighting as a folder, and use the ServerStorage service instead, it will only load information about it once it is no longer in the service, whereas lighting is like having a duplicate workspace, but having any children being invisible.
Report Abuse
Vitalityc is not online. Vitalityc
Joined: 02 Aug 2013
Total Posts: 302
03 Apr 2015 04:24 PM
At @AntiFilter, The surface gui is in Workspace.

@mycheeze, I know but moving the Test GUI isn't going to help the script to clone it into the PlayerGui
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