Hi! I have a problem with making a remote function event. I did a script that fires the event when I touch the brick: (located in ServerScriptService)
local event = game.ReplicatedStorage.RemoteEvent
workspace.Part.Touched:Connect(function()
event:FireAllClients()
print("serverWorks")
end)
and the OnClientEvent LOCAL script
local event = game.ReplicatedStorage.RemoteEvent
event.OnClientEvent:Connect(function()
print("clientWorks")
end)
The problem is that it only prints "serverWorks"
Thank you for every answer :]

5 comments
Is that both the complete scripts ?
yeah
Where is the localscript located?
Its in the workspace
try putting the localscript in starterplayer scripts