Dark_EccentricYT

Untitled

Jun 6th, 2018
2,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. --liek a boss with coke
  2. local plr = game:service'Players'.LocalPlayer
  3. local mouse = plr:GetMouse()
  4. local char = plr.Character
  5. local torso = char:findFirstChild("Torso")
  6. local head = char.Head
  7. local ra = char:findFirstChild("Right Arm")
  8. local la = char:findFirstChild("Left Arm")
  9. local rl = char:findFirstChild("Right Leg")
  10. local ll = char:findFirstChild("Left Leg")
  11. local rs = torso:findFirstChild("Right Shoulder")
  12. local ls = torso:findFirstChild("Left Shoulder")
  13.  
  14. local debounce = false
  15.  
  16. function part(parent, size, formfactor, color, collide, transparency)
  17. local p=Instance.new("Part", parent)
  18. p.FormFactor=formfactor
  19. p.CanCollide=false
  20. p.Size=size
  21. p.Locked=true
  22. p.Transparency=transparency
  23. p.Position=torso.Position
  24. p.BrickColor=color
  25. p.FrontSurface="SmoothNoOutlines"
  26. p.BackSurface="SmoothNoOutlines"
  27. p.LeftSurface="SmoothNoOutlines"
  28. p.BottomSurface="SmoothNoOutlines"
  29. p.TopSurface="SmoothNoOutlines"
  30. p.RightSurface="SmoothNoOutlines"
  31. return p
  32. end
  33. function weld(c0, c1, part1, part0)
  34. local wel=Instance.new("Weld", main)
  35. wel.Part0 = part0
  36. wel.Part1 = part1
  37. wel.C0 = c0
  38. wel.C1 = c1
  39. return wel
  40. end
  41. function specialmesh(parent, meshType, scale, meshId, texture)
  42. local mesh = Instance.new("SpecialMesh", parent)
  43. mesh.Scale = scale
  44. mesh.MeshType = meshType
  45. mesh.MeshId = meshId
  46. mesh.TextureId = texture
  47. return mesh
  48. end
  49.  
  50. tool = Instance.new("Tool", plr.Backpack)
  51. tool.Name = "Coke"
  52. tool.GripForward = Vector3.new(-0.976, 0, -0.217)
  53. tool.GripPos = Vector3.new(0.03, 0, 0)
  54. tool.GripRight = Vector3.new(0.217, 0, -0.976)
  55. tool.GripUp = Vector3.new(0, 1, 0)
  56.  
  57. local p = part(tool, Vector3.new(1, 1.2, 1), "Custom", BrickColor.new("Mid gray"), false, 0)
  58. p.Name = "Handle"
  59. local m = specialmesh(p, "FileMesh", Vector3.new(1.2, 1.2, 1.2), "http://www.roblox.com/asset/?id=10470609", "http://www.roblox.com/asset/?id=10470600")
  60.  
  61.  
  62. tool.Equipped:connect(function(mouse)
  63. ar = Instance.new("Part", char)
  64. ar.FormFactor = "Custom"
  65. ar.Size = Vector3.new(1, 1, 1)
  66. ar.Transparency = 1
  67. ar.CanCollide = false
  68. ar.Locked = true
  69. ar:breakJoints()
  70.  
  71.  
  72. local fakel = Instance.new("Weld", char)
  73. fakel.Part0 = char.Torso
  74. fakel.Part1 = ar
  75. fakel.C0 = CFrame.new(1.5, 0.45, 0)
  76. welditbro = Instance.new("Weld", char)
  77. welditbro.C0 = CFrame.new(0, 0.45, 0)
  78. welditbro.Part0 = ra
  79. welditbro.Part1 = ar
  80.  
  81. for i = 0, 90, 30 do
  82. fakel.C0 = CFrame.new(1.5, 0.45, 0) * CFrame.Angles(math.rad(i), 0, 0)
  83. wait()
  84. end
  85.  
  86. mouse.Button1Down:connect(function(mouse)
  87. if debounce then return end
  88. debounce = true
  89. for i = 90, 120, 10 do
  90. fakel.C0 = CFrame.new(1.5, 0.45, 0) * CFrame.Angles(math.rad(i/2), math.rad(i), math.rad(i/2))
  91. wait()
  92. end
  93. wait(1)
  94. for i = 120, 90, -10 do
  95. fakel.C0 = CFrame.new(1.5, 0.45, 0) * CFrame.Angles(math.rad(i/2), math.rad(i), math.rad(i/2))
  96. wait()
  97. end
  98. fakel.C0 = CFrame.new(1.5, 0.45, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  99. local flood = part(workspace, workspace:findFirstChild("Base").Size, "Custom", BrickColor.new("Brown"), false, 0)
  100. flood.Anchored = true
  101. flood.Touched:connect(function(hit)
  102. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= char.Name then
  103. hit.Parent:BreakJoints()
  104. end
  105. end)
  106. flood.CFrame = workspace:FindFirstChild("Base").CFrame * CFrame.new(0, -2, 0)
  107. for _ = 0, 6, 0.1 do
  108. flood.CFrame = flood.CFrame * CFrame.new(0, 0.1, 0)
  109. wait()
  110. end
  111. flood:Destroy()
  112.  
  113. debounce = false
  114. end)
  115.  
  116.  
  117. end)
  118.  
  119. tool.Unequipped:connect(function(mouse)
  120. pcall(function()
  121. ar:Destroy()
  122. fakel:Destroy()
  123. welditbro:Destroy()
  124. end)
  125. end)
Add Comment
Please, Sign In to add comment