Advertisement
TheTomatooo

CombatClient (local Script)

Sep 12th, 2023
27,507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 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.         punchRemote:FireServer()
  13.     end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement