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
- punchRemote:FireServer()
- end
- end)
Add Comment
Please, Sign In to add comment