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

5 posters

    Need help with a script

    Brian
    Brian
    Mod


    Posts : 37
    Join date : 2009-06-25

    Need help with a script Empty Need help with a script

    Post by Brian Fri Aug 07, 2009 5:19 pm

    I'm trying to make a capture point ( Sorry for copying you JFeather ) for a Team Fortress 2 style capture point place, and the capture point script doesn't seem to work.
    Code:
    if script.Parent.BrickColor =  21 then
       mode == red else
          if script.Parent.BrickColor = 45 then
             mode == blue
          end
    end
    mode = blue
    bin = script.Parent
    function onTouched
       if mode = blue then    
       bin.Parent.Humanoid.Health = bin.Parent.Humanoid.Health + 1
    end
    script.Parent.connect:onTouched
    avatar
    Jfeather
    Admin


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

    Need help with a script Empty Re: Need help with a script

    Post by Jfeather Sat Aug 08, 2009 8:27 am

    I'll try and help you out, but don't worry about copying. As long as you don't copy the whole concept of a Control Battle, I think you're fine Razz

    (Possibly) fixed version:

    Code:


    if script.Parent.BrickColor == BrickColor.new(21) then
     mode = red
    elseif script.Parent.BrickColor == BrickColor.new(45) then
     mode = blue
    end

    mode = blue
    bin = script.Parent

    function onTouched(part) --I think it needs the "Part", but I'm not sure...?
     if mode == blue then
     bin.Parent.Humanoid.Health = bin.Parent.Humanoid.Health + 1
    end
    end
    script.Parent.connect:onTouched(part)


    Here's a tip too: == is always checking for things, = is always changing things Razz


    Edit that: If you want to always check the script.Parent's brickcolor, you may have to make it a while true do function:

    Code:

    while true do
    wait()
    if script.Parent.BrickColor == BrickColor.new(21) then
     mode = red
    elseif script.Parent.BrickColor == BrickColor.new(45) then
     mode = blue
    end
    end

    and just make the rest the same.
    Brian
    Brian
    Mod


    Posts : 37
    Join date : 2009-06-25

    Need help with a script Empty Re: Need help with a script

    Post by Brian Sat Aug 08, 2009 10:55 pm

    You can go ahead and use this in your control battle.
    I forgot to add the if bin.Parent.Humanoid.Health = 100 then
    the brick color turns into the person's( who touched the control point ) team color.
    avatar
    Jfeather
    Admin


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

    Need help with a script Empty Re: Need help with a script

    Post by Jfeather Mon Aug 10, 2009 10:48 am

    Brian wrote:You can go ahead and use this in your control battle.
    I forgot to add the if bin.Parent.Humanoid.Health = 100 then
    the brick color turns into the person's( who touched the control point ) team color.


    Nah, its okay for right now- I'm busy. You go ahead and use it if you need it.
    Meelo
    Meelo
    Admin


    Posts : 217
    Join date : 2009-06-19

    Need help with a script Empty Re: Need help with a script

    Post by Meelo Sat Aug 22, 2009 5:16 pm

    Jfeather wrote:I'll try and help you out, but don't worry about copying. As long as you don't copy the whole concept of a Control Battle, I think you're fine Razz
    Hey wait a minute! That element of Control Battle is copied from Tower of Bigness!
    Earth
    Earth
    Admin


    Posts : 402
    Join date : 2009-06-18
    Location : According to my IP address: Topeka, Kansas.

    Need help with a script Empty Re: Need help with a script

    Post by Earth Sun Aug 23, 2009 10:05 am

    AHA SECOND HAND PLAGARISM!
    avatar
    Jfeather
    Admin


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

    Need help with a script Empty Re: Need help with a script

    Post by Jfeather Mon Aug 24, 2009 8:50 am

    Earth wrote:AHA SECOND HAND PLAGARISM!


    Here we go.... but I had permission, right, Meelo? Very Happy
    Earth
    Earth
    Admin


    Posts : 402
    Join date : 2009-06-18
    Location : According to my IP address: Topeka, Kansas.

    Need help with a script Empty Re: Need help with a script

    Post by Earth Mon Aug 24, 2009 2:46 pm

    Don't self-plagiarize Jfeather.
    avatar
    Meelo2
    New
    New


    Posts : 8
    Join date : 2009-08-23

    Need help with a script Empty Re: Need help with a script

    Post by Meelo2 Tue Aug 25, 2009 8:47 pm

    Jfeather wrote:
    Earth wrote:AHA SECOND HAND PLAGARISM!


    Here we go.... but I had permission, right, Meelo? Very Happy
    To use & distrtibute, not take credit for.

    SHOW ME YOUR BAN BUTTON!
    avatar
    Jfeather
    Admin


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

    Need help with a script Empty Re: Need help with a script

    Post by Jfeather Wed Aug 26, 2009 6:00 am

    Meelo2 wrote:
    Jfeather wrote:
    Earth wrote:AHA SECOND HAND PLAGARISM!


    Here we go.... but I had permission, right, Meelo? Very Happy
    To use & distrtibute, not take credit for.

    SHOW ME YOUR BAN BUTTON!

    Will it help if I put "Origional Capture Idea by Meelo" in the description?
    Meelo
    Meelo
    Admin


    Posts : 217
    Join date : 2009-06-19

    Need help with a script Empty Re: Need help with a script

    Post by Meelo Wed Aug 26, 2009 11:04 am

    Yes... but I still want to ban someone... OOOH! Meelo2, consider myself owned!
    Earth
    Earth
    Admin


    Posts : 402
    Join date : 2009-06-18
    Location : According to my IP address: Topeka, Kansas.

    Need help with a script Empty Re: Need help with a script

    Post by Earth Wed Aug 26, 2009 1:20 pm

    Did you know there's actually something called self plagiarism?
    Brian
    Brian
    Mod


    Posts : 37
    Join date : 2009-06-25

    Need help with a script Empty Re: Need help with a script

    Post by Brian Thu Sep 03, 2009 6:32 pm

    If that happens, would you have to sue yourself?
    Earth
    Earth
    Admin


    Posts : 402
    Join date : 2009-06-18
    Location : According to my IP address: Topeka, Kansas.

    Need help with a script Empty Re: Need help with a script

    Post by Earth Thu Sep 03, 2009 6:55 pm

    Sort of.

    Turning in a paper you wrote last year for English and saying you wrote it this year = self plagiarism,

    Sponsored content


    Need help with a script Empty Re: Need help with a script

    Post by Sponsored content


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