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: Help please. If you can.

Previous Thread :: Next Thread 
WickedErasor is not online. WickedErasor
Joined: 24 Dec 2009
Total Posts: 1375
01 Aug 2011 05:58 PM
while true do
if script.Parent.Parent.Parent.Character ~= nil then
script.Parent.ShipName.Text = script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.Name.Value
script.Parent.ArmorLevel.Text = "Armor: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.ArmorLevel.Value.."/"..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxArmor.Value
script.Parent.Power.Text = "Power: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.PowerLevel.Value.."/"..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxPower.Value
script.Parent.Fuel.Text = "Fuel: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.Fuel.Value.."/"..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxFuel.Value
script.Parent.BasicLaser.Text = "BasicLaser: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.BasicLaserAmmo.Value
script.Parent.EliteLaser.Text = "EliteLaser: "..script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.EliteLaserAmmo.Value
script.Parent.IonBlast.Text = "IonBlast: " .. script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.IonBlastAmmo .. "/" .. script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat.MaxIonBlast.Value

wait(.05)
end
end

the error comes up as string expected.
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
01 Aug 2011 05:59 PM
HolyFreakingCrapHaveYouEverHeardOfVariables?!?!??!?!?!??!??!?!?!???!?!??
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
01 Aug 2011 05:59 PM
Ok uh, wow that's a good chunk of code.

Line number of the error please? Or just mark the line?
Report Abuse
WickedErasor is not online. WickedErasor
Joined: 24 Dec 2009
Total Posts: 1375
01 Aug 2011 06:00 PM
@swimguy

xD err....I frogot to use them this time
Report Abuse
truelovedragon is not online. truelovedragon
Joined: 16 Dec 2010
Total Posts: 123
01 Aug 2011 06:01 PM
0-0 Too. Freaking. Many. Lines. Just tell us what line the issue is in!
Report Abuse
WickedErasor is not online. WickedErasor
Joined: 24 Dec 2009
Total Posts: 1375
01 Aug 2011 06:01 PM
It didn't say which line all it said was string expected

The error only came up after I finished that script so I know it is from that.
Report Abuse
WickedErasor is not online. WickedErasor
Joined: 24 Dec 2009
Total Posts: 1375
01 Aug 2011 06:05 PM
I am going to restart this and use variables then come back to you guys if it doesn't work still.
Report Abuse
WickedErasor is not online. WickedErasor
Joined: 24 Dec 2009
Total Posts: 1375
01 Aug 2011 06:10 PM
while true do
if script.Parent.Parent.Parent.Character ~= nil then
ShipSeat = script.Parent.Parent.Parent.Character.Plane.Parts.PilotSeat
script.Parent.ShipName.Text = ShipSeat.Name.Value
script.Parent.ArmorLevel.Text = "Armor: "..ShipSeat.ArmorLevel.Value.."/"..ShipSeat.MaxArmor.Value
script.Parent.Power.Text = "Power: "..ShipSeat.PowerLevel.Value.."/"..ShipSeat.MaxPower.Value
script.Parent.Fuel.Text = "Fuel: "..ShipSeat.Fuel.Value.."/"..ShipSeat.MaxFuel.Value
script.Parent.BasicLaser.Text = "BasicLaser: "..ShipSeat.BasicLaserAmmo.Value
script.Parent.EliteLaser.Text = "EliteLaser: "..ShipSeat.EliteLaserAmmo.Value
--script.Parent.PlasmaLaser.Text = "PlasmaBattery: "..ShipSeat.PlasmaLaserAmmo
script.Parent.IonBlast.Text = "IonBlast: " .. ShipSeat.IonBlastAmmo .. "/" .. ShipSeat.MaxIonBlast.Value

wait(.05)
end
end

same error
Report Abuse
piedude5 is not online. piedude5
Joined: 01 Mar 2010
Total Posts: 190
01 Aug 2011 06:19 PM
Try putting a value in the lazer thingy, and it might work.
Report Abuse
swmaniac is not online. swmaniac
Joined: 28 Jun 2008
Total Posts: 15773
01 Aug 2011 06:29 PM
This is going to sound weird, but put a space between the "'s and ..'s.

Apparently the .. operators like spaces. It's also just easier to read.
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