Advertisement
Roblox_Xploits

fbhgj

Mar 30th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. --Made by LordRevorius the 420mememaster
  2. lmaohat = Instance.new("Accessory")
  3. lmaohat.Name = "Sheik"
  4. lmaohat.AttachmentForward = Vector3.new(0, 0.148, -0.989)
  5. lmaohat.AttachmentPos = Vector3.new(0, 0.35, 0.07)
  6. lmaohat.AttachmentRight = Vector3.new(1, 0, 0)
  7. lmaohat.AttachmentUp = Vector3.new(0, 0.989, 0.148)
  8.  
  9. lmaohandle = Instance.new("Part")
  10. lmaohandle.Parent = lmaohat
  11. lmaohandle.Name = "Handle"
  12. lmaohandle.Size = Vector3.new(2, 1.2, 2)
  13.  
  14. lmaoatta = Instance.new("Attachment")
  15. lmaoatta.Name = "HatAttachment"
  16. lmaoatta.Parent = lmaohandle
  17. lmaoatta.Axis = Vector3.new(1, -0, -0)
  18. lmaoatta.SecondaryAxis = Vector3.new(0, 0.989, 0.148)
  19. lmaoatta.Position = Vector3.new(0, 0.449, 0.085)
  20. lmaoatta.Rotation = Vector3.new(8.511, 0, -0)
  21.  
  22. lmaomesh = Instance.new("SpecialMesh")
  23. lmaomesh.Parent = lmaohandle
  24. lmaomesh.MeshId = "http://www.roblox.com/asset/?id=12305010"
  25. lmaomesh.TextureId = "http://www.roblox.com/asset/?id=167764345"
  26. lmaomesh.Scale = Vector3.new(1, 1, 1)
  27.  
  28.  
  29. local Player = game:GetService("Players").LocalPlayer
  30. local Backpack = Player:WaitForChild("Backpack")
  31. local Character = Player.Character
  32.  
  33. if not Character:FindFirstChild("Shirt") then
  34. NewShirt = Instance.new("Shirt", Character)
  35. NewShirt.Name = "Shirt"
  36. end
  37.  
  38.  
  39. if not Character:FindFirstChild("Pants") then
  40. NewPants = Instance.new("Pants", Character)
  41. NewPants.Name = "Pants"
  42. end
  43.  
  44.  
  45. for _, v in pairs(Character:GetChildren()) do
  46. if v:IsA("Accessory") then
  47. v:Destroy()
  48. end
  49. end
  50.  
  51. for _, v in pairs(Character:GetChildren()) do
  52. if v:IsA("CharacterMesh") then
  53. v:Destroy()
  54. end
  55. end
  56.  
  57. for _, v in pairs(Character:GetChildren()) do
  58. if v:IsA("ShirtGraphic") then
  59. v:Destroy()
  60. end
  61. end
  62.  
  63. lmaohat.Parent = Character
  64. Character["Shirt"].ShirtTemplate = "http://www.roblox.com/asset/?id=590311692"
  65. Character["Pants"].PantsTemplate = "http://www.roblox.com/asset/?id=686633812"
  66.  
  67. local Torso = Character:WaitForChild("Torso")
  68. local Left_Arm = Character:WaitForChild("Left Arm")
  69. local Right_Arm = Character:WaitForChild("Right Arm")
  70.  
  71. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  72. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  73.  
  74. local RA_Weld = Instance.new("Weld")
  75. local LA_Weld = Instance.new("Weld")
  76.  
  77. local Tool = Instance.new("Tool",Backpack)
  78. local Handle = Instance.new("Part", Tool)
  79. local Mesh = Instance.new("SpecialMesh", Handle)
  80. Mesh.Scale = Vector3.new(.9,.9,.9)
  81.  
  82. Tool.Name = "STONE"
  83. Handle.Name = "Handle"
  84.  
  85. Mesh.MeshType = "FileMesh"
  86. Mesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  87. Mesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  88.  
  89. function AngleOfReach(distance, altitude, velocity)
  90. local theta = math.atan((velocity^2 + math.sqrt(velocity^4 -196.2*(196.2*distance^2 + 2*altitude*velocity^2)))/(196.2*distance))
  91. if theta ~= theta then
  92. theta = math.pi/4
  93. end
  94. return(theta)
  95. end
  96.  
  97. local thr = false
  98.  
  99. Tool.Equipped:connect(function(Mouse)
  100. RightShoulder.Parent = nil
  101. LeftShoulder.Parent = nil
  102. LA_Weld.Parent = Torso
  103. RA_Weld.Parent = Torso
  104. LA_Weld.Part0 = Torso
  105. LA_Weld.Part1 = Left_Arm
  106. RA_Weld.Part0 = Torso
  107. RA_Weld.Part1 = Right_Arm
  108. RA_Weld.C0 = CFrame.new(1.5, 0, 0)
  109. LA_Weld.C0 = CFrame.new(-1.5, 0, 0)
  110.  
  111. local StartRA = RA_Weld.C0
  112. local StartLA = LA_Weld.C0
  113. for Index = .1, 1, .1 do
  114. RA_Weld.C0 = StartRA:lerp(CFrame.new(1, 1.25, 0) * CFrame.Angles(math.rad(220), 0, math.rad(-40)), Index)
  115. LA_Weld.C0 = StartLA:lerp(CFrame.new(-1, 1.25, 0) * CFrame.Angles(math.rad(220), 0, math.rad(40)), Index)
  116. wait()
  117. end
  118. StartRA = RA_Weld.C0
  119. StartLA = LA_Weld.C0
  120. Mouse.Button1Down:connect(function()
  121. if thr then return end
  122. thr = true
  123. for Index = .1, 1, .2 do
  124. RA_Weld.C0 = StartRA:lerp(CFrame.new(.75, 1.25, 0) * CFrame.Angles(math.rad(160), 0, math.rad(-40)), Index)
  125. LA_Weld.C0 = StartLA:lerp(CFrame.new(-.75, 1.25, 0) * CFrame.Angles(math.rad(160), 0, math.rad(40)), Index)
  126. wait()
  127. end
  128. Handle.Transparency = 1
  129. StartRA = RA_Weld.C0
  130. StartLA = LA_Weld.C0
  131. local Velocity = 100
  132. local mousePosition = Mouse.Hit
  133. local handlePos = Vector3.new(Tool.Handle.Position.X, 0, Tool.Handle.Position.Z) -- remove Y from the equation, it's not needed
  134. local mousePos = Vector3.new(mousePosition.X, 0, mousePosition.Z) -- ditto
  135. local distance = (handlePos - mousePos).magnitude -- Get the distance between the handle and the mouse
  136. local altitude = mousePosition.Y - Tool.Handle.Position.Y
  137. local angle = AngleOfReach(distance, altitude, Velocity) -- Calculate the angle
  138. local stone = Tool.Handle:Clone()
  139. stone.Parent = workspace
  140. stone.Transparency = 0
  141. stone.CanCollide = false
  142. stone.CFrame = Tool.Handle.CFrame
  143. stone.Velocity = (CFrame.new(stone.Position, Vector3.new(mousePosition.X, stone.Position.Y, mousePosition.Z)) * CFrame.Angles(angle, 0, 0)).lookVector * Velocity -- Throwing 'n stuff, it probably didn't need to be this long
  144. wait(.07)
  145. stone.CanCollide = true
  146. wait()
  147. local HitConnection
  148. local Hit = false
  149. HitConnection = stone.Touched:connect(function(Part)
  150. if Hit then return end
  151. if not Part:IsDescendantOf(Character) then
  152. Hit = true
  153. local HitCharacter
  154. if Part.Parent:IsA("Accessory") or Part.Parent:IsA("Tool") then
  155. HitCharacter = Part.Parent.Parent
  156. else
  157. HitCharacter = Part.Parent
  158. end
  159. local HitHumanoid = HitCharacter:FindFirstChild("Humanoid")
  160. if HitHumanoid then
  161. HitHumanoid:TakeDamage(35)
  162. hitmarker = Instance.new("Sound")
  163. hitmarker.Parent = HitCharacter.Head
  164. hitmarker.SoundId = "rbxassetid://131864673"
  165. hitmarker.Volume = 10
  166. hitmarker:Play()
  167. wait(1)
  168. hitmarker:Destroy()
  169. end
  170. HitConnection:disconnect()
  171. end
  172. end)
  173. for Index = .1, 1, .2 do
  174. RA_Weld.C0 = StartRA:lerp(CFrame.new(1, 1.25, 0) * CFrame.Angles(math.rad(220), 0, math.rad(-40)), Index)
  175. LA_Weld.C0 = StartLA:lerp(CFrame.new(-1, 1.25, 0) * CFrame.Angles(math.rad(220), 0, math.rad(40)), Index)
  176. wait()
  177. end
  178. StartRA = RA_Weld.C0
  179. StartLA = LA_Weld.C0
  180. wait(.5)
  181. thr = false
  182. Handle.Transparency = 0
  183. end)
  184.  
  185. Mouse.Button2Down:connect(function()
  186. if thr then return end
  187. thr = true
  188. for Index = .1, 1, .2 do
  189. RA_Weld.C0 = StartRA:lerp(CFrame.new(.75, 1.25, -1.3) * CFrame.Angles(math.rad(110), 0, math.rad(-40)), Index)
  190. LA_Weld.C0 = StartLA:lerp(CFrame.new(-.75, 1.25, -1.3) * CFrame.Angles(math.rad(110), 0, math.rad(40)), Index)
  191. wait()
  192. end
  193.  
  194. local stone = Handle:clone()
  195. stone.Parent = Handle
  196. local w = Instance.new("Weld",stone)
  197. w.Part0 = stone
  198. w.Part1 = Handle
  199. local Hit = false
  200. HitConnection = stone.Touched:connect(function(Part)
  201. if Hit then return end
  202. if not Part:IsDescendantOf(Character) then
  203. Hit = true
  204. local HitCharacter
  205. if Part.Parent:IsA("Accessory") or Part.Parent:IsA("Tool") then
  206. HitCharacter = Part.Parent.Parent
  207. else
  208. HitCharacter = Part.Parent
  209. end
  210. local HitHumanoid = HitCharacter:FindFirstChild("Humanoid")
  211. if HitHumanoid then
  212. HitHumanoid:TakeDamage(35)
  213. hitmarker = Instance.new("Sound")
  214. hitmarker.Parent = HitCharacter.Head
  215. hitmarker.SoundId = "rbxassetid://131864673"
  216. hitmarker.Volume = 10
  217. hitmarker:Play()
  218. wait(1)
  219. hitmarker:Destroy()
  220. end
  221. end
  222. end)
  223.  
  224. StartRA = RA_Weld.C0
  225. StartLA = LA_Weld.C0
  226.  
  227. wait()
  228.  
  229. stone:Destroy()
  230. HitConnection:disconnect()
  231.  
  232. for Index = .1, 1, .2 do
  233. RA_Weld.C0 = StartRA:lerp(CFrame.new(1, 1.25, 0) * CFrame.Angles(math.rad(220), 0, math.rad(-40)), Index)
  234. LA_Weld.C0 = StartLA:lerp(CFrame.new(-1, 1.25, 0) * CFrame.Angles(math.rad(220), 0, math.rad(40)), Index)
  235. wait()
  236. end
  237.  
  238. StartRA = RA_Weld.C0
  239. StartLA = LA_Weld.C0
  240.  
  241. wait(.5)
  242. thr = false
  243. end)
  244. end)
  245.  
  246. Tool.Unequipped:connect(function(Mouse)
  247. LA_Weld.Parent = nil
  248. RA_Weld.Parent = nil
  249. RightShoulder.Parent = Torso
  250. LeftShoulder.Parent = Torso
  251. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement