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

FireServen can only be called from the client, i really dont know what is this how do i fix it? [closed]

Asked by 4 years ago

when i press a part, the gui changes btw heres the script

01local 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 
10    local ReplicatedStorage = game:GetService("ReplicatedStorage")
11 
12    local remoteEvent = ReplicatedStorage:WaitForChild("RemoteEventGuiColor")
13 
14    remoteEvent:FireServer()player.PlayerGui.TasksBar.t2.BackgroundColor3 = Color3.new(0.0980392, 1, 0)
15    remoteEvent.OnServerEvent:Connect(player)
16 
17    end
18 
19workspace.Task1.ClickDetector.mouseClick:connect(click)
0
As the error suggests, fire server can only be called from the client( change fireserver to fireclient) JesseSong 3916 — 4y
0
Also please make an attempt when trying to solve this issue. Otherwise, your questions will be closed. JesseSong 3916 — 4y

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?