Today I was trying to make a cool gui thing but that isn't the point. I tried doing this script:

local uis = game:GetService("UserInputService")

uis.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.F then
		script.Parent.RemoteEvent:FireServer()
		wait(0.1)
	end
end)

...but it didn't fire the RemoteEvent. It gave me no errors either. Any help?