FireServen can only be called from the client, i really dont know what is this how do i fix it? [closed]
when i press a part, the gui changes btw heres the script
01 | local function click(player) |
02 | game.Workspace.Countdown.BrickColor = BrickColor.new( "New Yeller" ) |
03 | player.Character.Head.Anchored = true |
07 | game.Workspace.Countdown.BrickColor = BrickColor.new( "Lime green" ) |
08 | player.Character.Head.Anchored = false |
10 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
12 | local remoteEvent = ReplicatedStorage:WaitForChild( "RemoteEventGuiColor" ) |
14 | remoteEvent:FireServer()player.PlayerGui.TasksBar.t 2. BackgroundColor 3 = Color 3. new( 0.0980392 , 1 , 0 ) |
15 | remoteEvent.OnServerEvent:Connect(player) |
19 | workspace.Task 1. ClickDetector.mouseClick:connect(click) |
Closed as Not Constructive by JesseSong
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?