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
 

script help please

Previous Thread :: Next Thread 
gamesmasr3000 is not online. gamesmasr3000
Joined: 13 Sep 2010
Total Posts: 69
25 Nov 2012 02:08 AM
print 'Hello world!'
game.Players.PlayerAdded:connect(function(player)
script.clone = LocalPlayer.StarterGear

Instance.new("IntValue") = player.StarterGear

while true do

if player.TeamColor == BrickColor.new("White") then
wait(5)
script.Parent.IntValue = script.Parent.IntValue = 5

elseif player.TeamColor == BrickColor.new("Bright blue") then
wait(5)
script.Parent.IntValue = script.Parent.IntValue = 100
elseif player.TeamColor == BrickColor.new("Bright red") then
wait(3)
script.Parent.IntValue = script.Parent.IntValue = 50
elseif player.TeamColor == BrickColor.new("Bright yellow") then
wait(3)
script.Parent.IntValue = script.Parent.IntValue = 10000
end
end

it says Workspace.Script:5:unexpected symbol near =
Report Abuse
owenrules12 is not online. owenrules12
Joined: 26 Mar 2009
Total Posts: 402
25 Nov 2012 02:41 AM
I'll give you a quick rescript, might work might not. This should give you a different error if there is one.


    print("Hello World!")
    
    game.Players.PlayerAdded:connect(function(p)
    script = p.StarterGear
    
    v = Instance.new("IntValue", p.StarterGear)
    v.Value = 5
    
    while wait() do
    if p.TeamColor == BrickColor.new("White") then
    wait(5)
    v.Value = 100
    elseif p.TeamColor== BrickColor.new("Bright red") then
    wait(3)
    v.Value = 50
    elseif p.TeamColor == BrickColor.new("Bright yellow") then
    wait(3)
    v.Value = 1000
    end
    end
    end)
Report Abuse
gamesmasr3000 is not online. gamesmasr3000
Joined: 13 Sep 2010
Total Posts: 69
25 Nov 2012 09:14 AM
Much obliged.
Report Abuse
gamesmasr3000 is not online. gamesmasr3000
Joined: 13 Sep 2010
Total Posts: 69
25 Nov 2012 10:10 AM
no errors but doesnt ddo anything
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