Advertisement
loleristhegoat

Untitled

Sep 27th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.01 KB | None | 0 0
  1. local Mp = game:GetService("Players").LocalPlayer
  2. local Mpc = Mp.Character
  3. local Head,Torso,Ra,La,Rl,Ll = Mpc.Torso.Neck,Mpc.HumanoidRootPart.RootJoint,Mpc.Torso["Right Shoulder"],Mpc.Torso["Left Shoulder"],Mpc.Torso["Right Hip"],Mpc.Torso["Left Hip"]
  4. local oHead,oTorso,oRa,oLa,oRl,oLl = Head.C0,Torso.C0,Ra.C0,La.C0,Rl.C0,Ll.C0
  5. local Mouse = Mp:GetMouse()
  6. local Spam = false
  7. local Animation = ""
  8. local Walking = false
  9. local Walk = 1
  10. local Movement = {['w'] = false, ['s'] = false, ['a'] = false, ['d'] = false, ["moving"] = false}
  11. local Darkness = {}
  12.  
  13. local New = function(Object, Parent, Name, Data) --Thanks jarred for this function everything else by Kanon Nakagawa
  14. local Object = Instance.new(Object)
  15. for Index, Value in pairs(Data or {}) do
  16. Object[Index] = Value
  17. end
  18. Object.Parent = Parent
  19. Object.Name = Name
  20. return Object
  21. end
  22.  
  23. local Fix = function()
  24. Head.C0 = oHead
  25. Torso.C0 = oTorso
  26. Ra.C0 = oRa
  27. La.C0 = oLa
  28. Rl.C0 = oRl
  29. Ll.C0 = oLl
  30. end
  31.  
  32. local Chat = function(Msg)
  33. game:GetService("Chat"):Chat(Mpc.Head, Msg)
  34. end
  35.  
  36. local getHumanoid = function(Player)
  37. for k,v in pairs(Player:GetChildren()) do
  38. if v.ClassName == "Humanoid" then
  39. return v
  40. end
  41. end
  42. return false
  43. end
  44.  
  45. local Damage = function(Humanoid, Amount)
  46. Humanoid.Health = Humanoid.Health - (Humanoid.MaxHealth*(Amount/100))
  47. end
  48.  
  49. local rWait = function(Seconds)
  50. game:GetService("RunService").Stepped:wait(Seconds)
  51. end
  52.  
  53. Mpc.Animate.Disabled = true
  54. for k,v in ipairs(Mpc.Humanoid:GetPlayingAnimationTracks()) do
  55. v:Stop()
  56. end
  57. for k,v in pairs(Mpc:GetChildren()) do
  58. if v:isA("CharacterAppearance") and v.Name ~= "Body Colors" then
  59. v:Destroy()
  60. end
  61. ypcall(function()
  62. v.BrickColor = BrickColor:Black()
  63. end)
  64. for g,p in pairs(v:GetChildren()) do
  65. ypcall(function()
  66. p.BrickColor = BrickColor:Black()
  67. ypcall(function()
  68. p.Mesh.VertexColor = Vector3.new(0,0,0)
  69. end)
  70. end)
  71. end
  72. end
  73. wait(1)
  74. Mpc.Head.face:Destroy()
  75. local fakeHead = Mpc.Head:Clone()
  76. fakeHead.Name = "Fake Head"
  77. fakeHead.Parent = Mpc
  78. local fakeHeadW = Instance.new("Weld", fakeHead)
  79. fakeHeadW.Part0 = Mpc.Head
  80. fakeHeadW.Part1 = fakeHead
  81. Mpc.Head.Transparency = 1
  82. Mpc.Animate.Disabled = true
  83. Mpc.Humanoid.WalkSpeed = 30
  84.  
  85. Mouse.KeyDown:connect(function(Key)
  86. local Key = Key:lower()
  87.  
  88. if Movement[Key] ~= nil then
  89. Movement[Key] = true
  90. Movement["moving"] = true
  91. end
  92.  
  93. if Key == "f" and (Animation == "f" or Spam == false and Mouse.Target ~= nil and Mouse.Target.Parent.ClassName == "Model" and getHumanoid(Mouse.Target.Parent) ~= nil and Mouse.Target.Parent:FindFirstChild("Torso")) then
  94. Spam = true
  95. Fix()
  96. if Animation == "" then
  97. local Target = Mouse.Target.Parent
  98. wait(0.25)
  99. Ra.C0 = CFrame.new(1, 0.5, 0, 0, 0, 0.99999994, 1, -4.37113883e-008, 0, 4.37113883e-008, 1, 0)
  100. La.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, -1, 1.19248806e-008, 0, 1.19248806e-008, 1, 0)
  101. Rl.C0 = CFrame.new(1, -1, 0, -1.05367121e-007, -0.342020243, 0.939692497, 0.707106769, 0.664462864, 0.241844878, -0.70710665, 0.664463043, 0.241844773)
  102. Ll.C0 = CFrame.new(-1, -1, 0, 0, 0.342020094, -0.939692557, -0.707106829, 0.664462984, 0.241844729, 0.707106709, 0.664463043, 0.241844758)
  103. Mpc.Torso.CFrame = Target.Torso.CFrame * CFrame.new(0,0,1)
  104. local W = Instance.new("Weld",Mpc.Torso)
  105. W.Name = "Attached"
  106. W.Part0 = Target.Torso
  107. W.Part1 = Mpc.Torso
  108. W.C0 = CFrame.new(0,0,1)
  109. Animation = "f"
  110. game:GetService("RunService").Stepped:connect(function()
  111. if Animation == "f" then
  112. ypcall(function()
  113. getHumanoid(Target).PlatformStand = true
  114. end)
  115. else
  116. return
  117. end
  118. end)
  119. elseif Animation == "f" then
  120. wait(0.25)
  121. Ra.C0 = CFrame.new(1, 0.5, 0, 0, 0.707106709, 0.707106709, 0.99999994, -4.21468478e-008, 4.21468478e-008, 5.96046448e-008, 0.707106709, -0.707106709)
  122. La.C0 = CFrame.new(-1, 0.5, 0, 0, -0.707106709, -0.707106829, -0.99999994, 8.43216341e-009, -8.43216341e-009, 1.19248798e-008, 0.707106829, -0.707106709)
  123. local Enemy = nil
  124. ypcall(function() Enemy = (Mpc.Torso.Attached.Part0).Parent end)
  125. Mpc.Torso.Attached:remove()
  126. if Enemy ~= nil then
  127. Animation = ""
  128. Damage(getHumanoid(Enemy), 99)
  129. getHumanoid(Enemy).PlatformStand = false
  130. end
  131. wait(1)
  132. Fix()
  133. Spam = false
  134. end
  135. elseif Key == "g" and Spam == false and Mouse.Target ~= nil and Mouse.Target.Parent.ClassName == "Model" and getHumanoid(Mouse.Target.Parent) ~= nil and Mouse.Target.Parent:FindFirstChild("Torso") then
  136. Spam = true
  137. local Target = Mouse.Target.Parent
  138. wait(0.25)
  139. for i=1,5 do
  140. local Ghost = New("Model", Mpc,"Ghost",{})
  141. local Boo = New("Part",Ghost,"Boo",{BrickColor = BrickColor.new("Black"),FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(4, 4, 4),CFrame = CFrame.new(7, 3.29965496, 11.5999756, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  142. New("Decal",Boo,"Decal",{Texture = "http://www.roblox.com/asset/?id=129900258",}) --37086549
  143. Boo.CFrame = Mpc.Torso.CFrame * CFrame.new(-15+(i*5),10, 0)
  144. local Rocket = Instance.new("RocketPropulsion", Boo)
  145. Rocket.MaxThrust = 100000
  146. Rocket.Target = Target.Torso
  147. wait(0.01)
  148. Rocket:Fire()
  149. Boo.Touched:connect(function(Hit)
  150. if Hit.Parent == Target then
  151. Damage(getHumanoid(Target), 50)
  152. Ghost:remove()
  153. end
  154. end)
  155. game:GetService("Debris"):AddItem(Ghost, 10)
  156. end
  157. Spam = false
  158. end
  159. end)
  160.  
  161. game:GetService("RunService").Stepped:connect(function()
  162. if Movement["moving"] == false and Spam == false then
  163. Fix()
  164. Head.C0 = CFrame.new(0, 1, 0, -0.99999994, 0, 0, 0, 0.707106769, 0.707106769, 0, 0.707106709, -0.707106709)
  165. Ra.C0 = CFrame.new(1, 0.5, 0, -0.707106769, -1.74845553e-007, 0.707106769, -1.23634479e-007, 1, 1.23634479e-007, -0.707106769, 0, -0.707106769)
  166. La.C0 = CFrame.new(-1, 0.5, 0, -0.707106888, 0, -0.70710665, 0, 1, 0, 0.70710665, 0, -0.707106888)
  167. Walking = false
  168. elseif Movement["moving"] == true and Spam == false and Walking == false then
  169. Fix()
  170. Walking = true
  171. Head.C0 = CFrame.new(0, 1, 0, -0.70710665, 0, 0.707106888, 0.707106888, 0, 0.70710665, 0, 1, 0)
  172. if Walk == 1 then
  173. Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
  174. Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
  175. elseif Walk == 2 then
  176. Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, 1.49501744e-008, 1, 0.342020065, 0.939692438, 0, -0.939692557, 0.342020094, -4.37113883e-008)
  177. Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
  178. elseif Walk == 3 then
  179. Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, 2.18556924e-008, 1, 0.499999881, 0.866025209, 0, -0.866025329, 0.49999994, -4.37113883e-008)
  180. Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, 2.18556924e-008, -1, 0.49999994, 0.866025269, 0, 0.866025329, -0.49999994, -4.37113883e-008)
  181. elseif Walk == 4 then
  182. Rl.C0 = CFrame.new(1, -1, 0, -3.34848593e-008, 2.80971335e-008, 1, 0.642787457, 0.766044259, 0, -0.766044378, 0.642787516, -4.37113883e-008)
  183. Ll.C0 = CFrame.new(-1, -1, 0, -3.34848593e-008, 2.80971335e-008, -1, 0.642787516, 0.766044319, 0, 0.766044378, -0.642787516, -4.37113883e-008)
  184. elseif Walk == 5 then
  185. Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, 2.18556924e-008, 1, 0.499999881, 0.866025209, 0, -0.866025329, 0.49999994, -4.37113883e-008)
  186. Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, 2.18556924e-008, -1, 0.49999994, 0.866025269, 0, 0.866025329, -0.49999994, -4.37113883e-008)
  187. elseif Walk == 6 then
  188. Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, 1.49501744e-008, 1, 0.342020065, 0.939692438, 0, -0.939692557, 0.342020094, -4.37113883e-008)
  189. Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
  190. elseif Walk == 7 then
  191. Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, 1.49501744e-008, 1, 0.342020065, 0.939692438, 0, -0.939692557, 0.342020094, -4.37113883e-008)
  192. Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
  193. elseif Walk == 8 then
  194. Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
  195. Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
  196. elseif Walk == 9 then
  197. Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
  198. Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, -7.59040297e-009, -1, -0.173648164, 0.984807611, 0, 0.98480767, 0.173648179, -4.37113883e-008)
  199. elseif Walk == 10 then
  200. Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, -1.49501744e-008, 1, -0.342020094, 0.939692497, 0, -0.939692557, -0.342020124, -4.37113883e-008)
  201. Ll.C0 = CFrame.new(-1, -1, 0, -4.10752641e-008, -1.49501744e-008, -1, -0.342020094, 0.939692438, 0, 0.939692497, 0.342020124, -4.37113883e-008)
  202. elseif Walk == 11 then
  203. Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, -2.18556924e-008, 1, -0.49999994, 0.866025269, 0, -0.866025329, -0.49999994, -4.37113883e-008)
  204. Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, -2.18556924e-008, -1, -0.499999911, 0.866025209, 0, 0.866025209, 0.49999994, -4.37113883e-008)
  205. elseif Walk == 12 then
  206. Rl.C0 = CFrame.new(1, -1, 0, -3.34848593e-008, -2.80971335e-008, 1, -0.642787516, 0.766044319, 0, -0.766044378, -0.642787516, -4.37113883e-008)
  207. Ll.C0 = CFrame.new(-1, -1, 0, -3.34848593e-008, -2.80971335e-008, -1, -0.642787457, 0.766044259, 0, 0.766044259, 0.642787516, -4.37113883e-008)
  208. elseif Walk == 13 then
  209. Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, -2.18556924e-008, 1, -0.49999994, 0.866025269, 0, -0.866025329, -0.49999994, -4.37113883e-008)
  210. Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, -2.18556924e-008, -1, -0.499999911, 0.866025209, 0, 0.866025209, 0.49999994, -4.37113883e-008)
  211. elseif Walk == 14 then
  212. Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, -1.49501744e-008, 1, -0.342020094, 0.939692497, 0, -0.939692557, -0.342020124, -4.37113883e-008)
  213. Ll.C0 = CFrame.new(-1, -1, 0, -4.10752641e-008, -1.49501744e-008, -1, -0.342020094, 0.939692438, 0, 0.939692497, 0.342020124, -4.37113883e-008)
  214. elseif Walk == 15 then
  215. Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
  216. Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, -7.59040297e-009, -1, -0.173648164, 0.984807611, 0, 0.98480767, 0.173648179, -4.37113883e-008)
  217. Walk = 0
  218. end
  219. Walk = Walk + 1
  220. wait(0.075)
  221. Walking = false
  222. end
  223. if Spam == false then
  224. if #Darkness == 0 then
  225. for i=1,5 do
  226. local Dark = Instance.new("Part",Mpc)
  227. Dark.Name = "Dark"
  228. Dark.TopSurface = "Smooth"
  229. Dark.BottomSurface = "Smooth"
  230. Dark.Material = "Neon"
  231. Dark.BrickColor = BrickColor.new("Dark blue")
  232. Dark.Shape = "Cylinder"
  233. Dark.Transparency = i/10
  234. Dark.Size = Vector3.new(1,1+i*1,1+i*1)
  235. Dark.Anchored = true
  236. Dark.CanCollide = false
  237. table.insert(Darkness, Dark)
  238. end
  239. end
  240. local newSize = math.sin(time())
  241. for g,d in ipairs(Darkness) do
  242. d.Size = Vector3.new(9, 10+(newSize*g*2), 10+(newSize*g*2))
  243. d.CFrame = Mpc.Torso.CFrame * (CFrame.new(0,-7,0) * CFrame.Angles(0,0,math.rad(90)))
  244. end
  245. else
  246. for g,d in ipairs(Darkness) do
  247. d:Destroy()
  248. end
  249. Darkness = {}
  250. end
  251. end)
  252.  
  253. Mouse.KeyUp:connect(function(Key)
  254. local Key = Key:lower()
  255.  
  256. if Movement[Key] ~= nil then
  257. Movement[Key] = false
  258. if (Movement["w"] and Movement["s"] and Movement["a"] and Movement["d"]) == false then
  259. Movement["moving"] = false
  260. end
  261. end
  262. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement