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

Why doesn't this work?

Asked by 9 years ago

This script is for a group raid base. It is for the terminal. Pleas help

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
What does "doesn't work" mean? Is there output? What is it doing instead? BlueTaslem 18071 — 9y

Answer this question