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

Why isn't this working?

Asked by 9 years ago

bin = script.Parent

if game.Players.GetChildren.Color "Bright red" then function onTouched(part) game.Workspace.Terminal.Colors.Part1.BrickColor = BrickColor.new("Medium stone grey") --Change This Color To Raider Team Color game.Workspace.Terminal.Colors.Part2.BrickColor = BrickColor.new("Medium stone grey") --Change This Color To Raider Team Color game.Workspace.Terminal.Colors.Part3.BrickColor = BrickColor.new("Medium stone grey") --Change This Color To Raider Team Color wait(7) local hint = Instance.new('Hint', workspace) hint.Text = "Raiders have capture the base! 20 Minutes till raiders win!" wait(5) game.Workspace.Message:Remove() wait(60) local hint = Instance.new('Hint', workspace) hint.Text = "5%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "10%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "15%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "20%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "25%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "30%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "35%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "40%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "45%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "50%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "55%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "60%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "65%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "70%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "75%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "80%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "85%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "90%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "95%" wait(60) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "100%" wait(1) game.Workspace.Message:Remove() local hint = Instance.new('Hint', workspace) hint.text = "The Raiders have won! Good Game." wait(3) game.Workspace.Hint:Remove() end bin.Touched:connect(onTouched)

if game.Players.GetPlayers.TeamColor "Medium stone grey" then function onTouched(part) wait (5) game.Workspace.Terminal.Colors.Part1.BrickColor = BrickColor.new("Really red") --Change This Color To Your Group Color game.Workspace.Terminal.Colors.Part2.BrickColor = BrickColor.new("Really red") --Change This Color To Your Group Color game.Workspace.Terminal.Colors.Part3.BrickColor = BrickColor.new("Really red") --Change This Color To Your Group Color game.Workspace.Message:Remove() game.Workspace.Terminal.Part.Raiders.Disabled = true local hint = Instance.new('Hint', workspace) hint.text = "(Group Name) has taken back the base!" --Insert Group Name Where it Says (Group Name). Remove the parenthesis. wait(5) game.Workspace.Message:Remove() bin.Touched:connect(onTouched) end

Answer this question