Advertisement
TheTomatooo

Combat Client

Sep 18th, 2023
6,690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | Source Code | 0 0
  1. local rp = game:GetService("ReplicatedStorage")
  2. local remotes = rp:WaitForChild("Remotes")
  3.  
  4. local punchRemote = remotes:WaitForChild("Punch")
  5.  
  6. local uis = game:GetService("UserInputService")
  7.  
  8. uis.InputBegan:Connect(function(input,isTyping)
  9.     if isTyping then return end
  10.    
  11.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  12.         local jump = uis:IsKeyDown(Enum.KeyCode.Space)
  13.         punchRemote:FireServer(jump)
  14.     end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement