Advertisement
PR0J3CT11

Untitled

Aug 23rd, 2019
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --A small part, here with a message!--
  3.  
  4. local Player = game:GetService("Players"):FindFirstChild(owner.Name)
  5. local Character = Player.Character
  6.  
  7. sine = 0
  8. change = 1
  9. sin = math.sin
  10. Cos = math.cos
  11.  
  12. local Model = Instance.new("Model",script)
  13. Model.Name = "cough"
  14. local Part = Instance.new("Part",Model)
  15. Part.Size = Vector3.new(1, 1, 1)
  16. Part.Name = "Head"
  17. Part.Anchored = true
  18. Part.Orientation = Vector3.new(90, 0, 0)
  19. local Humanoid = Instance.new("Humanoid",Model)
  20. Humanoid.Name = "Humanoid"
  21.  
  22. Player.Chatted:connect(function(msg)
  23. Model.Name = msg
  24. end)
  25.  
  26. function hammermesh(part)
  27. local Mesh = Instance.new("SpecialMesh",part)
  28. Mesh.MeshId = "rbxassetid://10604848"
  29. Mesh.TextureId = "rbxassetid://10605252"
  30. return Mesh
  31. end
  32.  
  33. function hammertime(player)
  34. local pee = player
  35. local hammer = Instance.new("Part",pee.Character)
  36. hammer.Size = Vector3.new(2, 5, 4)
  37. hammer.Anchored = false
  38. hammer.Position = pee.Character.HumanoidRootPart.Position + Vector3.new(0, 15, 0)
  39. local Mesh = Instance.new("SpecialMesh",hammer)
  40. Mesh.MeshId = "rbxassetid://10604848"
  41. Mesh.TextureId = "rbxassetid://10605252"
  42. Mesh.Scale = Vector3.new(1, 1, 1)
  43. coroutine.resume(coroutine.create(function()
  44. while true do
  45. Swait()
  46. hammer.Orientation = hammer.Orientation + Vector3.new(10, 0, 0)
  47. end
  48. end))
  49. wait(2)
  50. pee.Character.Head:Destroy()
  51. hammer:Destroy()
  52. pee:LoadCharacter()
  53. end
  54.  
  55. function explode(player)
  56. local pee = player
  57. local explosion = Instance.new("Explosion",pee.Character)
  58. explosion.Position = pee.Character.Torso.Position
  59. pee.Character.Head:Destroy()
  60. wait(.5)
  61. pee:LoadCharacter()
  62. end
  63.  
  64. Player.Chatted:connect(function(message)
  65. if message:sub(1, 4) == "/die" then
  66. local gamer = game.Players:FindFirstChild(message:sub(6))
  67. local chara = gamer.Character
  68. hammertime(gamer)
  69. wait(.5)
  70. Model.Name = "Killed " ..gamer.Name .."."
  71. end
  72. end)
  73.  
  74. function detect()
  75. for _,v in pairs (game.Players:children()) do
  76. if v:IsA("Player") then
  77. if v.Character:FindFirstChild("Hammer") then --big ban
  78. v.Character:FindFirstChild("Hammer"):Destroy()
  79. local decider = math.random(1, 2)
  80. local candie = true
  81. if decider == 1 and candie == true then
  82. hammertime(v)
  83. candie = false
  84. end
  85. if decider == 2 and candie == true then
  86. explode(v)
  87. candie = false
  88. end
  89. end
  90. if v.Character:FindFirstChild("OofHead") then
  91. local decider = math.random(1, 2)
  92. local candie = true
  93. if decider == 1 and candie == true then
  94. hammertime(v)
  95. candie = false
  96. end
  97. if decider == 2 and candie == true then
  98. explode(v)
  99. candie = false
  100. end
  101. end
  102. if v.PlayerGui:FindFirstChild("RequireGUI") then --pityhub
  103. v.PlayerGui:FindFirstChild("RequireGUI").ToggleButton.Text = "destroyed skid"
  104. v.PlayerGui:FindFirstChild("RequireGUI").ToggleButton:ClearAllChildren()
  105. end
  106. if v.Character:FindFirstChild("Banzai Bazooka") then --banzai bazooka
  107. local decider = math.random(1, 2)
  108. local candie = true
  109. if decider == 1 and candie == true then
  110. hammertime(v)
  111. candie = false
  112. end
  113. if decider == 2 and candie == true then
  114. explode(v)
  115. candie = false
  116. end
  117. end
  118. if v.Character:FindFirstChild("Goner") then --goner
  119. local decider = math.random(1, 2)
  120. local candie = true
  121. if decider == 1 and candie == true then
  122. hammertime(v)
  123. candie = false
  124. end
  125. if decider == 2 and candie == true then
  126. explode(v)
  127. candie = false
  128. end
  129. end
  130. if v.Character:FindFirstChild("Shini-G4-MI") then --shini-g4-mi
  131. local decider = math.random(1, 2)
  132. local candie = true
  133. if decider == 1 and candie == true then
  134. hammertime(v)
  135. candie = false
  136. end
  137. if decider == 2 and candie == true then
  138. explode(v)
  139. candie = false
  140. end
  141. end
  142. if v.Character:FindFirstChild("Name") then --jevil
  143. local decider = math.random(1, 2)
  144. local txtdec = math.random(1, 5)
  145. local textd = false
  146. local candie = true
  147. local textf = v.Character:FindFirstChild("Name").TextLabel
  148. if txtdec == 1 and textd == false then
  149. textd = true
  150. textf.Text = "nah skid"
  151. end
  152. if txtdec == 2 and textd == false then
  153. textd = true
  154. textf.Text = "hi there jester"
  155. end
  156. if txtdec == 3 and textd == false then
  157. textd = true
  158. textf.Text = "no"
  159. end
  160. if txtdec == 4 and textd == false then
  161. textd = true
  162. textf.Text = "BEGONE"
  163. end
  164. if txtdec == 5 and textd == false then
  165. textd = true
  166. textf.Text = " 'you are noT wELCome heERE, " ..v.Name .."."
  167. end
  168. wait(1)
  169. if decider == 1 and candie == true then
  170. hammertime(v)
  171. candie = false
  172. end
  173. if decider == 2 and candie == true then
  174. explode(v)
  175. candie = false
  176. end
  177. end
  178. if v.Character:FindFirstChild("_status") then --notive
  179. local decider = math.random(1, 2)
  180. local txtdec = math.random(1, 5)
  181. local textd = false
  182. local candie = true
  183. local textf = v.Character:FindFirstChild("_status").TextLabel
  184. textf.Parent:Destroy()
  185. local textf = v.Character:FindFirstChild("_status").TextLabel
  186. if txtdec == 1 and textd == false then
  187. textd = true
  188. textf.Text = "nah skid"
  189. end
  190. if txtdec == 2 and textd == false then
  191. textd = true
  192. textf.Text = "get rekt skid"
  193. end
  194. if txtdec == 3 and textd == false then
  195. textd = true
  196. textf.Text = "no"
  197. end
  198. if txtdec == 4 and textd == false then
  199. textd = true
  200. textf.Text = "BEGONE"
  201. end
  202. if txtdec == 5 and textd == false then
  203. textd = true
  204. textf.Text = " 'you are noT wELCome heERE, " ..v.Name .."."
  205. end
  206. wait(1)
  207. if decider == 1 and candie == true then
  208. hammertime(v)
  209. candie = false
  210. end
  211. if decider == 2 and candie == true then
  212. explode(v)
  213. candie = false
  214. end
  215. end
  216. end
  217. end
  218. end
  219.  
  220. ArtificialHB = Instance.new("BindableEvent", script)
  221. ArtificialHB.Name = "ArtificialHB"
  222.  
  223. script:WaitForChild("ArtificialHB")
  224.  
  225. Frame_Speed = 1/60
  226. frame = Frame_Speed
  227. tf = 0
  228. allowframeloss = false
  229. tossremainder = false
  230. lastframe = tick()
  231. script.ArtificialHB:Fire()
  232.  
  233. game:GetService("RunService").Heartbeat:connect(function(s, p)
  234. tf = tf + s
  235. if tf >= frame then
  236. if allowframeloss then
  237. script.ArtificialHB:Fire()
  238. lastframe = tick()
  239. else
  240. for i = 1, math.floor(tf / frame) do
  241. script.ArtificialHB:Fire()
  242. end
  243. lastframe = tick()
  244. end
  245. if tossremainder then
  246. tf = 0
  247. else
  248. tf = tf - frame * math.floor(tf / frame)
  249. end
  250. end
  251. end)
  252.  
  253. function Swait(NUMBER)
  254. if NUMBER == 0 or NUMBER == nil then
  255. ArtificialHB.Event:wait()
  256. else
  257. for i = 1, NUMBER do
  258. ArtificialHB.Event:wait()
  259. end
  260. end
  261. end
  262.  
  263. while true do
  264. Swait()
  265. sine = sine + change
  266. detect()
  267. Part.Material = "ForceField"
  268. Part.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(4, -0.25 + 0.25 * Cos(sine / 12), 0) * CFrame.Angles(0, 1 + 1 * Cos(sine / 50), 0)
  269. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement