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 » Scripting Helpers
Home Search
 

Re: Gui... Help...? Yeah. Call it that.

Previous Thread :: Next Thread 
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
23 Aug 2013 11:50 PM
How can I change the GUI that I have in a code to a PlayerGui? They're on a StarterGui and they need to be on PlayerGui. How could I do that?

Here is the code:

local caps = 0
local cc = game.StarterGui.Welcome.Frame.Header
local mc = script.Parent
local yes = 0
function onTouched(hit)
if yes == 0 then --debounce check
yes = 1 --activate debounce
check = hit.Parent:FindFirstChild("Humanoid")

if check ~= nil then
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:findFirstChild("leaderstats")

if stats ~= nil then
local cash = stats:findFirstChild("Caps")
cash.Value = cash.Value +1
caps = caps+1
cc.Text = "Caps: "..caps


mc.Parent = Lighting
wait(5)
mc.Parent = Workspace
end

end

yes = 0
end
end
script.Parent.Touched:connect(onTouched)
Report Abuse
loIhow is not online. loIhow
Joined: 18 Aug 2013
Total Posts: 87
23 Aug 2013 11:53 PM
script.lol.lol = true
Report Abuse
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
23 Aug 2013 11:55 PM
loihow. I'm sorry if I offend you, but just please leave. You're not helping anybody. You're just saying random things. I think you'd belong in the "Off-Topic" Thread.
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
23 Aug 2013 11:55 PM
@loihow
Dude, get out, I think you are the one who is *Cough* ruining *Cough* the ROBLOX Community :\

~DevilDefeater - Popped your bubble~
Report Abuse
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
23 Aug 2013 11:59 PM
Bump
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
24 Aug 2013 12:02 AM
cc.Text = "Caps: "..caps ->> user.PlayerGui.Welcome.Frame.Header.Text = "Caps: ", caps

(You would have the issue of where if another player touched it, the next player would have two caps, would he not?)
Report Abuse
loIhow is not online. loIhow
Joined: 18 Aug 2013
Total Posts: 87
24 Aug 2013 12:13 AM
Bro you joined July 2013 how would u know what its like? And dont judge me this is my alt

My first acc: toontownxmaster

Date Joined: February 6, 2011 I think

Proof?
Look at his blurb.

Yeh you ruining the community by judging people when you joined July 2013 XD
Report Abuse
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
24 Aug 2013 12:15 AM
That only adds to the GUI for the first time the player touches it. All the other times it doesn't add to the GUI.
Report Abuse
DevilDefeater is not online. DevilDefeater
Joined: 08 Jul 2013
Total Posts: 756
24 Aug 2013 01:33 AM
@lolhow
I have another account that got banned, created: 2009

~DevilDefeater - Popped your bubble~
Report Abuse
Adam2090 is not online. Adam2090
Joined: 19 Jul 2010
Total Posts: 889
24 Aug 2013 07:32 AM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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