so this is from the receiving side in a script in starter character scripts:
game.ReplicatedStorage.jump.OnServerEvent:Connect(function(me, mouse)
mouse.KeyUp:Connect(function(key)
if key == "Space" then
holding = false
end
end)
end)
and this is the sending side in a local script also in starter character scripts:
local mouse = game.Players.LocalPlayer:GetMouse()
game.ReplicatedStorage.jump:FireServer(mouse)
and there is a remote event named jump in replecated storage when i print mouse on local script it says instance (good) but when i print mouse in script it says nil (bad) why is this happening?

4 comments
https://scriptinghelpers.org/guides/server-client-relationship-in-roblox. Please try to understand basic networking before attempting to build a Client-to-Server relationship. You shouldn't be trying to use Client-orientated Instances on the Server, it is meant to operate in LocalScripts only. You can simply detect the key state of the spacebar and send the boolean instead.
You're also using an outdated form of keyboard-input recognition, it was superseded by UserInputService several years ago.
Loading...
Loading...