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.
Put the remote event in Replicated Storage, put the script in ServerScriptService, and put the local script in starterplayerscripts. Then replace the scripts with these fire.on in local:
uis.InputBegan:connect(function(input,process) if not process and input.KeyCode == Enum.KeyCode.Z then game.ReplicatedStorage.Event:FireServer() end end)
normal script:
game.ReplicatedStorage.Event..OnServerEvent:Connect(function(player) print "z" end)
Accept this answer if it helped you.