Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Roblox Group Terminal?

Asked by 9 years ago

Ok, so what this script does is once the brick the script is inside gets touched by a certain team it runs a script.

bin = script.Parent

function onTouched(bin)
    local character = bin.Parent
    local player = game.Players:GetPlayerFromCharacter(character)
    if character and player then
        local team = player.TeamColor
        if team == BrickColor.new("Medium stone grey") then --Raider Group Color
            for progress = 5, 100, 5 do
                wait(60)
                local hint = Instance.new('Hint', workspace)
                hint.Text = progress .. "%"
            end
        elseif team == BrickColor.new("Really red") then --Main Group Team Color
        for _, part in pairs(workspace.Colors:GetChildren()) do
            part.BrickColor = team
    end
        workspace.Light.Part.BrickColor = team
        end
    end
end

bin.Touched:connect(onTouched)

Image of Explorer - http://prntscr.com/66jm3p Image of Terrain - http://prntscr.com/66jmr9

0
Can you tell us what your problem is? alphawolvess 1784 — 9y
0
When I touch the block, it wont execute the items. I don't know if there is a problem with (OnTouch) or if there is a error. RexSays 0 — 9y
0
Did you read the output? What does the output say? BlueTaslem 18071 — 9y
0
It doesn't say anything. RexSays 0 — 9y

Answer this question