Advertisement
DrawingJhon

Say Oof

May 9th, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.52 KB | None | 0 0
  1. plrs = game:GetService("Players")
  2. for i,v in pairs(plrs:GetChildren()) do
  3. if v.ClassName == "Player" then
  4. local chatalready = v:findFirstChild("HasOof")
  5. if chatalready then
  6. chatalready:destroy()
  7. end
  8. end
  9. end
  10. while wait(0.5) do
  11. if not script:findFirstChild("OofSoundEffect#2") then
  12. local oofsound = Instance.new("Sound", script)
  13. oofsound.SoundId = "rbxassetid://1096783747"
  14. oofsound.Volume = 4.5
  15. oofsound.Name = "OofSoundEffect#2"
  16. oofsound.PlayOnRemove = true
  17. end
  18. for i,v in pairs(plrs:GetChildren()) do
  19. if v.ClassName == "Player" then
  20. local chatalready = v:findFirstChild("HasOOF")
  21. if not chatalready then
  22. local chatyes = Instance.new("BoolValue", v)
  23. chatyes.Name = "HasOof"
  24. local function dochat(message)
  25. if script:FindFirstChild("OofSoundEffect#2") then
  26. if script:FindFirstChild("OofSoundEffect#2"):findFirstChild("slowoof") then
  27. script:FindFirstChild("OofSoundEffect#2"):findFirstChild("slowoof"):destroy()
  28. end
  29. script:FindFirstChild("OofSoundEffect#2").PlaybackSpeed = 1
  30. if string.match(message,"ooof",1) then
  31. script:FindFirstChild("OofSoundEffect#2").Volume = 4.5
  32. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  33. script:FindFirstChild("OofSoundEffect#2"):Play()
  34. local pitchshift = Instance.new("PitchShiftSoundEffect", script:FindFirstChild("OofSoundEffect#2"))
  35. pitchshift.Octave = 2
  36. pitchshift.Name = "slowoof"
  37. script:FindFirstChild("OofSoundEffect#2").PlaybackSpeed = 0.5
  38. elseif string.match(message,"OOOF ",1) then
  39. script:FindFirstChild("OofSoundEffect#2").Volume = 10
  40. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  41. script:FindFirstChild("OofSoundEffect#2"):Play()
  42. local pitchshift = Instance.new("PitchShiftSoundEffect", script:FindFirstChild("OofSoundEffect#2"))
  43. pitchshift.Octave = 2
  44. pitchshift.Name = "slowoof"
  45. script:FindFirstChild("OofSoundEffect#2").PlaybackSpeed = 0.5
  46. elseif string.match(message,"Oof",1) then
  47. script:FindFirstChild("OofSoundEffect#2").Volume = 4.5
  48. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  49. script:FindFirstChild("OofSoundEffect#2"):Play()
  50. elseif string.match(message,"OOF",1) then
  51. script:FindFirstChild("OofSoundEffect#2").Volume = 10
  52. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  53. script:FindFirstChild("OofSoundEffect#2"):Play()
  54. elseif string.match(message,"oo",1) then
  55. script:FindFirstChild("OofSoundEffect#2").Volume = 4.5
  56. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  57. script:FindFirstChild("OofSoundEffect#2"):Play()
  58. local function aaa()
  59. wait(0.3)
  60. script:FindFirstChild("OofSoundEffect#2"):Stop()
  61. end
  62. spawn(aaa)
  63. elseif string.match(message,"OO",1) then
  64. script:FindFirstChild("OofSoundEffect#2").Volume = 10
  65. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  66. script:FindFirstChild("OofSoundEffect#2"):Play()
  67. local function aaa()
  68. wait(0.3)
  69. script:FindFirstChild("OofSoundEffect#2"):Stop()
  70. end
  71. spawn(aaa)
  72. elseif string.match(message,"of",1) then
  73. script:FindFirstChild("OofSoundEffect#2").Volume = 4.5
  74. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  75. script:FindFirstChild("OofSoundEffect#2"):Play()
  76. local function aaa()
  77. wait(0.15)
  78. script:FindFirstChild("OofSoundEffect#2"):Stop()
  79. end
  80. spawn(aaa)
  81. elseif string.match(message,"OF",1) then
  82. script:FindFirstChild("OofSoundEffect#2").Volume = 10
  83. script:FindFirstChild("OofSoundEffect#2").TimePosition = 0.5
  84. script:FindFirstChild("OofSoundEffect#2"):Play()
  85. local function aaa()
  86. wait(0.15)
  87. script:FindFirstChild("OofSoundEffect#2"):Stop()
  88. end
  89. spawn(aaa)
  90. end
  91. end
  92. end
  93. v.Chatted:connect(dochat)
  94. end
  95. end
  96. end
  97. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement