Adam2090
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 889 |
|
|
| 23 Aug 2013 10:51 PM |
I want a script that when you touch part in workspace named "money1" it changes a GUI's text. The gui says Money: 0 I want the 0 to go up one every time a player touches the "money1" I don't need the script to store any information, I have that. I just need one that changes the GUI text. Is that possible? Please help. Thanks. |
|
|
| Report Abuse |
|
|
Adam2090
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 889 |
|
| |
|
loIhow
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
|
| 23 Aug 2013 11:07 PM |
function onTouched() game.Workspace.StarterGui.guinamehere.Value = "+1" game.Workspace.StarterGui.Value = game.Workspace.StarterGui.guinamehere.Text end script.Parent.Touched:connect(onTouched)
is dat right plox |
|
|
| Report Abuse |
|
|
th3oracle
|
  |
| Joined: 23 Feb 2013 |
| Total Posts: 448 |
|
|
| 23 Aug 2013 11:09 PM |
@lolhow Learn Lua before answering a question about Lua.
Anyway, this script would take a lot of time to write. We're here to debug you're code not write it for you. At least get a start to the code and maybe we can help you out. |
|
|
| Report Abuse |
|
|
loIhow
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
|
| 23 Aug 2013 11:10 PM |
| Yeah, why don't you post a script before you say I don't know LUA. Lil' nub. |
|
|
| Report Abuse |
|
|
loIhow
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
|
| 23 Aug 2013 11:11 PM |
| AND YOU SPELLED MY NAME WRONG! so shut up |
|
|
| Report Abuse |
|
|
Adam2090
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 889 |
|
|
| 23 Aug 2013 11:11 PM |
Nope, and disregard this post, I figured it out on my own:
local X = 0 local c1 = game.StarterGui.Welcome.Frame.Header
function onTouched(hit) if yes == 0 then --debounce check yes = 1 --activate debounce check = hit.Parent:FindFirstChild("Humanoid"
c1.Text = "Cash:"..X+1 |
|
|
| Report Abuse |
|
|
loIhow
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
|
| 23 Aug 2013 11:12 PM |
ITS NOW OR NEVER! I WANNA GO HIGHER! YOU KNOW HES GETTING IT IN HES FROM CHICAGO! WHY CANT I BE THE MVP OF THE LEAGUE ROSE GOES TO THE BASKET! |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 11:12 PM |
| Your explanation is a little difficult to understand and it lams me hard, try to do the script and we will debug like the guy above me. |
|
|
| Report Abuse |
|
|
loIhow
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
|
| 23 Aug 2013 11:13 PM |
you forgot a parantheses.... :p by ("Humanoid"
("Humanoid")* |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 11:13 PM |
@Lolhow
It's Lua, not LUA.
You don't know Lua. |
|
|
| Report Abuse |
|
|
loIhow
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
|
| 23 Aug 2013 11:14 PM |
You don't know loIhow. BURNED |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 11:15 PM |
| Oh it's just an obnoxious troll account. |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2013 11:15 PM |
I hate these chains. I'm outPERIOD
Stop the lam! |
|
|
| Report Abuse |
|
|
loIhow
|
  |
| Joined: 18 Aug 2013 |
| Total Posts: 87 |
|
|
| 23 Aug 2013 11:15 PM |
| Why are you popping on your dog.. |
|
|
| Report Abuse |
|
|