Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rp = game:GetService("ReplicatedStorage")
- local remotes = rp:WaitForChild("Remotes")
- local punchRemote = remotes:WaitForChild("Punch")
- local uis = game:GetService("UserInputService")
- uis.InputBegan:Connect(function(input,isTyping)
- if isTyping then return end
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- local jump = uis:IsKeyDown(Enum.KeyCode.Space)
- punchRemote:FireServer(jump)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement