local uis = game:GetService('UserInputService') local Functions = {} function Functions:snowball() game.ReplicatedStorage.MainEvent:FireServer('DoSnowballInteraction') end uis.InputBegan:Connect(function(input, event) if not event then if input.KeyCode == Enum.KeyCode.Z then Functions:snowball() end end end)