|
| 18 Dec 2012 12:42 AM |
Whats wrong at this script?
---------------------------------------------------------------------------------------------- name = script.Parent.Parent.Parent.Parent.Name lvl = script.Parent.Parent.Parent.Parent.leaderstats.Lvl gold = script.Parent.Parent.Parent.Parent.leaderstats.Gold pvp = script.Parent.Parent.Parent.Parent.leaderstats:FindFirstChild("PvP Points") human = script.Parent.Parent.Parent.Parent.Character.Humanoid mana = script.Parent.Parent.Parent.Parent.leaderstats.Mana
while true do script.Parent.Name.Text = name.Value script.Parent.Lvl.Text = lvl.Value script.Parent.HPbox.Text = "HP: " ..Human.Health.. " / " ..Human.MaxHealth script.Parent.Mpbox.Text = "Mp: "..mana.Value.. script.Parent.PvPbox.Text = pvp.Value script.Parent.Goldbox.Text = gold.Value end
wait(0.1) end |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 12:44 AM |
| i see only the hp needs to be human not Human anyone see anything else? |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 01:35 AM |
| Is this in the Starter Pack? If so it needs to be in a local script. |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 06:20 AM |
| yes its in starter gui for a rpg game |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 06:28 AM |
| Anyone ? can change this script so it works? |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 06:49 AM |
| copy everything into a local script it will work |
|
|
| Report Abuse |
|
|
| |
|
| |
|
awas3
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 2854 |
|
|
| 18 Dec 2012 07:40 AM |
| wait(0.1) end? Replace the end at the end with that. |
|
|
| Report Abuse |
|
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 18 Dec 2012 09:14 AM |
-- Try this? name = script.Parent.Parent.Parent.Parent.Name lvl = script.Parent.Parent.Parent.Parent.leaderstats.Lvl gold = script.Parent.Parent.Parent.Parent.leaderstats.Gold pvp = script.Parent.Parent.Parent.Parent.leaderstats:FindFirstChild("PvP Points") human = script.Parent.Parent.Parent.Parent.Character.Humanoid mana = script.Parent.Parent.Parent.Parent.leaderstats.Mana
while true do wait(.1) script.Parent.Name.Text = tostring(name.Value) script.Parent.Lvl.Text = tostring(lvl.Value) script.Parent.HPbox.Text = "HP: " ..tostring(Human.Health).. " / " ..tostring(Human.MaxHealth) script.Parent.Mpbox.Text = "Mp: "..tostring(mana.Value) script.Parent.PvPbox.Text = tostring(pvp.Value) script.Parent.Goldbox.Text = tostring(gold.Value) end
print('Hello World!') |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 09:22 AM |
| Some case issues. Swap "Human" for "human" or vice versa. Also, I believe the case in "FindFirstChild" is "findFirstChild". Otherwise looks fine to me. |
|
|
| Report Abuse |
|
|
sycips
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1368 |
|
|
| 18 Dec 2012 09:52 AM |
| Is there an error or output? If not, from where doesn't it work? or can you say where the problem is? |
|
|
| Report Abuse |
|
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 18 Dec 2012 10:47 AM |
@Wehttam, FindFirstChild and findFirstChild both work. As for the case issues with Human, I didn't notice that.
print('Hello World!') |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 11:02 AM |
ty megaguy but at this script you change only lvl work and i add some other scripts so naw i need only name if someone now whats bug thear? |
|
|
| Report Abuse |
|
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 18 Dec 2012 11:05 AM |
I can't really debug the script much further with the information you have given (or failed to give) to me. I would suggest to make sure the indexed locations are correct that should fix any other issues.
print('Hello World!') |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 11:10 AM |
nop sry i forgot i fix lvl tu befor with other script hm can anyone fix this one
while true do script.Parent.Text = math.floor(script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Parent) wait(0.1) end
i dont now why name wont work any ideas?
|
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 11:12 AM |
I am not noob i am sure all other thing is corect
come to my game if wana see how thous things looks like in game. http://www.roblox.com/Shaiya-Beta-place?id=99702852 |
|
|
| Report Abuse |
|
|
megaguy44
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 1066 |
|
|
| 18 Dec 2012 11:13 AM |
"math.floor(script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Parent)" Allow me to go blend out both of my eyeballs.
print('Hello World!') |
|
|
| Report Abuse |
|
|
|
| 18 Dec 2012 11:20 AM |
this my game is rpg and otherwise i dont need the gui to show name. awryone need to now name his self :) Ty for help awryone whu helped Ty Ty Ty |
|
|
| Report Abuse |
|
|