Advertisement
oatmeal2009

spiderbot fe

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