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
 

would this script work?\

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
02 Aug 2013 06:39 PM
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "bike" then
Player.Character.MaxHealth = 1000
Player.Character.Health = 1000
Player.Character.Jump = true

end
end)
end)
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
02 Aug 2013 06:41 PM
I can't see any errors. Why not run it for yourself and find out? :/
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
02 Aug 2013 06:45 PM
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "bike" then
Player.Character.MaxHealth = 1000
Player.Character.Health = 1000
Player.Character.Jump = true

end
end)
end)


Fix it to player because lua is case-sensitive.. And,I suggest learning string.lower so you can be like bike and BIKE
Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
02 Aug 2013 06:46 PM
Did you even change anything? lol
Report Abuse
evildoomsayer is not online. evildoomsayer
Joined: 28 Jun 2011
Total Posts: 1443
02 Aug 2013 06:49 PM
No just put the script so i can see the mistakes just incase I forget.
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