Advertisement
ItzInfern

roblox spider script

Jan 26th, 2019
2,223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.73 KB | None | 0 0
  1.  
  2.  
  3. print("FE Compatibility code by ItzInfern")
  4. script.Parent = Player.Character
  5.  
  6. --RemoteEvent for communicating
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82.  
  83.  
  84. wait()
  85. c3 = {}
  86. function c3.new(r,g,b)
  87. return Color3.new(r/255,g/255,b/255)
  88. end
  89.  
  90. primary = c3.new(0,0,0)
  91. secondary = c3.new(255,0,0)
  92.  
  93.  
  94. local player = game.Players.LocalPlayer
  95. repeat wait() until player.Character
  96. char = player.Character
  97.  
  98. basesound = Instance.new("Sound")
  99. basepart = Instance.new("Part")
  100. baseexplosion = Instance.new("Explosion")
  101.  
  102. spawn(function()
  103. while wait() do
  104. if not basesound then
  105. print'basesound nil'
  106. basesound = Instance.new("Sound")
  107. end
  108. if not baseexplosion then
  109. baseexplosion = Instance.new("Explosion")
  110. end
  111. if not basepart then
  112. basepart = Instance.new("Part")
  113. end
  114. end
  115. end)
  116. CreateInstance = function()
  117. cors = {}
  118. mas = Instance.new("Model",game:GetService("Lighting"))
  119. Model0 = Instance.new("Model")
  120. Model1 = Instance.new("Model")
  121. Part2 = Instance.new("Part")
  122. Part3 = Instance.new("Part")
  123. Motor6D4 = Instance.new("Motor6D")
  124. Motor6D5 = Instance.new("Motor6D")
  125. Part6 = Instance.new("Part")
  126. Motor6D7 = Instance.new("Motor6D")
  127. Part8 = Instance.new("Part")
  128. Motor6D9 = Instance.new("Motor6D")
  129. Model10 = Instance.new("Model")
  130. Part11 = Instance.new("Part")
  131. Part12 = Instance.new("Part")
  132. Motor6D13 = Instance.new("Motor6D")
  133. Motor6D14 = Instance.new("Motor6D")
  134. Part15 = Instance.new("Part")
  135. Motor6D16 = Instance.new("Motor6D")
  136. Part17 = Instance.new("Part")
  137. Motor6D18 = Instance.new("Motor6D")
  138. Model19 = Instance.new("Model")
  139. Part20 = Instance.new("Part")
  140. Part21 = Instance.new("Part")
  141. Motor6D22 = Instance.new("Motor6D")
  142. Motor6D23 = Instance.new("Motor6D")
  143. Part24 = Instance.new("Part")
  144. Motor6D25 = Instance.new("Motor6D")
  145. Part26 = Instance.new("Part")
  146. Motor6D27 = Instance.new("Motor6D")
  147. Model28 = Instance.new("Model")
  148. Part29 = Instance.new("Part")
  149. Part30 = Instance.new("Part")
  150. Motor6D31 = Instance.new("Motor6D")
  151. Motor6D32 = Instance.new("Motor6D")
  152. Part33 = Instance.new("Part")
  153. Motor6D34 = Instance.new("Motor6D")
  154. Part35 = Instance.new("Part")
  155. Motor6D36 = Instance.new("Motor6D")
  156. Part37 = Instance.new("Part")
  157. Motor6D38 = Instance.new("Motor6D")
  158. Model0.Name = "Bot"
  159. Model0.Parent = mas
  160. Model1.Name = "LeftLowerLeg"
  161. Model1.Parent = Model0
  162. Part2.Name = "Leg"
  163. Part2.Parent = Model1
  164. Part2.Material = Enum.Material.Metal
  165. Part2.BrickColor = BrickColor.new("Really black")
  166. Part2.Rotation = Vector3.new(0, 45, -111.299995)
  167. Part2.CanCollide = false
  168. Part2.Size = Vector3.new(6, 1, 1)
  169. Part2.CFrame = CFrame.new(32.2574959, 2.97668099, 10.4622593, -0.2568883, 0.65879637, 0.707109034, -0.931675911, -0.363295883, 2.88365015e-07, 0.256890744, -0.65879631, 0.707109392)
  170. Part2.BottomSurface = Enum.SurfaceType.Smooth
  171. Part2.TopSurface = Enum.SurfaceType.Smooth
  172. Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  173. Part2.Position = Vector3.new(32.2574959, 2.97668099, 10.4622593)
  174. Part2.Orientation = Vector3.new(0, 45, -111.299995)
  175. Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  176. Part3.Name = "Base"
  177. Part3.Parent = Model1
  178. Part3.Material = Enum.Material.Neon
  179. Part3.BrickColor = BrickColor.new("Really red")
  180. Part3.Transparency = 1
  181. Part3.Rotation = Vector3.new(0, 45, -21.2999992)
  182. Part3.CanCollide = false
  183. Part3.Shape = Enum.PartType.Ball
  184. Part3.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  185. Part3.CFrame = CFrame.new(36.3001213, 3.82847285, 6.41962528, 0.65879637, 0.2568883, 0.707109034, -0.363295883, 0.931675911, 2.88365015e-07, -0.65879631, -0.256890744, 0.707109392)
  186. Part3.BottomSurface = Enum.SurfaceType.Smooth
  187. Part3.TopSurface = Enum.SurfaceType.Smooth
  188. Part3.Color = Color3.new(1, 0, 0)
  189. Part3.Position = Vector3.new(36.3001213, 3.82847285, 6.41962528)
  190. Part3.Orientation = Vector3.new(0, 45, -21.2999992)
  191. Part3.Color = Color3.new(1, 0, 0)
  192. Motor6D4.Name = "Joint"
  193. Motor6D4.Parent = Part3
  194. Motor6D4.C0 = CFrame.new(-5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  195. Motor6D4.C1 = CFrame.new(-2.49999809, 1.43051147e-06, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  196. Motor6D4.Part0 = Part3
  197. Motor6D4.Part1 = Part6
  198. Motor6D5.Parent = Part3
  199. Motor6D5.C1 = CFrame.new(-1.19987869, -0.671523809, 0.419622421, 0.658794224, 0.256887913, 0.707107604, -0.363295287, 0.931674659, 7.94126493e-07, -0.658793986, -0.256889552, 0.707107425)
  200. Motor6D5.Part0 = Part3
  201. Motor6D5.Part1 = Part37
  202. Part6.Name = "Leg"
  203. Part6.Parent = Model1
  204. Part6.Material = Enum.Material.Metal
  205. Part6.BrickColor = BrickColor.new("Really black")
  206. Part6.Rotation = Vector3.new(0, 45, -21.2999992)
  207. Part6.CanCollide = false
  208. Part6.Size = Vector3.new(5, 1, 1)
  209. Part6.CFrame = CFrame.new(34.6531296, 4.73671198, 8.06661797, 0.65879637, 0.2568883, 0.707109034, -0.363295883, 0.931675911, 2.88365015e-07, -0.65879631, -0.256890744, 0.707109392)
  210. Part6.BottomSurface = Enum.SurfaceType.Smooth
  211. Part6.TopSurface = Enum.SurfaceType.Smooth
  212. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  213. Part6.Position = Vector3.new(34.6531296, 4.73671198, 8.06661797)
  214. Part6.Orientation = Vector3.new(0, 45, -21.2999992)
  215. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  216. Motor6D7.Parent = Part6
  217. Motor6D7.C0 = CFrame.new(2.5999999, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  218. Motor6D7.C1 = CFrame.new(5.10000038, -2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  219. Motor6D7.Part0 = Part6
  220. Motor6D7.Part1 = Part8
  221. Part8.Name = "Knee"
  222. Part8.Parent = Model1
  223. Part8.Material = Enum.Material.Neon
  224. Part8.BrickColor = BrickColor.new("Really red")
  225. Part8.Rotation = Vector3.new(0, 45, -21.2999992)
  226. Part8.CanCollide = false
  227. Part8.Shape = Enum.PartType.Ball
  228. Part8.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  229. Part8.CFrame = CFrame.new(33.0061378, 5.6449523, 9.71360874, 0.65879637, 0.2568883, 0.707109034, -0.363295883, 0.931675911, 2.88365015e-07, -0.65879631, -0.256890744, 0.707109392)
  230. Part8.BottomSurface = Enum.SurfaceType.Smooth
  231. Part8.TopSurface = Enum.SurfaceType.Smooth
  232. Part8.Color = Color3.new(1, 0, 0)
  233. Part8.Position = Vector3.new(33.0061378, 5.6449523, 9.71360874)
  234. Part8.Orientation = Vector3.new(0, 45, -21.2999992)
  235. Part8.Color = Color3.new(1, 0, 0)
  236. Motor6D9.Name = "Joint"
  237. Motor6D9.Parent = Part8
  238. Motor6D9.C1 = CFrame.new(-2.87059045, 0.0170345306, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  239. Motor6D9.Part0 = Part8
  240. Motor6D9.Part1 = Part2
  241. Model10.Name = "RightLowerLeg"
  242. Model10.Parent = Model0
  243. Part11.Name = "Leg"
  244. Part11.Parent = Model10
  245. Part11.Material = Enum.Material.Metal
  246. Part11.BrickColor = BrickColor.new("Really black")
  247. Part11.Rotation = Vector3.new(-180, 45, 68.6999969)
  248. Part11.CanCollide = false
  249. Part11.Size = Vector3.new(6, 1, 1)
  250. Part11.CFrame = CFrame.new(42.8043213, 2.97667575, 10.493145, 0.256888568, -0.658794105, 0.707109451, -0.93167609, -0.363294035, 1.54012838e-07, 0.256888628, -0.658795714, -0.707108974)
  251. Part11.BottomSurface = Enum.SurfaceType.Smooth
  252. Part11.TopSurface = Enum.SurfaceType.Smooth
  253. Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  254. Part11.Position = Vector3.new(42.8043213, 2.97667575, 10.493145)
  255. Part11.Orientation = Vector3.new(0, 135, -111.299995)
  256. Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  257. Part12.Name = "Base"
  258. Part12.Parent = Model10
  259. Part12.Material = Enum.Material.Neon
  260. Part12.BrickColor = BrickColor.new("Really red")
  261. Part12.Transparency = 1
  262. Part12.Rotation = Vector3.new(-180, 45, 158.699997)
  263. Part12.CanCollide = false
  264. Part12.Shape = Enum.PartType.Ball
  265. Part12.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  266. Part12.CFrame = CFrame.new(38.7617035, 3.82847738, 6.45052004, -0.658794105, -0.256888568, 0.707109451, -0.363294035, 0.93167609, 1.54012838e-07, -0.658795714, -0.256888628, -0.707108974)
  267. Part12.BottomSurface = Enum.SurfaceType.Smooth
  268. Part12.TopSurface = Enum.SurfaceType.Smooth
  269. Part12.Color = Color3.new(1, 0, 0)
  270. Part12.Position = Vector3.new(38.7617035, 3.82847738, 6.45052004)
  271. Part12.Orientation = Vector3.new(0, 135, -21.2999992)
  272. Part12.Color = Color3.new(1, 0, 0)
  273. Motor6D13.Name = "Joint"
  274. Motor6D13.Parent = Part12
  275. Motor6D13.C0 = CFrame.new(-5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  276. Motor6D13.C1 = CFrame.new(-2.49999809, 1.43051147e-06, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. Motor6D13.Part0 = Part12
  278. Motor6D13.Part1 = Part15
  279. Motor6D14.Parent = Part12
  280. Motor6D14.C1 = CFrame.new(1.26169586, -0.671518087, 0.450518131, -0.658792913, -0.256887645, 0.707107306, -0.363293976, 0.9316746, 2.46838681e-07, -0.658793926, -0.256887645, -0.707106411)
  281. Motor6D14.Part0 = Part12
  282. Motor6D14.Part1 = Part37
  283. Part15.Name = "Leg"
  284. Part15.Parent = Model10
  285. Part15.Material = Enum.Material.Metal
  286. Part15.BrickColor = BrickColor.new("Really black")
  287. Part15.Rotation = Vector3.new(-180, 45, 158.699997)
  288. Part15.CanCollide = false
  289. Part15.Size = Vector3.new(5, 1, 1)
  290. Part15.CFrame = CFrame.new(40.4086914, 4.73671198, 8.09751129, -0.658794105, -0.256888568, 0.707109451, -0.363294035, 0.93167609, 1.54012838e-07, -0.658795714, -0.256888628, -0.707108974)
  291. Part15.BottomSurface = Enum.SurfaceType.Smooth
  292. Part15.TopSurface = Enum.SurfaceType.Smooth
  293. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  294. Part15.Position = Vector3.new(40.4086914, 4.73671198, 8.09751129)
  295. Part15.Orientation = Vector3.new(0, 135, -21.2999992)
  296. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  297. Motor6D16.Parent = Part15
  298. Motor6D16.C0 = CFrame.new(2.5999999, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  299. Motor6D16.C1 = CFrame.new(5.10000038, -2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  300. Motor6D16.Part0 = Part15
  301. Motor6D16.Part1 = Part17
  302. Part17.Name = "Knee"
  303. Part17.Parent = Model10
  304. Part17.Material = Enum.Material.Neon
  305. Part17.BrickColor = BrickColor.new("Really red")
  306. Part17.Rotation = Vector3.new(-180, 45, 158.699997)
  307. Part17.CanCollide = false
  308. Part17.Shape = Enum.PartType.Ball
  309. Part17.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  310. Part17.CFrame = CFrame.new(42.0556755, 5.64494753, 9.74450111, -0.658794105, -0.256888568, 0.707109451, -0.363294035, 0.93167609, 1.54012838e-07, -0.658795714, -0.256888628, -0.707108974)
  311. Part17.BottomSurface = Enum.SurfaceType.Smooth
  312. Part17.TopSurface = Enum.SurfaceType.Smooth
  313. Part17.Color = Color3.new(1, 0, 0)
  314. Part17.Position = Vector3.new(42.0556755, 5.64494753, 9.74450111)
  315. Part17.Orientation = Vector3.new(0, 135, -21.2999992)
  316. Part17.Color = Color3.new(1, 0, 0)
  317. Motor6D18.Name = "Joint"
  318. Motor6D18.Parent = Part17
  319. Motor6D18.C1 = CFrame.new(-2.87059045, 0.0170345306, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  320. Motor6D18.Part0 = Part17
  321. Motor6D18.Part1 = Part11
  322. Model19.Name = "RightUpperLeg"
  323. Model19.Parent = Model0
  324. Part20.Name = "Leg"
  325. Part20.Parent = Model19
  326. Part20.Material = Enum.Material.Metal
  327. Part20.BrickColor = BrickColor.new("Really black")
  328. Part20.Rotation = Vector3.new(-180, -45, 68.6999969)
  329. Part20.CanCollide = false
  330. Part20.Size = Vector3.new(6, 1, 1)
  331. Part20.CFrame = CFrame.new(42.8043251, 2.97667956, 1.56864583, 0.256889135, -0.658794999, -0.707108319, -0.931675553, -0.363295496, 1.16880165e-06, -0.256889671, 0.658795893, -0.707108676)
  332. Part20.BottomSurface = Enum.SurfaceType.Smooth
  333. Part20.TopSurface = Enum.SurfaceType.Smooth
  334. Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  335. Part20.Position = Vector3.new(42.8043251, 2.97667956, 1.56864583)
  336. Part20.Orientation = Vector3.new(0, -135, -111.299995)
  337. Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  338. Part21.Name = "Base"
  339. Part21.Parent = Model19
  340. Part21.Material = Enum.Material.Neon
  341. Part21.BrickColor = BrickColor.new("Really red")
  342. Part21.Transparency = 1
  343. Part21.Rotation = Vector3.new(-180, -45, 158.699997)
  344. Part21.CanCollide = false
  345. Part21.Shape = Enum.PartType.Ball
  346. Part21.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  347. Part21.CFrame = CFrame.new(38.7617035, 3.82847285, 5.61127424, -0.658794999, -0.256889135, -0.707108319, -0.363295496, 0.931675553, 1.16880165e-06, 0.658795893, 0.256889671, -0.707108676)
  348. Part21.BottomSurface = Enum.SurfaceType.Smooth
  349. Part21.TopSurface = Enum.SurfaceType.Smooth
  350. Part21.Color = Color3.new(1, 0, 0)
  351. Part21.Position = Vector3.new(38.7617035, 3.82847285, 5.61127424)
  352. Part21.Orientation = Vector3.new(0, -135, -21.2999992)
  353. Part21.Color = Color3.new(1, 0, 0)
  354. Motor6D22.Name = "Joint"
  355. Motor6D22.Parent = Part21
  356. Motor6D22.C0 = CFrame.new(-5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  357. Motor6D22.C1 = CFrame.new(-2.49999809, 1.43051147e-06, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  358. Motor6D22.Part0 = Part21
  359. Motor6D22.Part1 = Part24
  360. Motor6D23.Parent = Part21
  361. Motor6D23.C1 = CFrame.new(1.26169586, -0.671522856, -0.388725281, -0.658793211, -0.256887972, -0.707106888, -0.363295078, 0.931674182, 6.63038577e-07, 0.65879339, 0.256888986, -0.707106709)
  362. Motor6D23.Part0 = Part21
  363. Motor6D23.Part1 = Part37
  364. Part24.Name = "Leg"
  365. Part24.Parent = Model19
  366. Part24.Material = Enum.Material.Metal
  367. Part24.BrickColor = BrickColor.new("Really black")
  368. Part24.Rotation = Vector3.new(-180, -45, 158.699997)
  369. Part24.CanCollide = false
  370. Part24.Size = Vector3.new(5, 1, 1)
  371. Part24.CFrame = CFrame.new(40.4086914, 4.73671103, 3.96428299, -0.658794999, -0.256889135, -0.707108319, -0.363295496, 0.931675553, 1.16880165e-06, 0.658795893, 0.256889671, -0.707108676)
  372. Part24.BottomSurface = Enum.SurfaceType.Smooth
  373. Part24.TopSurface = Enum.SurfaceType.Smooth
  374. Part24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  375. Part24.Position = Vector3.new(40.4086914, 4.73671103, 3.96428299)
  376. Part24.Orientation = Vector3.new(0, -135, -21.2999992)
  377. Part24.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  378. Motor6D25.Parent = Part24
  379. Motor6D25.C0 = CFrame.new(2.5999999, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  380. Motor6D25.C1 = CFrame.new(5.10000038, -2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  381. Motor6D25.Part0 = Part24
  382. Motor6D25.Part1 = Part26
  383. Part26.Name = "Knee"
  384. Part26.Parent = Model19
  385. Part26.Material = Enum.Material.Neon
  386. Part26.BrickColor = BrickColor.new("Really red")
  387. Part26.Rotation = Vector3.new(-180, -45, 158.699997)
  388. Part26.CanCollide = false
  389. Part26.Shape = Enum.PartType.Ball
  390. Part26.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  391. Part26.CFrame = CFrame.new(42.0556793, 5.64494991, 2.31729317, -0.658794999, -0.256889135, -0.707108319, -0.363295496, 0.931675553, 1.16880165e-06, 0.658795893, 0.256889671, -0.707108676)
  392. Part26.BottomSurface = Enum.SurfaceType.Smooth
  393. Part26.TopSurface = Enum.SurfaceType.Smooth
  394. Part26.Color = Color3.new(1, 0, 0)
  395. Part26.Position = Vector3.new(42.0556793, 5.64494991, 2.31729317)
  396. Part26.Orientation = Vector3.new(0, -135, -21.2999992)
  397. Part26.Color = Color3.new(1, 0, 0)
  398. Motor6D27.Name = "Joint"
  399. Motor6D27.Parent = Part26
  400. Motor6D27.C1 = CFrame.new(-2.87059045, 0.0170345306, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  401. Motor6D27.Part0 = Part26
  402. Motor6D27.Part1 = Part20
  403. Model28.Name = "LeftUpperLeg"
  404. Model28.Parent = Model0
  405. Part29.Name = "Leg"
  406. Part29.Parent = Model28
  407. Part29.Material = Enum.Material.Metal
  408. Part29.BrickColor = BrickColor.new("Really black")
  409. Part29.Rotation = Vector3.new(0, -45, -111.299995)
  410. Part29.CanCollide = false
  411. Part29.Size = Vector3.new(6, 1, 1)
  412. Part29.CFrame = CFrame.new(32.2575073, 2.97668052, 1.53776193, -0.256887734, 0.658793867, -0.70710808, -0.931674898, -0.363295287, -5.81522841e-07, -0.256888896, 0.658794224, 0.707108021)
  413. Part29.BottomSurface = Enum.SurfaceType.Smooth
  414. Part29.TopSurface = Enum.SurfaceType.Smooth
  415. Part29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  416. Part29.Position = Vector3.new(32.2575073, 2.97668052, 1.53776193)
  417. Part29.Orientation = Vector3.new(0, -45, -111.299995)
  418. Part29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  419. Part30.Name = "Base"
  420. Part30.Parent = Model28
  421. Part30.Material = Enum.Material.Neon
  422. Part30.BrickColor = BrickColor.new("Really red")
  423. Part30.Transparency = 1
  424. Part30.Rotation = Vector3.new(0, -45, -21.2999992)
  425. Part30.CanCollide = false
  426. Part30.Shape = Enum.PartType.Ball
  427. Part30.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  428. Part30.CFrame = CFrame.new(36.3001213, 3.82847309, 5.58037996, 0.658793867, 0.256887734, -0.70710808, -0.363295287, 0.931674898, -5.81522841e-07, 0.658794224, 0.256888896, 0.707108021)
  429. Part30.BottomSurface = Enum.SurfaceType.Smooth
  430. Part30.TopSurface = Enum.SurfaceType.Smooth
  431. Part30.Color = Color3.new(1, 0, 0)
  432. Part30.Position = Vector3.new(36.3001213, 3.82847309, 5.58037996)
  433. Part30.Orientation = Vector3.new(0, -45, -21.2999992)
  434. Part30.Color = Color3.new(1, 0, 0)
  435. Motor6D31.Name = "Joint"
  436. Motor6D31.Parent = Part30
  437. Motor6D31.C0 = CFrame.new(-5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  438. Motor6D31.C1 = CFrame.new(-2.49999809, 1.43051147e-06, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  439. Motor6D31.Part0 = Part30
  440. Motor6D31.Part1 = Part33
  441. Motor6D32.Parent = Part30
  442. Motor6D32.C1 = CFrame.new(-1.19987869, -0.671523809, -0.419620514, 0.658793986, 0.256887794, -0.707107961, -0.363295197, 0.931674778, -5.81522897e-07, 0.658794165, 0.256888896, 0.707107723)
  443. Motor6D32.Part0 = Part30
  444. Motor6D32.Part1 = Part37
  445. Part33.Name = "Leg"
  446. Part33.Parent = Model28
  447. Part33.Material = Enum.Material.Metal
  448. Part33.BrickColor = BrickColor.new("Really black")
  449. Part33.Rotation = Vector3.new(0, -45, -21.2999992)
  450. Part33.CanCollide = false
  451. Part33.Size = Vector3.new(5, 1, 1)
  452. Part33.CFrame = CFrame.new(34.6531334, 4.73671055, 3.93339276, 0.658793867, 0.256887734, -0.70710808, -0.363295287, 0.931674898, -5.81522841e-07, 0.658794224, 0.256888896, 0.707108021)
  453. Part33.BottomSurface = Enum.SurfaceType.Smooth
  454. Part33.TopSurface = Enum.SurfaceType.Smooth
  455. Part33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  456. Part33.Position = Vector3.new(34.6531334, 4.73671055, 3.93339276)
  457. Part33.Orientation = Vector3.new(0, -45, -21.2999992)
  458. Part33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  459. Motor6D34.Parent = Part33
  460. Motor6D34.C0 = CFrame.new(2.5999999, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  461. Motor6D34.C1 = CFrame.new(5.10000038, -2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  462. Motor6D34.Part0 = Part33
  463. Motor6D34.Part1 = Part35
  464. Part35.Name = "Knee"
  465. Part35.Parent = Model28
  466. Part35.Material = Enum.Material.Neon
  467. Part35.BrickColor = BrickColor.new("Really red")
  468. Part35.Rotation = Vector3.new(0, -45, -21.2999992)
  469. Part35.CanCollide = false
  470. Part35.Shape = Enum.PartType.Ball
  471. Part35.Size = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  472. Part35.CFrame = CFrame.new(33.0061493, 5.64494896, 2.28640699, 0.658793867, 0.256887734, -0.70710808, -0.363295287, 0.931674898, -5.81522841e-07, 0.658794224, 0.256888896, 0.707108021)
  473. Part35.BottomSurface = Enum.SurfaceType.Smooth
  474. Part35.TopSurface = Enum.SurfaceType.Smooth
  475. Part35.Color = Color3.new(1, 0, 0)
  476. Part35.Position = Vector3.new(33.0061493, 5.64494896, 2.28640699)
  477. Part35.Orientation = Vector3.new(0, -45, -21.2999992)
  478. Part35.Color = Color3.new(1, 0, 0)
  479. Motor6D36.Name = "Joint"
  480. Motor6D36.Parent = Part35
  481. Motor6D36.C1 = CFrame.new(-2.87059045, 0.0170345306, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  482. Motor6D36.Part0 = Part35
  483. Motor6D36.Part1 = Part29
  484. Part37.Name = "FakeTorso"
  485. Part37.Parent = Model0
  486. Part37.Transparency = 1
  487. Part37.Size = Vector3.new(2, 2, 1)
  488. Part37.CFrame = CFrame.new(37.5000038, 4.49999714, 6.00000095, 1.0000025, -4.23265476e-07, -4.76837158e-07, -4.2326559e-07, 1.00000143, -2.91990006e-07, -4.17232513e-07, -2.77089043e-07, 1.00000322)
  489. Part37.BottomSurface = Enum.SurfaceType.Smooth
  490. Part37.TopSurface = Enum.SurfaceType.Smooth
  491. Part37.Position = Vector3.new(37.5000038, 4.49999714, 6.00000095)
  492. Motor6D38.Name = "Motor"
  493. Motor6D38.Parent = Part37
  494. Motor6D38.Part0 = Part37
  495. for i,v in pairs(mas:GetChildren()) do
  496. v.Parent = workspace
  497. pcall(function() v:MakeJoints() end)
  498. end
  499. mas:Destroy()
  500. for i,v in pairs(cors) do
  501. spawn(function()
  502. pcall(v)
  503. end)
  504. end
  505. return Model0
  506. end
  507.  
  508. local spiderbot = CreateInstance()
  509. spiderbot.Parent = char
  510.  
  511. for i,v in pairs (spiderbot:GetDescendants()) do
  512. if v:IsA("BasePart") then
  513. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
  514. end
  515. end
  516.  
  517. for i,v in pairs (char:GetDescendants()) do
  518. if v:IsA("Sound") then
  519. v.Volume = 0
  520. end
  521. end
  522.  
  523. for i,v in pairs (spiderbot:GetDescendants()) do
  524. if v:IsA("BasePart") then
  525. if v.BrickColor == BrickColor.new("Really black") then
  526. v.Color = primary
  527. else
  528. v.Color = secondary
  529. end
  530. end
  531. end
  532.  
  533. function tween(object,style,direction,t,goal)
  534. local tweenservice = game:GetService("TweenService")
  535. local tweenInfo = TweenInfo.new(t,Enum.EasingStyle[style],Enum.EasingDirection[direction])
  536. local tween = tweenservice:Create(object,tweenInfo,goal)
  537. tween:Play()
  538. return tween
  539. end
  540.  
  541. local char = player.Character
  542. torso = char.Torso
  543. head = char.Head
  544. hrp = char.HumanoidRootPart
  545. hum = char.Humanoid
  546. hum.WalkSpeed = 20
  547. s = 0
  548. rstep = game:GetService("RunService").RenderStepped
  549.  
  550. if char:FindFirstChild("Animate") then
  551. char.Animate:Destroy()
  552. end
  553. for i,v in pairs (hum:GetPlayingAnimationTracks()) do
  554. v:Stop()
  555. end
  556.  
  557. local rl = torso['Right Hip']
  558. local ll = torso['Left Hip']
  559. local rs = torso['Right Shoulder']
  560. local ls = torso['Left Shoulder']
  561. local neck = torso.Neck
  562. local rs0 = rs.C0
  563. local ls0 = ls.C0
  564. local rl0 = rl.C0
  565. local ll0 = ll.C0
  566. local n0 = neck.C0
  567.  
  568. function newSound(id,extrasettings)
  569. local soundy = basesound:Clone()
  570. if not soundy then soundy = Instance.new("Sound") end
  571. soundy.Parent = hrp
  572. soundy.Volume = 1
  573. soundy.SoundId = id
  574. if extrasettings then
  575. for i=1,#extrasettings do
  576. local sets = extrasettings[i]:gmatch("[%w%.]+")
  577. local set = {}
  578. for v in (sets) do
  579. table.insert(set,v)
  580. end
  581.  
  582. soundy[set[1]] = set[2]
  583. end
  584. end
  585. soundy.Playing = true
  586. game.Debris:AddItem(soundy,5)
  587. return soundy
  588. end
  589.  
  590. function woosh()
  591. local wooshes = {'rbxassetid://541909867','rbxassetid://541909814'}
  592. return newSound(wooshes[math.random(1,#wooshes)],{
  593. [1] = "PlaybackSpeed, "..tostring(1+math.random(-200,200)/1000);
  594. [2] = "Volume, 1";
  595. [3] = "PlaybackSpeed, 0.9";
  596. })
  597. end
  598.  
  599. function hardhit()
  600. local wooshes = {'rbxassetid://565207203','rbxassetid://541909983','rbxassetid://541909913'}
  601. newSound(wooshes[math.random(1,#wooshes)],{
  602. [1] = "PlaybackSpeed, "..tostring(1+math.random(-100,100)/1000);
  603. [2] = "Volume, 2";
  604. })
  605. end
  606.  
  607. function explosion()
  608. local wooshes = {'rbxassetid://262562442','rbxassetid://919941001','rbxassetid://539294959'}
  609. newSound(wooshes[math.random(1,#wooshes)],{
  610. [1] = "PlaybackSpeed, "..tostring(1+math.random(-100,100)/1000);
  611. [2] = "Volume, 2";
  612. })
  613. end
  614.  
  615. function hit()
  616. local hitsounds = {"rbxassetid://220025741",
  617. "rbxassetid://220025689",
  618. "rbxassetid://220025689"
  619. }
  620. return newSound(hitsounds[math.random(1,#hitsounds)],{
  621. [1] = "PlaybackSpeed, "..tostring(1+math.random(-200,200)/1000);
  622. [2] = "Volume, 0.5";
  623. })
  624. end
  625.  
  626. local csine = 0
  627. rstep:connect(function()
  628. if not flying then
  629. csine = csine + 0.025
  630. local csin = math.sin(csine)
  631. rl.C0 = rl.C0:lerp(rl0 * CFrame.Angles(csin/25 + math.rad(-2),0,0), 0.2)
  632. ll.C0 = ll.C0:lerp(ll0 * CFrame.Angles(csin/25 + math.rad(-2),0,0), 0.2)
  633. rs.C0 = rs.C0:lerp(rs0 * CFrame.Angles(-csin/15 + math.rad(-6),0,0), 0.2)
  634. ls.C0 = ls.C0:lerp(ls0 * CFrame.Angles(-csin/15 + math.rad(-6),0,0), 0.2)
  635. neck.C0 = neck.C0:lerp(n0 * CFrame.Angles(csin/15 + math.rad(15),0,0), 0.2)
  636. else
  637. csine = csine + 0.025
  638. local csin = math.sin(csine)
  639. rl.C0 = rl.C0:lerp(rl0 * CFrame.Angles(csin/25 + math.rad(-2),0,0), 0.2)
  640. ll.C0 = ll.C0:lerp(ll0 * CFrame.Angles(csin/25 + math.rad(-2),0,0), 0.2)
  641. rs.C0 = rs.C0:lerp(rs0 * CFrame.Angles(-csin/10 + math.rad(-90),0,0) * CFrame.new(0,-0.5,-0.5), 0.2)
  642. ls.C0 = ls.C0:lerp(ls0 * CFrame.Angles(-csin/10 + math.rad(-90),0,0) * CFrame.new(0,-0.5,-0.5), 0.2)
  643. neck.C0 = neck.C0:lerp(n0 * CFrame.Angles(csin/15 + math.rad(5),0,0), 0.2)
  644. end
  645. end)
  646.  
  647. hum.HipHeight = 1.25
  648.  
  649. center = spiderbot.FakeTorso
  650. cmotor = center.Motor
  651. cmotor.Part1 = torso
  652.  
  653. LLL = spiderbot.LeftLowerLeg
  654. LUL = spiderbot.LeftUpperLeg
  655. RLL = spiderbot.RightLowerLeg
  656. RUL = spiderbot.RightUpperLeg
  657.  
  658. lll = LLL.Base.Motor6D
  659. lul = LUL.Base.Motor6D
  660. rll = RLL.Base.Motor6D
  661. rul = RUL.Base.Motor6D
  662.  
  663. lll2 = LLL.Knee.Joint
  664. lul2 = LUL.Knee.Joint
  665. rll2 = RLL.Knee.Joint
  666. rul2 = RUL.Knee.Joint
  667.  
  668. olll = lll.C0 * CFrame.new(-0.5,0,-1) * CFrame.new(-0.3,-0.75,0.3)
  669. olul = lul.C0 * CFrame.new(-0.5,0,1) * CFrame.new(-0.3,-0.75,-0.3)
  670. orll = rll.C0 * CFrame.new(-0.5,0,1) * CFrame.new(-0.3,-0.75,-0.3)
  671. orul = rul.C0 * CFrame.new(-0.5,0,-1) * CFrame.new(-0.3,-0.75,0.3)
  672.  
  673. lll2.C0 = lll2.C0
  674. lul2.C0 = lul2.C0
  675. rll2.C0 = rll2.C0
  676. rul2.C0 = rul2.C0
  677.  
  678. olll2 = lll2.C0
  679. olul2 = lul2.C0
  680. orll2 = rll2.C0
  681. orul2 = rul2.C0
  682.  
  683.  
  684. rstep:connect(function()
  685. local v = torso.Velocity
  686. local mag = math.sqrt(v.x^2 + v.z^2) / 15
  687. s = mag * 15
  688. if mag > 0.1 then
  689. pose = "Running"
  690. else
  691. pose = "Idle"
  692. end
  693. end)
  694.  
  695. pose = "Idle"
  696. local lsine = 1
  697. local ksine = -1
  698. local lsine2 = 2.7
  699. local ksine2 = -2.7
  700. hum.JumpPower = 0
  701. movelegs = true
  702. flying = false
  703. bv = Instance.new("BodyVelocity",torso)
  704.  
  705.  
  706. function sparkle(size,amt,pos,dur,thickness)
  707. for i = 1,amt do
  708. if thickness == nil then
  709. thickness = size/9
  710. end
  711. local p = basepart:Clone()
  712. p.Parent = workspace
  713. p.CanCollide = false
  714. p.Shape = "Ball"
  715. p.Anchored = true
  716. p.Material = "Neon"
  717. p.Color = secondary
  718. p.CFrame = CFrame.new(pos) * CFrame.Angles(math.random(-360,360)/360,math.random(-360,360)/360,math.random(-360,360)/360)
  719. p.Size = Vector3.new(1,1,1)
  720. local mesh = Instance.new("SpecialMesh",p)
  721. mesh.MeshType = Enum.MeshType.Sphere
  722. tween(p, "Sine", "Out", dur, {
  723. ["Transparency"] = 1;
  724. ["CFrame"] = p.CFrame * CFrame.Angles(math.random(-360,360)/360,math.random(-360,360)/360,math.random(-360,360)/360)
  725. })
  726. tween(mesh, "Sine", "Out", dur*2, {
  727. ["Scale"] = Vector3.new(thickness,size*10,thickness);
  728. })
  729. game.Debris:AddItem(p,dur)
  730. end
  731. end
  732.  
  733. sparkle(10,55,hrp.Position,3,1)
  734.  
  735. function push(part,vel)
  736. local bv2 = Instance.new("BodyVelocity",part)
  737. bv2.Velocity = (part.Position - torso.Position).unit * 3 * (vel / 30000)
  738. bv2.MaxForce = Vector3.new(vel,vel,vel)
  739. game.Debris:AddItem(bv2,0.25)
  740. end
  741. local t = {}
  742. function t.find(ta,element)
  743. for i = 1,#ta do
  744. if ta[i] == element then
  745. return true
  746. end
  747. end
  748. return false
  749. end
  750. function AOE(magnitude,damage,pos)
  751. coroutine.resume(coroutine.create(function()
  752. if not pos then
  753. pos = hrp.Position
  754. end
  755. local chars = {}
  756. local ex = baseexplosion:Clone()
  757. ex.Position = pos
  758. ex.Parent = workspace
  759. ex.BlastPressure = 0
  760. ex.Visible = false
  761. ex.DestroyJointRadiusPercent = 0
  762. ex.BlastRadius = magnitude
  763. ex.Hit:connect(function(pa)
  764. if pa.Parent:FindFirstChildOfClass("Humanoid") and pa.Parent ~= char and t.find(chars,pa.Parent) == false then
  765. table.insert(chars,pa.Parent)
  766. end
  767. if pa.Parent:FindFirstChildOfClass("Humanoid") and pa.Parent ~= char then
  768. push(pa, damage * 3000)
  769. end
  770. end)
  771.  
  772. local p = basepart:Clone()
  773. p.Parent = workspace
  774. p.Shape = "Ball"
  775. p.Anchored = true
  776. p.CanCollide = false
  777. p.Material = "Neon"
  778. p.Color = secondary
  779. p.CFrame = CFrame.new(pos)
  780. p.Size = Vector3.new(0,0,0)
  781. tween(p, "Sine", "Out", 2, {
  782. ["Size"] = Vector3.new(magnitude*5,magnitude*5,magnitude*5);
  783. })
  784. tween(p, "Sine", "Out", 0.75, {
  785. ["Transparency"] = 1;
  786. })
  787. game.Debris:AddItem(p,0.75)
  788. spawn(function() sparkle(magnitude, 15, p.Position,1) end)
  789. wait()
  790. for i = 1,#chars do
  791. local hrp2 = chars[i]:FindFirstChildOfClass("Part")
  792. if hrp2 then
  793. local hum2 = chars[i]:FindFirstChildOfClass("Humanoid")
  794. if hum2 and hum2 ~= hum then
  795. hum2.Health = hum2.Health - (hum2.MaxHealth / (100 / damage))
  796. if hum2.MaxHealth == math.huge then
  797. chars[i]:BreakJoints()
  798. end
  799. end
  800. end
  801. end
  802. end))
  803. end
  804.  
  805. function AOE2(magnitude,damage,pos)
  806. if not pos then
  807. pos = hrp.Position
  808. end
  809. local chars = {}
  810. local ex = baseexplosion:Clone()
  811. ex.Position = pos
  812. ex.Parent = workspace
  813. ex.BlastPressure = 0
  814. ex.Visible = false
  815. ex.DestroyJointRadiusPercent = 0
  816. ex.BlastRadius = magnitude
  817. ex.Hit:connect(function(pa)
  818. if pa.Parent:FindFirstChildOfClass("Humanoid") and pa.Parent ~= char and t.find(chars,pa.Parent) == false then
  819. table.insert(chars,pa.Parent)
  820. end
  821. if pa.Parent:FindFirstChildOfClass("Humanoid") and pa.Parent ~= char then
  822. push(pa, damage * 3000)
  823. end
  824. end)
  825. wait()
  826. for i = 1,#chars do
  827. if chars[i] ~= char then
  828. local hrp2 = chars[i]:FindFirstChild("HumanoidRootPart")
  829. if hrp2 then
  830. if (hrp2.Position - pos).magnitude < magnitude then
  831. local hum2 = chars[i]:FindFirstChildOfClass("Humanoid")
  832. if hum2 and hum2 ~= hum then
  833. push(hrp2, 10000)
  834. hum2.Health = hum2.Health - (hum2.MaxHealth / (100 / damage))
  835. hit().Volume = 0.3
  836. spawn(function() sparkle((magnitude - (hrp2.Position - pos).magnitude) / 5, 1, hrp2.Position,0.5) end)
  837. end
  838. end
  839. end
  840. end
  841. end
  842. end
  843. rstep:connect(function()
  844. for i,v in pairs (char:GetDescendants()) do
  845. if v:IsA("BasePart") then
  846. v.Anchored = false
  847. end
  848. end
  849. if not flying then
  850. bv.Velocity = Vector3.new(0,0,0)
  851. bv.MaxForce = Vector3.new(0,0,0)
  852. end
  853. local md = hum.MoveDirection
  854. hum.MaxHealth = math.huge
  855. hum.Health = math.huge
  856. hum:SetStateEnabled("Dead",false)
  857. if pose == "Running" and movelegs then
  858. tween(hum,"Sine","Out",0.1,{["HipHeight"] = 1.25})
  859.  
  860. local tim = s / 300
  861. lsine = lsine + s / 20 / 10
  862. ksine = ksine + s / 20 / 10
  863. local lsin = math.sin(lsine)
  864. local ksin = math.sin(ksine)
  865.  
  866. lsine2 = lsine2 + s / 20 / 10
  867. ksine2 = ksine2 + s / 20 / 10
  868. local lsin2 = math.sin(lsine2)
  869. local ksin2 = math.sin(ksine2)
  870. local Ru_Ll = CFrame.Angles(0,lsin/2.5,0)
  871. local Lu_Rl = CFrame.Angles(0,-lsin2/2.5,0)
  872. local e = 4 - s / 25
  873. if e < 1 then e = 1 end
  874. local Ru2_Ll2 = CFrame.Angles(ksin/2,0,-ksin/e)
  875. local Lu2_Rl2 = CFrame.Angles(-ksin2/2,0,-ksin2/e)
  876.  
  877. lll.C0 = lll.C0:lerp(Ru_Ll * olll * CFrame.Angles(0,0,-ksin/5), tim)
  878. rul.C0 = rul.C0:lerp(Ru_Ll * orul * CFrame.Angles(0,0,ksin/5), tim)
  879.  
  880. lul.C0 = lul.C0:lerp(Lu_Rl * olul * CFrame.Angles(0,0,-ksin2/5), tim)
  881. rll.C0 = rll.C0:lerp(Lu_Rl * orll * CFrame.Angles(0,0,ksin2/5), tim)
  882.  
  883. lul2.C0 = lul2.C0:lerp(Ru2_Ll2 * olul2, tim)
  884. rll2.C0 = rll2.C0:lerp(Ru2_Ll2 * orll2, tim)
  885.  
  886. lll2.C0 = lll2.C0:lerp(Lu2_Rl2 * olul2, tim)
  887. rul2.C0 = rul2.C0:lerp(Lu2_Rl2 * orll2, tim)
  888. end
  889. if pose == "Idle" and movelegs then
  890. tween(cmotor,"Sine","Out",0.2,{["C0"] = cm0})
  891. lsine = lsine + 0.1/2
  892. ksine = ksine + 0.1/2
  893. local lsin = math.sin(lsine)
  894. local ksin = math.sin(ksine)
  895.  
  896. lsine2 = lsine2 + 0.1/2
  897. ksine2 = ksine2 + 0.1/2
  898. local lsin2 = math.sin(lsine2)
  899. local ksin2 = math.sin(ksine2)
  900.  
  901. local Ru_Ll = CFrame.Angles(0,0,ksin/10 + math.rad(-5))
  902. local Lu_Rl = CFrame.Angles(0,0,ksin/10 + math.rad(-5))
  903. local Ru2_Ll2 = CFrame.Angles(0,0,-ksin2/5)
  904. local Lu2_Rl2 = CFrame.Angles(0,0,-ksin2/5)
  905.  
  906. tween(hum,"Sine","Out",0.3,{["HipHeight"] = 1.4 - ksin/1.5})
  907.  
  908. lll.C0 = lll.C0:lerp(Ru_Ll * olll, 0.05)
  909. rul.C0 = rul.C0:lerp(Ru_Ll * orul, 0.05)
  910.  
  911. lul.C0 = lul.C0:lerp(Lu_Rl * olul, 0.05)
  912. rll.C0 = rll.C0:lerp(Lu_Rl * orll, 0.05)
  913.  
  914. lul2.C0 = lul2.C0:lerp(Ru2_Ll2 * olul2, 0.05)
  915. rll2.C0 = rll2.C0:lerp(Ru2_Ll2 * orll2, 0.05)
  916.  
  917. lll2.C0 = lll2.C0:lerp(Lu2_Rl2 * olul2, 0.05)
  918. rul2.C0 = rul2.C0:lerp(Lu2_Rl2 * orll2, 0.05)
  919. end
  920. if editws == false then return end
  921. if run == true then
  922. tween(hum,"Sine","Out",0.5,{["WalkSpeed"] = 40})
  923. jp = 100
  924. else
  925. tween(hum,"Sine","Out",0.5,{["WalkSpeed"] = 16})
  926. jp = 65
  927. end
  928. end)
  929.  
  930. jp = 50
  931.  
  932. mouse = player:GetMouse()
  933. UIS = game:GetService("UserInputService")
  934. run = false
  935. attacking = false
  936. sdown = false
  937.  
  938. UIS.InputBegan:connect(function(k,g)
  939. local key = k.KeyCode
  940. if not g then
  941. if key == Enum.KeyCode.Space then
  942. sdown = true
  943. jump()
  944. end
  945. if key == Enum.KeyCode.Q then
  946. stomp()
  947. end
  948. if key == Enum.KeyCode.LeftShift then
  949. run = true
  950. end
  951. if key == Enum.KeyCode.E then
  952. backstomp()
  953. end
  954. if key == Enum.KeyCode.F then
  955. fdown = true
  956. spin()
  957. end
  958. end
  959. end)
  960. UIS.InputEnded:connect(function(k,g)
  961. local key = k.KeyCode
  962. if not g then
  963. if key == Enum.KeyCode.LeftShift then
  964. run = false
  965. end
  966. if key == Enum.KeyCode.Space then
  967. sdown = false
  968. end
  969. if key == Enum.KeyCode.F then
  970. fdown = false
  971. end
  972. end
  973. end)
  974.  
  975. fdown = false
  976.  
  977. function stomp()
  978. if flying or attacking then return end
  979. attacking = true
  980. editws = false
  981. movelegs = false
  982. tween(hum,"Sine","InOut",0.6,{["WalkSpeed"] = 0})
  983.  
  984. woosh()
  985. tween(lll,"Sine","InOut",0.2,{["C0"] = olll * CFrame.Angles(0,0,0)})
  986. tween(lul,"Sine","InOut",0.2,{["C0"] = olul * CFrame.Angles(math.rad(-40),math.rad(-40),math.rad(100)) * CFrame.new(0,-1,-1)})
  987. tween(rll,"Sine","InOut",0.2,{["C0"] = orll * CFrame.Angles(0,0,0)})
  988. tween(rul,"Sine","InOut",0.2,{["C0"] = orul * CFrame.Angles(math.rad(40),math.rad(40),math.rad(100)) * CFrame.new(0,-1,1)})
  989.  
  990. tween(lll2,"Sine","InOut",0.2,{["C0"] = olll2 * CFrame.Angles(0,0,0)})
  991. tween(lul2,"Sine","InOut",0.2,{["C0"] = olul2 * CFrame.Angles(0,0,0)})
  992. tween(rll2,"Sine","InOut",0.2,{["C0"] = orll2 * CFrame.Angles(0,0,0)})
  993. tween(rul2,"Sine","InOut",0.2,{["C0"] = orul2 * CFrame.Angles(0,0,0)})
  994. wait(0.2)
  995. tween(lll,"Sine","In",0.15,{["C0"] = olll * CFrame.Angles(0,0,0)})
  996. tween(lul,"Sine","In",0.15,{["C0"] = olul * CFrame.Angles(math.rad(-20),math.rad(40),0)})
  997. tween(rll,"Sine","In",0.15,{["C0"] = orll * CFrame.Angles(0,0,0)})
  998. tween(rul,"Sine","In",0.15,{["C0"] = orul * CFrame.Angles(math.rad(20),math.rad(-40),0)})
  999.  
  1000. tween(lll2,"Sine","InOut",0.15,{["C0"] = olll2 * CFrame.Angles(0,0,0)})
  1001. tween(lul2,"Sine","InOut",0.15,{["C0"] = olul2 * CFrame.Angles(0,0,0)})
  1002. tween(rll2,"Sine","InOut",0.15,{["C0"] = orll2 * CFrame.Angles(0,0,0)})
  1003. tween(rul2,"Sine","InOut",0.15,{["C0"] = orul2 * CFrame.Angles(0,0,0)})
  1004. spawn(function()
  1005. wait(0.08)
  1006. hardhit()
  1007. AOE(5, 20, (hrp.CFrame * CFrame.new(0,-3,-5)).p)
  1008. end)
  1009. wait(0.08)
  1010. movelegs = true
  1011. attacking = false
  1012. editws = true
  1013. end
  1014.  
  1015. function backstomp()
  1016. if flying or attacking then return end
  1017. attacking = true
  1018. editws = false
  1019. movelegs = false
  1020. tween(hum,"Sine","InOut",0.6,{["WalkSpeed"] = 0})
  1021.  
  1022. woosh()
  1023. tween(lll,"Sine","InOut",0.2,{["C0"] = olll * CFrame.Angles(math.rad(40),0,math.rad(70))})
  1024. tween(lul,"Sine","InOut",0.2,{["C0"] = olul})
  1025. tween(rll,"Sine","InOut",0.2,{["C0"] = orll * CFrame.Angles(math.rad(-40),0,math.rad(70))})
  1026. tween(rul,"Sine","InOut",0.2,{["C0"] = orul})
  1027.  
  1028. tween(lll2,"Sine","InOut",0.2,{["C0"] = olll2 * CFrame.Angles(0,0,0)})
  1029. tween(lul2,"Sine","InOut",0.2,{["C0"] = olul2 * CFrame.Angles(0,0,0)})
  1030. tween(rll2,"Sine","InOut",0.2,{["C0"] = orll2 * CFrame.Angles(0,0,0)})
  1031. tween(rul2,"Sine","InOut",0.2,{["C0"] = orul2 * CFrame.Angles(0,0,0)})
  1032. wait(0.2)
  1033. tween(lll,"Sine","InOut",0.15,{["C0"] = olll * CFrame.Angles(math.rad(10),math.rad(-40),math.rad(-30))})
  1034. tween(lul,"Sine","InOut",0.15,{["C0"] = olul})
  1035. tween(rll,"Sine","InOut",0.15,{["C0"] = orll * CFrame.Angles(math.rad(-10),math.rad(40),math.rad(-30))})
  1036. tween(rul,"Sine","InOut",0.15,{["C0"] = orul})
  1037.  
  1038. tween(lll2,"Sine","InOut",0.15,{["C0"] = olll2 * CFrame.Angles(0,0,0)})
  1039. tween(lul2,"Sine","InOut",0.15,{["C0"] = olul2 * CFrame.Angles(0,0,0)})
  1040. tween(rll2,"Sine","InOut",0.15,{["C0"] = orll2 * CFrame.Angles(0,0,0)})
  1041. tween(rul2,"Sine","InOut",0.15,{["C0"] = orul2 * CFrame.Angles(0,0,0)})
  1042. spawn(function()
  1043. wait(0.08)
  1044. hardhit()
  1045. AOE(5, 20, (hrp.CFrame * CFrame.new(0,-3,5)).p)
  1046. end)
  1047. wait(0.08)
  1048. movelegs = true
  1049. attacking = false
  1050. editws = true
  1051. end
  1052.  
  1053. jdeb = true
  1054. function jump()
  1055. if jdeb == false then return end
  1056. --if hum.FloorMaterial == Enum.Material.Air then return end
  1057. jdeb = false
  1058. local issprint = false
  1059. if jp == 100 then issprint = true end
  1060. movelegs = false
  1061. editws = false
  1062. tween(hum,"Sine","Out",2,{["WalkSpeed"] = 0})
  1063. woosh().Volume = 0.1
  1064. tween(lll,"Sine","InOut",0.5,{["C0"] = olll * CFrame.Angles(0,0,math.rad(50))})
  1065. tween(lul,"Sine","InOut",0.5,{["C0"] = olul * CFrame.Angles(0,0,math.rad(50))})
  1066. tween(rll,"Sine","InOut",0.5,{["C0"] = orll * CFrame.Angles(0,0,math.rad(50))})
  1067. tween(rul,"Sine","InOut",0.5,{["C0"] = orul * CFrame.Angles(0,0,math.rad(50))})
  1068.  
  1069. tween(lll2,"Sine","InOut",0.5,{["C0"] = olll2 * CFrame.Angles(0,0,math.rad(70))})
  1070. tween(lul2,"Sine","InOut",0.5,{["C0"] = olul2 * CFrame.Angles(0,0,math.rad(70))})
  1071. tween(rll2,"Sine","InOut",0.5,{["C0"] = orll2 * CFrame.Angles(0,0,math.rad(70))})
  1072. tween(rul2,"Sine","InOut",0.5,{["C0"] = orul2 * CFrame.Angles(0,0,math.rad(70))})
  1073. tween(hum,"Sine","Out",0.5,{["HipHeight"] = 0})
  1074. wait(0.2)
  1075. local power = jp
  1076. repeat rstep:Wait(0) tween(hum,"Sine","Out",0.5,{["HipHeight"] = 0}) power = power + 1 tween(hum,"Sine","Out",0.5,{["WalkSpeed"] = 0}) editws = false movelegs = false until not sdown
  1077. spawn(function()
  1078. jdeb = true
  1079. if power > 200 then power = 200 end
  1080. if power > 150 then hardhit() hardhit() woosh() woosh() sparkle(5,30,(torso.CFrame * CFrame.new(0,-2,0)).p, 1.5) end
  1081. bv.Velocity = Vector3.new(0,power,0)
  1082. bv.MaxForce = Vector3.new(0,4000000,0)
  1083. end)
  1084. tween(hum,"Sine","Out",0.1,{["HipHeight"] = 1.25})
  1085. woosh()
  1086. tween(lll,"Sine","Out",0.25,{["C0"] = olll * CFrame.Angles(0,0,-math.rad(50))})
  1087. tween(lul,"Sine","Out",0.25,{["C0"] = olul * CFrame.Angles(0,0,-math.rad(50))})
  1088. tween(rll,"Sine","Out",0.25,{["C0"] = orll * CFrame.Angles(0,0,-math.rad(50))})
  1089. tween(rul,"Sine","Out",0.25,{["C0"] = orul * CFrame.Angles(0,0,-math.rad(50))})
  1090.  
  1091. tween(lll2,"Sine","InOut",0.25,{["C0"] = olll2 * CFrame.Angles(0,0,-math.rad(30))})
  1092. tween(lul2,"Sine","InOut",0.25,{["C0"] = olul2 * CFrame.Angles(0,0,-math.rad(30))})
  1093. tween(rll2,"Sine","InOut",0.25,{["C0"] = orll2 * CFrame.Angles(0,0,-math.rad(30))})
  1094. tween(rul2,"Sine","InOut",0.25,{["C0"] = orul2 * CFrame.Angles(0,0,-math.rad(30))})
  1095. tween(hum,"Sine","Out",0.2,{["WalkSpeed"] = 25})
  1096. wait(0.15)
  1097. movelegs = true
  1098. spawn(function()
  1099. repeat rstep:Wait(0) tween(hum,"Sine","Out",3,{["WalkSpeed"] = 100}) until hum.FloorMaterial ~= Enum.Material.Air
  1100. if power > 150 and issprint then AOE(15,99,hrp.Position - Vector3.new(0,2,0)) explosion() explosion() hardhit() sparkle(15,45,torso.Position - Vector3.new(0,5,0), 1, 10) end
  1101. editws = true
  1102. end)
  1103. end
  1104. cm0 = cmotor.C0
  1105.  
  1106. function unravel()
  1107. tween(lll,"Sine","Out",0.1,{["C0"] = CFrame.new(-1,-0.5,-0.5) * CFrame.Angles(0,0,-0.3)})
  1108. tween(lul,"Sine","Out",0.1,{["C0"] = CFrame.new(-1,-0.5,0.5) * CFrame.Angles(0,0,-0.3)})
  1109. tween(rll,"Sine","Out",0.1,{["C0"] = CFrame.new(-1,-0.5,0.5) * CFrame.Angles(0,0,-0.3)})
  1110. tween(rul,"Sine","Out",0.1,{["C0"] = CFrame.new(-1,-0.5,-0.5) * CFrame.Angles(0,0,-0.3)})
  1111.  
  1112. tween(lll2,"Sine","Out",0.1,{["C0"] = olll2 * CFrame.Angles(0,0,math.rad(-90))})
  1113. tween(lul2,"Sine","Out",0.1,{["C0"] = olul2 * CFrame.Angles(0,0,math.rad(-90))})
  1114. tween(rll2,"Sine","Out",0.1,{["C0"] = orll2 * CFrame.Angles(0,0,math.rad(-90))})
  1115. tween(rul2,"Sine","Out",0.1,{["C0"] = orul2 * CFrame.Angles(0,0,math.rad(-90))})
  1116. end
  1117.  
  1118. function spin()
  1119. if attacking then return end
  1120. flying = true
  1121. attacking = true
  1122. --editws = false
  1123. movelegs = false
  1124. tween(hum,"Sine","InOut",0.2,{["WalkSpeed"] = 0})
  1125. repeat
  1126. movelegs = false
  1127. unravel()
  1128. if fdown == false then flying = false end
  1129. hum.HipHeight = 1 + math.sin(csine)/2
  1130. rstep:Wait(0)
  1131. rstep:Wait(0)
  1132. rstep:Wait(0)
  1133. bv.MaxForce = Vector3.new(0,2000,0)
  1134. bv.Velocity = Vector3.new(0,50,0)
  1135. local t = tween(cmotor, "Sine","Out",0.15,{
  1136. ["C0"] = cmotor.C0 * CFrame.Angles(0,2,0)
  1137. })
  1138. local sfx = woosh()
  1139. sfx.Volume = 0.02
  1140. sfx.PlaybackSpeed = sfx.PlaybackSpeed - 0.2
  1141. spawn(function()
  1142. AOE2(15, 3, (hrp.CFrame).p)
  1143. end)
  1144. until
  1145. fdown == false
  1146. bv.MaxForce = Vector3.new(0,0,0)
  1147. tween(cmotor, "Sine","Out",0.5,{
  1148. ["C0"] = cm0
  1149. })
  1150.  
  1151. movelegs = true
  1152. attacking = false
  1153. flying = false
  1154. --editws = true
  1155. end
  1156.  
  1157.  
  1158.  
  1159.  
  1160. function base()
  1161. if flying or attacking then return end
  1162. attacking = true
  1163. editws = false
  1164. movelegs = false
  1165. tween(hum,"Sine","InOut",0.2,{["WalkSpeed"] = 0})
  1166.  
  1167. woosh()
  1168. tween(lll,"Sine","InOut",0.2,{["C0"] = olll * CFrame.Angles(0,0,0)})
  1169. tween(lul,"Sine","InOut",0.2,{["C0"] = olul})
  1170. tween(rll,"Sine","InOut",0.2,{["C0"] = orll * CFrame.Angles(0,0,0)})
  1171. tween(rul,"Sine","InOut",0.2,{["C0"] = orul})
  1172.  
  1173. tween(lll2,"Sine","InOut",0.2,{["C0"] = olll2 * CFrame.Angles(0,0,0)})
  1174. tween(lul2,"Sine","InOut",0.2,{["C0"] = olul2 * CFrame.Angles(0,0,0)})
  1175. tween(rll2,"Sine","InOut",0.2,{["C0"] = orll2 * CFrame.Angles(0,0,0)})
  1176. tween(rul2,"Sine","InOut",0.2,{["C0"] = orul2 * CFrame.Angles(0,0,0)})
  1177. wait(0.2)
  1178.  
  1179. spawn(function()
  1180. wait(0.08)
  1181. hardhit()
  1182. AOE2(5, 20, (hrp.CFrame * CFrame.new(0,-3,5)).p)
  1183. end)
  1184. wait(0.15)
  1185. movelegs = true
  1186. attacking = false
  1187. editws = true
  1188. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement