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

local function click(player)
    game.Workspace.Countdown.BrickColor = BrickColor.new("New Yeller")
    player.Character.Head.Anchored = true

    wait(10)

    game.Workspace.Countdown.BrickColor = BrickColor.new("Lime green")
    player.Character.Head.Anchored = false

    local ReplicatedStorage = game:GetService("ReplicatedStorage")

    local remoteEvent = ReplicatedStorage:WaitForChild("RemoteEventGuiColor")

    remoteEvent:FireServer()player.PlayerGui.TasksBar.t2.BackgroundColor3 = Color3.new(0.0980392, 1, 0)
    remoteEvent.OnServerEvent:Connect(player)

    end

workspace.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?