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

4 comments
Can you tell us what your problem is?
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.
Did you read the output? What does the output say?
It doesn't say anything.