not local
01 | local function click(player) |
02 | game.Workspace.Countdown.BrickColor = BrickColor.new( "New Yeller" ) |
03 | player.Character.Head.Anchored = true |
04 |
05 | wait( 10 ) |
06 |
07 | game.Workspace.Countdown.BrickColor = BrickColor.new( "Lime green" ) |
08 | player.Character.Head.Anchored = false |
09 | while true do |
10 | script.Player.PlayerGui.Tasksbar.t 2. BackgroundColor 3 = Color 3. new( "Lime Green" ) |
11 | end |
12 | end |
13 |
14 | workspace.Task 1. ClickDetector.mouseClick:connect(click) |
It's not possible to change GUI's in a serverscript. Instead, make a RemoteEvent and FireClient(player) and make a localscript to change the GUI.