Fire server not working

I’m trying to enable this server script using a local script.

game:GetService("ReplicatedStorage").MissionStuff.Chanching.ToPlaceInWorkspace.Player:Clone().Parent = game:GetService("Workspace").MissionsStuff

game:GetService("ReplicatedStorage").MissionStuff.Chanching.ToPlaceInWorkspace.Trucker:Clone().Parent = game:GetService("Workspace").MissionsStuff

game:GetService("ReplicatedStorage").MissionStuff.Chanching.ToPlaceInWorkspace.Chanching:Clone().Parent = game:GetService("Workspace").MissionsStuff

But the fire server is not working for some reason. The script enables but don’t work.
What’s wrong?

local remoteEvent1 = game:GetService("ReplicatedStorage").CloneChanging

local function cloneMission()

game:GetService("Workspace").CloneScripts.ChangingDialog.Disabled = false

end

remoteEvent1:FireServer(cloneMission())

No errors on output

1 Like

Ur firing a void function which doesn’t make any sense.
Do this:
Server

RE.OnServerEvent:Connect(function()
    YourServerScript.Disabled = false
end)

Client:

RE:FireServer()
2 Likes

But OnServerEvent can only be used on server…

I believe he means that you are not using the functionc correctly. The local script should be like:

local remoteEvent1 = game:GetService("ReplicatedStorage").CloneChanging

 remoteEvent1:FireServer()

Then I guess create a server script and add the following:

local remoteEvent1 = game:GetService("ReplicatedStorage").CloneChanging

remoteEvent1.OnServerEvent:Connect(function()

          game:GetService("Workspace").CloneScripts.ChangingDialog.Disabled = false

end)

I am not sure if this is your solution because the code you showed us kind of confused me a bit. Hope this helps in any sort of way.

So what’s the problem in using it.

I think I understand it know. It worked fine! I’m just not sure of one thing… It will only detects the event of the RemoteEvent that I pointed or any event?
(maybe a dumb question, but I’m new at this and I want to make everything clean).