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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Gui Help

Previous Thread :: Next Thread 
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 02:47 PM
I'm trying to clone the Gui from Lighting, And make it's parent StarterGui's

script.Parent.Touched:connect(function()
game.Lighting.ScreenGui:clone()
ScreenGui.Parent = StarterGui
end)
Report Abuse
GeoVolcano is not online. GeoVolcano
Joined: 05 Jul 2012
Total Posts: 1433
20 Apr 2015 02:48 PM
script.Parent.Touched:connect(function()
local a = game.Lighting.ScreenGui:Clone()
a.Parent = game.StarterGui
end)
Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 02:49 PM
Ohhhhh, I tried doing the x = game.Lighting.ScreenGui:clone() bit, But I didn't use Local
Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 02:50 PM
Wait. Still didn't work.
Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 02:51 PM
It clones, But It doesn't show up.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
20 Apr 2015 02:53 PM
that's because i am pretty sure you want to clone it to the player's playergui, not the startergui

Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 02:54 PM
Hm, I'll try it.
Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 02:55 PM
15:59:03.296 - Stack End
15:59:03.296 - PlayerGui is not a valid member of DataModel
15:59:03.296 - Script 'Workspace.Part.Script', Line 10
15:59:03.296 - Stack End

cri
Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 02:58 PM
Bump. Pretty simple script. I don't know why I'm not understanding it :(
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
20 Apr 2015 02:59 PM
get the player with :GetPlayerFromCharacter(character)

script.Parent.Touched:connect(function(hit)
if hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
local char = hit.Parent
local plr = game.Players:GetPlayerFromCharacter(char)
if plr then
game.Lighting.GUI:Clone().Parent = plr.PlayerGui
end
end
end)

btw don't use lighting to store stuff like that

use replicatedstorage or serverstorage
Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
20 Apr 2015 03:01 PM
Thanks
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