Why is this not working? A lot of the remote events I did a few months ago don't do anything now.
The fire.on the localscript
uis.InputBegan:connect(function(input,process)
if not process and input.KeyCode == Enum.KeyCode.Z then
script.Parent.Event:FireServer()
end
end)
The normal script.
script.Parent.Event.OnServerEvent:Connect(function(player)
print "z"
end)
Nothing happens at all when I press z.

5 comments
Place the script in ServerScriptService, and the local script in StarterPlayerScripts
https://developer.roblox.com/articles/Writing-Clean-Code
I can't put the script in ServerScriptService because the event it is listening for is an individual players ability.
put local uis = game:GetService("UserInputService")
also if this is in replicatedstorage.. it wont run