Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- RAGDOLL with PRESSING KEY by BLOXIANCODE youtube.com/c/BloxianCode
- -- Tutorial: https://youtu.be/zycVpt-ClEQ
- local UIS = game:GetService("UserInputService")
- local RepStor = game.ReplicatedStorage
- local isRagdoll = false
- UIS.InputBegan:Connect(function(key, inChat)
- if inChat then return end
- if key.KeyCode == Enum.KeyCode.R then --if player pressed R
- if not isRagdoll then
- RepStor.RagdollEvent:FireServer("go")
- wait(.5)
- isRagdoll = true
- else
- RepStor.RagdollEvent:FireServer("stop")
- wait(.5)
- isRagdoll = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement