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
 

someone fix this pls

Previous Thread :: Next Thread 
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
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
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
18 Dec 2012 12:44 AM
i see only the hp needs to be human not Human anyone see anything else?
Report Abuse
ObsessedwithMario is not online. ObsessedwithMario
Joined: 03 Mar 2012
Total Posts: 268
18 Dec 2012 01:35 AM
Is this in the Starter Pack? If so it needs to be in a local script.
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
18 Dec 2012 06:20 AM
yes its in starter gui for a rpg game
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
18 Dec 2012 06:28 AM
Anyone ? can change this script so it works?
Report Abuse
ObsessedwithMario is not online. ObsessedwithMario
Joined: 03 Mar 2012
Total Posts: 268
18 Dec 2012 06:49 AM
copy everything into a local script it will work
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
18 Dec 2012 06:50 AM
inv me to party pls
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
18 Dec 2012 06:53 AM
dont work
Report Abuse
awas3 is not online. 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 is not online. 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
Wehttam664 is not online. Wehttam664
Joined: 02 Oct 2009
Total Posts: 767
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 is not online. 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 is not online. 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
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
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 is not online. 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
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
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
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
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 is not online. 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
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
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
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