How to call LocalPlayer "Gui" with Server Script "Normal Script" ?
Asked by
6 years ago Edited 6 years ago
Hi, im trying to make a timer when it finishes a gui animation plays since the timer is a sevrer script because it should be the same for everyone i can't call the Localplayer GUI for the animation to play.. so does anyone knows how to do that?.
Code:
03 | local added = math.random( 2 , 3 ) |
04 | local randomsec = math.random( 4 , 30 ) |
05 | local waitseconds = script.Parent.Seconds.Value |
17 | if min < = 9 and sec < = 9 then |
18 | game.Workspace.Time.Value = "0" ..min.. ":0" ..sec |
19 | elseif min < = 9 and sec < = 9 then |
20 | game.Workspace.Time.Value = "0" ..min.. ":0" ..sec |
21 | elseif min < = 9 and sec > = 10 then |
22 | game.Workspace.Time.Value = "0" ..min.. ":" ..sec |
23 | elseif min < = 9 and sec > = 10 then |
24 | game.Workspace.Time.Value = "0" ..min.. ":" ..sec |
25 | elseif min > = 10 and sec < = 9 then |
26 | game.Workspace.Time.Value = min.. ":0" ..sec |
27 | elseif min > = 10 and sec < = 9 then |
28 | game.Workspace.Time.Value = min.. ":0" ..sec |
29 | elseif min > = 10 and sec > = 10 then |
30 | game.Workspace.Time.Value = min.. ":" ..sec |
31 | elseif min > = 10 and sec > = 10 then |
32 | game.Workspace.Time.Value = min.. ":" ..sec |
36 | if min = = 45 and sec > = 10 then |
37 | game.Players.LocalPlayer.PlayerGui.Main.ScoreboardMain.AddedTime.Disabled = false |
38 | game.Players.LocalPlayer.PlayerGui.Main.ScoreboardMain.Purple.Time.Added.AddedT.Text = "+" .. added .. "'" |
39 | game.Players.LocalPlayer.PlayerGui.Main.ScoreboardMain.Purple.AddedTimeValue.Text = "+" .. added .. "'" |
43 | if min = = 45 + added and sec = = randomsec then |
45 | game.Players.LocalPlayer.PlayerGui.Main.ScoreboardMain.OutAnimation.Disabled = false |
46 | game.Players.LocalPlayer.PlayerGui.Main.ScoreboardMain.InAnimation.Disabled = true |