Roblox Central

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Roblox Central

Discussion for all things Roblox. (roblox.com)

Welcome to the new forum! Any suggestions you have are greatly appreciated.
WARNING: Before referring anyone to this website, Please read this topic

2 posters

    Control Battle Script

    avatar
    Jfeather
    Admin


    Posts : 232
    Join date : 2009-06-18
    Location : This Forum. Duh.

    Control Battle Script Empty Control Battle Script

    Post by Jfeather Sun Jun 21, 2009 11:54 am

    Code:

    function update()
    local R = game.Workspace.MasterScript.Red
    local Bl = game.Workspace.MasterScript.Blue
    H.Text = "______________________________Time Left: --"..b.." minutes, "..c.." seconds -- Scores: Red:["..R.."] - Blue:["..Bl.."]"
      if brickblue.BrickColor == BrickColor.new(23) and brickred.BrickColor == BrickColor.new(23) and brick.BrickColor == BrickColor.new(23) and R.Value > Bl.Value then
      death.Value = death.Value - 1
      H.Text = "___Red has total control and is in the lead! They will auto-win in: ["..death.Value.."]_____Game time left: "..b.." mins, "..c.." seconds."
      wait(1)
          if death.Value == 0 then
          finish()
          elseif death.Value > 0 then
          wait()
          end
      end


    Output error: Workspace.MasterScript:102: attempt to concatenate local 'Bl' (a userdata value)

    Line 102 is the third line down... you may have better luck copying the script into studio so you can get a better look at it... Any help is progress =D

    Thanks again,
    -Jfeather
    Meelo
    Meelo
    Admin


    Posts : 217
    Join date : 2009-06-19

    Control Battle Script Empty Re: Control Battle Script

    Post by Meelo Sun Jun 21, 2009 2:21 pm

    Red:["..R.."] - Blue:["..Bl.."]"

    Try

    Red:["..R.Value.."] - Blue:["..Bl.Value.."]"
    avatar
    Jfeather
    Admin


    Posts : 232
    Join date : 2009-06-18
    Location : This Forum. Duh.

    Control Battle Script Empty Re: Control Battle Script

    Post by Jfeather Sun Jun 21, 2009 7:50 pm

    I can't believe I missed something as small as that.

    Anyway, the script works now, but the if statements must not be catching... I never can get the full control message to appear. I'll keep messing with it later.


    Thanks for the help, anyway =D

    Sponsored content


    Control Battle Script Empty Re: Control Battle Script

    Post by Sponsored content


      Current date/time is Mon May 20, 2024 2:52 am