TheUnknownDiscord

cheky big brother

Oct 20th, 2021 (edited)
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local model = Instance.new("Model", script)
  2. model.Name = "Mad Deaky"
  3. local humfake = Instance.new("Humanoid", model)
  4. humfake.MaxHealth = 1000
  5. humfake.Health = 1000
  6. local part1 = Instance.new("Part", model)
  7. part1.Shape = Enum.PartType.Ball
  8. part1.Size = Vector3.new(15, 15, 15)
  9. part1.Name = "Head"
  10. local decal = Instance.new("Decal", part1)
  11. local billboard = Instance.new("BillboardGui", part1)
  12. billboard.Adornee = part1
  13. billboard.StudsOffset = Vector3.new(-1, 18, 0)
  14. billboard.Size = UDim2.new(2,0,1,0)
  15. billboard.Name = "healthbarlol"
  16. local text = Instance.new("TextBox", billboard)
  17. text.BackgroundTransparency = 1
  18. text.TextTransparency = 0
  19. text.TextSize = 25
  20. text.Size = billboard.Size
  21. text.Font = "Arcade"
  22. decal.Face = Enum.NormalId.Front
  23. local happyFace = "http://www.roblox.com/asset/?id=7174894082"
  24. decal.Texture = happyFace
  25. part1.Material = "Slate"
  26. part1.Color = Color3.fromRGB(148, 43, 19)
  27. local bg = Instance.new("BodyGyro",part1)
  28. bg.D = 1250
  29. bg.P = 10000
  30. bg.MaxTorque = Vector3.new(400000, 400000, 400000)
  31. function move(target)
  32. local dir = (target.Position - part1.Position).unit
  33. local spawnPos = part1.Position
  34. local pos = spawnPos + (dir * 1)
  35. bg.cframe = CFrame.new(pos, pos + dir)
  36. end
  37.  
  38. function findNearestTorso(pos)
  39. local list = game.Workspace:GetChildren()
  40. local torso = nil
  41. local dist = 1000
  42. local temp = nil
  43. local human = nil
  44. local temp2 = nil
  45. for x = 1, #list do
  46. temp2 = list[x]
  47. if (temp2.className == "Model") and (temp2 ~= model) then
  48. temp = temp2:findFirstChild("Head")
  49. human = temp2:findFirstChild("Humanoid")
  50. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  51. if (temp.Position - pos).magnitude < dist then
  52. torso = temp
  53. dist = (temp.Position - pos).magnitude
  54. end
  55. end
  56. end
  57. end
  58. return torso
  59. end
  60. coroutine.wrap(function()
  61. while true do
  62. local torso = findNearestTorso(part1.Position)
  63. if torso~=nil then
  64. move(torso)
  65. end
  66. task.wait()
  67. end
  68. end)()
  69. function isplatformstand(PC)
  70. coroutine.wrap(function()
  71. PC.Character.Humanoid.PlatformStand = true
  72. wait(3)
  73. for i,v in pairs(PC.Character:GetDescendants()) do
  74. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  75. v.Enabled = true
  76. end
  77. end
  78. PC.Character.Humanoid.PlatformStand = false
  79. end)()
  80. end
  81. local debris = game:GetService("Debris")
  82. function killfunction(part)
  83. local Model = part:FindFirstAncestorOfClass("Model")
  84. if Model then
  85. local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
  86. if PC then
  87. local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
  88. limbcollider.Size = Vector3.new(1.4,1,1)
  89. limbcollider.Shape = "Cylinder"
  90. limbcollider.Transparency = 1
  91. limbcollider.Name = "LimbCollider"
  92. local limbcolliderweld = Instance.new("Weld", limbcollider)
  93. limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
  94. limbcolliderweld.Part1 = limbcollider
  95. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  96. local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
  97. limbcollider2.Size = Vector3.new(1.4,1,1)
  98. limbcollider2.Shape = "Cylinder"
  99. limbcollider2.Transparency = 1
  100. limbcollider2.Name = "LimbCollider"
  101. local limbcolliderweld2 = Instance.new("Weld", limbcollider)
  102. limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
  103. limbcolliderweld2.Part1 = limbcollider2
  104. limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  105. local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
  106. limbcollider3.Size = Vector3.new(1.3,1,1)
  107. limbcollider3.Shape = "Cylinder"
  108. limbcollider3.Transparency = 1
  109. limbcollider3.Name = "LimbCollider"
  110. local limbcolliderweld3 = Instance.new("Weld", limbcollider)
  111. limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
  112. limbcolliderweld3.Part1 = limbcollider3
  113. limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  114. local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
  115. limbcollider4.Size = Vector3.new(1.3,1,1)
  116. limbcollider4.Shape = "Cylinder"
  117. limbcollider4.Transparency = 1
  118. limbcollider4.Name = "LimbCollider"
  119. local limbcolliderweld4 = Instance.new("Weld", limbcollider)
  120. limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
  121. limbcolliderweld4.Part1 = limbcollider4
  122. limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  123. debris:AddItem(limbcollider, 3)
  124. debris:AddItem(limbcollider2, 3)
  125. debris:AddItem(limbcollider3, 3)
  126. debris:AddItem(limbcollider4, 3)
  127. isplatformstand(PC)
  128. for i,v in pairs(PC.Character:GetDescendants()) do
  129. if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
  130. local Socket = Instance.new("BallSocketConstraint")
  131. local a1 = Instance.new("Attachment")
  132. local a2 = Instance.new("Attachment")
  133. a1.Parent = v.Part0
  134. a2.Parent = v.Part1
  135. Socket.Parent = v.Parent
  136. Socket.Attachment0 = a1
  137. Socket.Attachment1 = a2
  138. a1.CFrame = v.C0
  139. a2.CFrame = v.C1
  140. Socket.LimitsEnabled = true
  141. Socket.TwistLimitsEnabled = true
  142. v.Enabled = false
  143. debris:AddItem(a1, 3)
  144. debris:AddItem(a2, 3)
  145. debris:AddItem(Socket, 3)
  146. end
  147. end
  148. end
  149. end
  150. end
  151. local db = false
  152. Bullet = Instance.new("Part", owner.Character)
  153. Bullet.Position = Vector3.new(1000000,1000000,1000000)
  154. Bullet.Anchored = true
  155. Bullet.CanCollide = false
  156. Bullet.BrickColor = BrickColor.new("Bright yellow")
  157. while true do
  158. task.wait()
  159. text.Text = "Health: "..humfake.Health.."/1000"
  160. if humfake.Health <= 0 then
  161. model:Destroy()
  162. script:Destroy()
  163. else
  164. end
  165. wait(2.5)
  166. local origin = part1.Position
  167. local position = part1.CFrame.lookVector * 300
  168. local direction = (position - origin).Unit*300
  169. local result = game.Workspace:Raycast(origin, direction)
  170.  
  171. local intersection = result and result.Position or origin + direction
  172. local distance = (origin - intersection).Magnitude + 2.5
  173.  
  174. local bullet_clone = Bullet:Clone()
  175. bullet_clone.Size = Vector3.new(1.25, 1.25, distance)
  176. bullet_clone.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance/2)
  177. bullet_clone.Parent = game.Workspace
  178.  
  179. if result then
  180. local part = result.Instance
  181. wait(0.1)
  182. killfunction(part)
  183. local humanoid = part.Parent:FindFirstChild("Humanoid") or part.Parent.Parent:FindFirstChild("Humanoid")
  184.  
  185. if humanoid then
  186. humanoid.Health = humanoid.Health - 45
  187. local velocity = Instance.new("BodyVelocity", part)
  188. velocity.Velocity = bullet_clone.CFrame.lookVector * 20
  189. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  190. wait(0.125)
  191. velocity:Destroy()
  192. velocity = nil
  193. end
  194. end
  195. wait(0.25)
  196. bullet_clone:Destroy()
  197. if not db then
  198. db = true
  199. part1.CFrame = part1.CFrame * CFrame.new(math.random(-25,25),0,math.random(-25,25))
  200. wait(0.1)
  201. db = false
  202. end
  203. end
Add Comment
Please, Sign In to add comment