I don't really see the issue with this, I've also tried disabling/enabling FilteringEnabled but that has no effect.
I have a LocalScript in StarterPlayerScripts, this is the script:
repeat wait() until game.Players.LocalPlayer
Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Button1Event = ReplicatedStorage:WaitForChild("Button1Event")
Mouse.KeyDown:connect(function(key)
if key == "e" then
Button1Event:FireServer()
print("Fired")
end
end)
It calls an event once the player press 'e' that works fine in studio as it prints "Fired" successfully but it will not call it in a server, does anyone know why?

1 comment
it might now work in server because it is stuck waiting on a child