So I’m trying to make a crouching system for a W.I.P game I’m making, but the problem is when I use UserInputService to fire an event from the client to the server it won’t do anything.
I’ve tried multiple solutions and even gone through any platform/social media to find answers, yet I still got nothing even when I pressed any of the binds and checked the output.
LocalScript used to fire the event:
local UIS = game:GetService("UserInputService")
UIS.InputBegan:Connect(function(Input, GPE)
if Input == Enum.KeyCode.LeftControl or Input == Enum.KeyCode.RightControl or Input == Enum.KeyCode.LeftShift or Input == Enum.KeyCode.RightShift then
game.ReplicatedStorage.Remotes.Server.Other.Character:WaitForChild("TestPrint"):FireServer()
end
end)
ServerScript:
game.ReplicatedStorage.Remotes.Server.Other.Character.TestPrint.OnServerEvent:Connect(function(plr)
print("Tested")
end)