Advertisement
4zx16

Press R to Ragdoll (R6) (Key)

Nov 22nd, 2021 (edited)
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || PRESS R TO RAGDOLL (R6) ||  DON'T TOUCH UNLESS U KNOW WHAT UR DOING
  3. ]]
  4. local Player = game:GetService("Players").LocalPlayer
  5.  
  6. local Char = Player.Character
  7. local Event = Char:WaitForChild("UserInput_Event")
  8.  
  9. local UIS = game:GetService("UserInputService")
  10.  
  11. local input = function(io,a)
  12.     if a then return end
  13.     local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  14.     Event:FireServer(io)
  15. end
  16. UIS.InputBegan:Connect(input)
  17. UIS.InputEnded:Connect(input)
  18. local Changed = false
  19. local Mouse = Player:GetMouse()
  20. local h,t = Mouse.Hit,Mouse.Target
  21. while wait(1/30) do
  22.     if h~=Mouse.Hit or t~=Mouse.Target then
  23.         Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  24.         h,t=Mouse.Hit,Mouse.Target
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement