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
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 889 |
|
| |
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 24 Aug 2013 01:33 AM |
@lolhow I have another account that got banned, created: 2009
~DevilDefeater - Popped your bubble~ |
|
|
| Report Abuse |
|
|
Adam2090
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 889 |
|
| |
|