Advertisement
reset234567890

dust sans edit by danielplayer0aa1000

May 26th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.13 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148. --SazErenos
  149. --BeepBopBoop
  150. Player=game.Players.LocalPlayer
  151. Character=Player.Character
  152. mouse = Player:GetMouse()
  153. attack = false
  154. function clerp(a, b, t)
  155. return a:lerp(b, t)
  156. end
  157. for _,v in pairs(Character:children()) do
  158. if v:IsA("Part") then
  159. v:Remove()
  160. elseif v:IsA("Humanoid") then
  161. v:Remove()
  162. end
  163. end
  164. wait(1)
  165.  
  166.  
  167. --[[function sandbox(var,func)
  168. local env = getfenv(func)
  169. local newenv = setmetatable({},{
  170. __index = function(self,k)
  171. if k=="script" then
  172. return var
  173. else
  174. return env[k]
  175. end
  176. end,
  177. })
  178. setfenv(func,newenv)
  179. return func
  180. end
  181. cors = {}
  182. mas = Instance.new("Model",game:GetService("Lighting"))]]
  183. --Character = Instance.new("Model")
  184. Part1 = Instance.new("Part")
  185. Part2 = Instance.new("Part")
  186. Part3 = Instance.new("Part")
  187. Motor6D4 = Instance.new("Motor6D")
  188. Part5 = Instance.new("Part")
  189. Motor6D6 = Instance.new("Motor6D")
  190. Part7 = Instance.new("Part")
  191. Part8 = Instance.new("Part")
  192. CylinderMesh9 = Instance.new("CylinderMesh")
  193. Motor6D10 = Instance.new("Motor6D")
  194. Part11 = Instance.new("Part")
  195. CylinderMesh12 = Instance.new("CylinderMesh")
  196. Motor6D13 = Instance.new("Motor6D")
  197. Part14 = Instance.new("Part")
  198. BodyPosition15 = Instance.new("BodyPosition")
  199. Sound16 = Instance.new("Sound")
  200. BodyGyro17 = Instance.new("BodyGyro")
  201. Motor6D18 = Instance.new("Motor6D")
  202. Motor6D19 = Instance.new("Motor6D")
  203. Motor6D20 = Instance.new("Motor6D")
  204. Motor6D21 = Instance.new("Motor6D")
  205. Motor6D22 = Instance.new("Motor6D")
  206. Vector3Value23 = Instance.new("Vector3Value")
  207. Part24 = Instance.new("Part")
  208. Motor6D25 = Instance.new("Motor6D")
  209. Part26 = Instance.new("Part")
  210. CylinderMesh27 = Instance.new("CylinderMesh")
  211. Motor6D28 = Instance.new("Motor6D")
  212. Motor6D29 = Instance.new("Motor6D")
  213. Part30 = Instance.new("Part")
  214. Motor6D31 = Instance.new("Motor6D")
  215. Part32 = Instance.new("Part")
  216. CylinderMesh33 = Instance.new("CylinderMesh")
  217. Sound34 = Instance.new("Sound")
  218. Part35 = Instance.new("Part")
  219. CylinderMesh36 = Instance.new("CylinderMesh")
  220. Part37 = Instance.new("Part")
  221. CylinderMesh38 = Instance.new("CylinderMesh")
  222. --[[Character.Name = "Character"
  223. Character.Parent = mas]]
  224. Part1.Name = "Left Leg2"
  225. Part1.Parent = Character
  226. Part1.Material = Enum.Material.DiamondPlate
  227. Part1.BrickColor = BrickColor.new("Dark stone grey")
  228. Part1.Rotation = Vector3.new(180, 15, -180)
  229. Part1.CanCollide = false
  230. Part1.FormFactor = Enum.FormFactor.Custom
  231. Part1.Size = Vector3.new(10, 10, 10)
  232. Part1.CFrame = CFrame.new(-12.5179701, 117.012268, 3.21098304, -0.965925813, 2.10972814e-07, 0.258819073, 2.10972814e-07, 1, -2.77751191e-08, -0.258819073, 2.77751102e-08, -0.965925813)
  233. Part1.BottomSurface = Enum.SurfaceType.Smooth
  234. Part1.TopSurface = Enum.SurfaceType.Smooth
  235. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  236. Part1.Position = Vector3.new(-12.5179701, 117.012268, 3.21098304)
  237. Part1.Orientation = Vector3.new(0, 165, 0)
  238. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  239. Part2.Name = "Right Leg2"
  240. Part2.Parent = Character
  241. Part2.Material = Enum.Material.DiamondPlate
  242. Part2.BrickColor = BrickColor.new("Dark stone grey")
  243. Part2.Rotation = Vector3.new(0, -15, 0)
  244. Part2.CanCollide = false
  245. Part2.FormFactor = Enum.FormFactor.Custom
  246. Part2.Size = Vector3.new(10, 10, 10)
  247. Part2.CFrame = CFrame.new(-9.92998791, 117.012268, -6.4490509, 0.965925813, 2.10972814e-07, -0.258819014, -2.10972814e-07, 1, 2.77751013e-08, 0.258819014, 2.77751102e-08, 0.965925813)
  248. Part2.BottomSurface = Enum.SurfaceType.Smooth
  249. Part2.TopSurface = Enum.SurfaceType.Smooth
  250. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  251. Part2.Position = Vector3.new(-9.92998791, 117.012268, -6.4490509)
  252. Part2.Orientation = Vector3.new(0, -15, 0)
  253. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  254. Part3.Name = "Left Leg1"
  255. Part3.Parent = Character
  256. Part3.Material = Enum.Material.DiamondPlate
  257. Part3.BrickColor = BrickColor.new("Dark stone grey")
  258. Part3.Rotation = Vector3.new(180, 15, -180)
  259. Part3.CanCollide = false
  260. Part3.FormFactor = Enum.FormFactor.Custom
  261. Part3.Size = Vector3.new(10, 10, 10)
  262. Part3.CFrame = CFrame.new(-12.518177, 127.012268, 3.21020746, -0.965925813, 2.10972814e-07, 0.258819073, 2.10972814e-07, 1, -2.77751191e-08, -0.258819073, 2.77751102e-08, -0.965925813)
  263. Part3.BottomSurface = Enum.SurfaceType.Smooth
  264. Part3.TopSurface = Enum.SurfaceType.Smooth
  265. Part3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  266. Part3.Position = Vector3.new(-12.518177, 127.012268, 3.21020746)
  267. Part3.Orientation = Vector3.new(0, 165, 0)
  268. Part3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  269. Motor6D4.Name = "LHip2"
  270. Motor6D4.Parent = Part3
  271. Motor6D4.C0 = CFrame.new(0, -5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  272. Motor6D4.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  273. Motor6D4.Part0 = Part3
  274. Motor6D4.Part1 = Part1
  275. Motor6D4.DesiredAngle = -0.15241381525993
  276. Motor6D4.MaxVelocity = 0.30000001192093
  277. Part5.Name = "Right Leg1"
  278. Part5.Parent = Character
  279. Part5.Material = Enum.Material.DiamondPlate
  280. Part5.BrickColor = BrickColor.new("Dark stone grey")
  281. Part5.Rotation = Vector3.new(0, -15, 0)
  282. Part5.CanCollide = false
  283. Part5.FormFactor = Enum.FormFactor.Custom
  284. Part5.Size = Vector3.new(10, 10, 10)
  285. Part5.CFrame = CFrame.new(-9.929986, 127.012268, -6.44905043, 0.965925813, 2.10972814e-07, -0.258819014, -2.10972814e-07, 1, 2.77751013e-08, 0.258819014, 2.77751102e-08, 0.965925813)
  286. Part5.BottomSurface = Enum.SurfaceType.Smooth
  287. Part5.TopSurface = Enum.SurfaceType.Smooth
  288. Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
  289. Part5.Position = Vector3.new(-9.929986, 127.012268, -6.44905043)
  290. Part5.Orientation = Vector3.new(0, -15, 0)
  291. Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
  292. Motor6D6.Name = "RHip2"
  293. Motor6D6.Parent = Part5
  294. Motor6D6.C0 = CFrame.new(0, -5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  295. Motor6D6.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  296. Motor6D6.Part0 = Part5
  297. Motor6D6.Part1 = Part2
  298. Motor6D6.DesiredAngle = -0.15241381525993
  299. Motor6D6.MaxVelocity = 0.30000001192093
  300. Part7.Name = "Left Arm2"
  301. Part7.Parent = Character
  302. Part7.Material = Enum.Material.DiamondPlate
  303. Part7.BrickColor = BrickColor.new("Dark stone grey")
  304. Part7.Rotation = Vector3.new(180, 15, -180)
  305. Part7.CanCollide = false
  306. Part7.FormFactor = Enum.FormFactor.Custom
  307. Part7.Size = Vector3.new(10, 10, 10)
  308. Part7.CFrame = CFrame.new(-7.34179354, 137.012268, -16.1083069, -0.965925813, 2.10972814e-07, 0.258819073, 2.10972814e-07, 1, -2.77751191e-08, -0.258819073, 2.77751102e-08, -0.965925813)
  309. Part7.BottomSurface = Enum.SurfaceType.Smooth
  310. Part7.TopSurface = Enum.SurfaceType.Smooth
  311. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  312. Part7.Position = Vector3.new(-7.34179354, 137.012268, -16.1083069)
  313. Part7.Orientation = Vector3.new(0, 165, 0)
  314. Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
  315. Part8.Name = "Head"
  316. Part8.Parent = Character
  317. Part8.Material = Enum.Material.DiamondPlate
  318. Part8.BrickColor = BrickColor.new("Dark stone grey")
  319. Part8.Rotation = Vector3.new(-180, -75, -180)
  320. Part8.FormFactor = Enum.FormFactor.Custom
  321. Part8.Friction = 0
  322. Part8.Size = Vector3.new(20, 15, 10)
  323. Part8.CFrame = CFrame.new(-11.2240744, 159.512268, -1.61942053, -0.258819044, 2.10972814e-07, -0.965925813, 2.77751102e-08, 1, 2.10972814e-07, 0.965925813, 2.77751102e-08, -0.258819044)
  324. Part8.BottomSurface = Enum.SurfaceType.Smooth
  325. Part8.TopSurface = Enum.SurfaceType.Smooth
  326. Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
  327. Part8.Position = Vector3.new(-11.2240744, 159.512268, -1.61942053)
  328. Part8.Orientation = Vector3.new(0, -105, 0)
  329. Part8.Color = Color3.new(0.388235, 0.372549, 0.384314)
  330. CylinderMesh9.Parent = Part8
  331. CylinderMesh9.Scale = Vector3.new(2, 1, 2)
  332. CylinderMesh9.Scale = Vector3.new(2, 1, 2)
  333. Motor6D10.Name = "VisorWeld"
  334. Motor6D10.Parent = Part8
  335. Motor6D10.C0 = CFrame.new(0, 1.29999995, -1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  336. Motor6D10.Part0 = Part8
  337. Motor6D10.Part1 = Part37
  338. Part11.Name = "Right Arm1"
  339. Part11.Parent = Character
  340. Part11.Material = Enum.Material.DiamondPlate
  341. Part11.BrickColor = BrickColor.new("Dark stone grey")
  342. Part11.Rotation = Vector3.new(0, -15, 0)
  343. Part11.CanCollide = false
  344. Part11.FormFactor = Enum.FormFactor.Custom
  345. Part11.Size = Vector3.new(10, 10, 10)
  346. Part11.CFrame = CFrame.new(-15.1063633, 147.012268, 12.8694658, 0.965925813, 2.10972814e-07, -0.258819014, -2.10972814e-07, 1, 2.77751013e-08, 0.258819014, 2.77751102e-08, 0.965925813)
  347. Part11.BottomSurface = Enum.SurfaceType.Smooth
  348. Part11.TopSurface = Enum.SurfaceType.Smooth
  349. Part11.Color = Color3.new(0.388235, 0.372549, 0.384314)
  350. Part11.Position = Vector3.new(-15.1063633, 147.012268, 12.8694658)
  351. Part11.Orientation = Vector3.new(0, -15, 0)
  352. Part11.Color = Color3.new(0.388235, 0.372549, 0.384314)
  353. CylinderMesh12.Parent = Part11
  354. CylinderMesh12.Scale = Vector3.new(1.29999995, 1.20000005, 1.29999995)
  355. CylinderMesh12.Scale = Vector3.new(1.29999995, 1.20000005, 1.29999995)
  356. Motor6D13.Name = "RShoulder2"
  357. Motor6D13.Parent = Part11
  358. Motor6D13.C0 = CFrame.new(0, -5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  359. Motor6D13.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  360. Motor6D13.Part0 = Part11
  361. Motor6D13.Part1 = Part26
  362. Motor6D13.DesiredAngle = 0.52359879016876
  363. Motor6D13.MaxVelocity = 0.30000001192093
  364. Part14.Name = "Torso"
  365. Part14.Parent = Character
  366. Part14.Material = Enum.Material.DiamondPlate
  367. Part14.BrickColor = BrickColor.new("Dark stone grey")
  368. Part14.Rotation = Vector3.new(-180, -75, -180)
  369. Part14.CanCollide = false
  370. Part14.FormFactor = Enum.FormFactor.Custom
  371. Part14.Size = Vector3.new(2, 2, 1)
  372. Part14.CFrame = CFrame.new(-11.2240782, 142.012268, -1.61942101, -0.258819044, 2.10972814e-07, -0.965925813, 2.77751102e-08, 1, 2.10972814e-07, 0.965925813, 2.77751102e-08, -0.258819044)
  373. Part14.BottomSurface = Enum.SurfaceType.Smooth
  374. Part14.TopSurface = Enum.SurfaceType.Smooth
  375. Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
  376. Part14.Position = Vector3.new(-11.2240782, 142.012268, -1.61942101)
  377. Part14.Orientation = Vector3.new(0, -105, 0)
  378. Part14.Color = Color3.new(0.388235, 0.372549, 0.384314)
  379. BodyPosition15.Parent = Part14
  380. BodyPosition15.D = 200
  381. BodyPosition15.position = Vector3.new(0, 0, 0)
  382. BodyPosition15.Position = Vector3.new(0, 0, 0)
  383. Sound16.Name = "Walk"
  384. Sound16.Parent = Part14
  385. Sound16.Pitch = 0.60000002384186
  386. Sound16.SoundId = "http://www.roblox.com/asset/?id=10730819"
  387. Sound16.Volume = 1
  388. BodyGyro17.Parent = Part14
  389. BodyGyro17.CFrame = CFrame.new(96, 36.1000023, 46, 0.422321469, 0, 0.906446099, -0, 1, -0, -0.906446099, 0, 0.422321469)
  390. BodyGyro17.maxTorque = Vector3.new(40000, 400000, 40000)
  391. BodyGyro17.P = 800
  392. BodyGyro17.D = 100
  393. BodyGyro17.MaxTorque = Vector3.new(40000, 400000, 40000)
  394. Motor6D18.Name = "Neck"
  395. Motor6D18.Parent = Part14
  396. Motor6D18.C0 = CFrame.new(0, 7.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  397. Motor6D18.C1 = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  398. Motor6D18.Part0 = Part14
  399. Motor6D18.Part1 = Part8
  400. Motor6D19.Name = "LHip1"
  401. Motor6D19.Parent = Part14
  402. Motor6D19.C0 = CFrame.new(5, -10, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  403. Motor6D19.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  404. Motor6D19.Part0 = Part14
  405. Motor6D19.Part1 = Part3
  406. Motor6D19.DesiredAngle = -0.30482763051987
  407. Motor6D19.MaxVelocity = 0.30000001192093
  408. Motor6D20.Name = "RHip1"
  409. Motor6D20.Parent = Part14
  410. Motor6D20.C0 = CFrame.new(-5, -10, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  411. Motor6D20.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  412. Motor6D20.Part0 = Part14
  413. Motor6D20.Part1 = Part5
  414. Motor6D20.DesiredAngle = -0.30482763051987
  415. Motor6D20.MaxVelocity = 0.30000001192093
  416. Motor6D21.Name = "RShoulder1"
  417. Motor6D21.Parent = Part14
  418. Motor6D21.C0 = CFrame.new(15, 10, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  419. Motor6D21.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  420. Motor6D21.Part0 = Part14
  421. Motor6D21.Part1 = Part11
  422. Motor6D21.DesiredAngle = -0.30482763051987
  423. Motor6D21.MaxVelocity = 0.30000001192093
  424. Motor6D22.Name = "LShoulder1"
  425. Motor6D22.Parent = Part14
  426. Motor6D22.C0 = CFrame.new(-15, 10, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)
  427. Motor6D22.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  428. Motor6D22.Part0 = Part14
  429. Motor6D22.Part1 = Part24
  430. Motor6D22.DesiredAngle = -0.30482763051987
  431. Motor6D22.MaxVelocity = 0.30000001192093
  432. Vector3Value23.Parent = Part14
  433. Vector3Value23.Value = Vector3.new(-11.224, 142.011993, -1.61899996)
  434. Part24.Name = "Left Arm1"
  435. Part24.Parent = Character
  436. Part24.Material = Enum.Material.DiamondPlate
  437. Part24.BrickColor = BrickColor.new("Dark stone grey")
  438. Part24.Rotation = Vector3.new(180, 15, -180)
  439. Part24.CanCollide = false
  440. Part24.FormFactor = Enum.FormFactor.Custom
  441. Part24.Size = Vector3.new(10, 10, 10)
  442. Part24.CFrame = CFrame.new(-7.34179163, 147.012268, -16.1083069, -0.965925813, 2.10972814e-07, 0.258819073, 2.10972814e-07, 1, -2.77751191e-08, -0.258819073, 2.77751102e-08, -0.965925813)
  443. Part24.BottomSurface = Enum.SurfaceType.Smooth
  444. Part24.TopSurface = Enum.SurfaceType.Smooth
  445. Part24.Color = Color3.new(0.388235, 0.372549, 0.384314)
  446. Part24.Position = Vector3.new(-7.34179163, 147.012268, -16.1083069)
  447. Part24.Orientation = Vector3.new(0, 165, 0)
  448. Part24.Color = Color3.new(0.388235, 0.372549, 0.384314)
  449. Motor6D25.Name = "LShoulder2"
  450. Motor6D25.Parent = Part24
  451. Motor6D25.C0 = CFrame.new(0, -5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  452. Motor6D25.C1 = CFrame.new(0, 5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  453. Motor6D25.Part0 = Part24
  454. Motor6D25.Part1 = Part7
  455. Motor6D25.DesiredAngle = -0.15241381525993
  456. Motor6D25.MaxVelocity = 0.30000001192093
  457. Part26.Name = "Right Arm2"
  458. Part26.Parent = Character
  459. Part26.Material = Enum.Material.DiamondPlate
  460. Part26.BrickColor = BrickColor.new("Dark stone grey")
  461. Part26.Rotation = Vector3.new(0, -15, 0)
  462. Part26.CanCollide = false
  463. Part26.FormFactor = Enum.FormFactor.Custom
  464. Part26.Size = Vector3.new(10, 10, 10)
  465. Part26.CFrame = CFrame.new(-15.1063652, 137.012268, 12.8694658, 0.965925813, 2.10972814e-07, -0.258819014, -2.10972814e-07, 1, 2.77751013e-08, 0.258819014, 2.77751102e-08, 0.965925813)
  466. Part26.BottomSurface = Enum.SurfaceType.Smooth
  467. Part26.TopSurface = Enum.SurfaceType.Smooth
  468. Part26.Color = Color3.new(0.388235, 0.372549, 0.384314)
  469. Part26.Position = Vector3.new(-15.1063652, 137.012268, 12.8694658)
  470. Part26.Orientation = Vector3.new(0, -15, 0)
  471. Part26.Color = Color3.new(0.388235, 0.372549, 0.384314)
  472. CylinderMesh27.Parent = Part26
  473. CylinderMesh27.Scale = Vector3.new(1.29999995, 1.20000005, 1.29999995)
  474. CylinderMesh27.Scale = Vector3.new(1.29999995, 1.20000005, 1.29999995)
  475. Motor6D28.Name = "RShoulder2H"
  476. Motor6D28.Parent = Part26
  477. Motor6D28.Part0 = Part26
  478. Motor6D28.Part1 = Part32
  479. Motor6D29.Name = "RShoulder3H"
  480. Motor6D29.Parent = Part26
  481. Motor6D29.Part0 = Part26
  482. Motor6D29.Part1 = Part35
  483. Part30.Name = "HumanoidRootPart"
  484. Part30.Parent = Character
  485. Part30.Material = Enum.Material.DiamondPlate
  486. Part30.BrickColor = BrickColor.new("Dark stone grey")
  487. Part30.Transparency = 1
  488. Part30.Rotation = Vector3.new(-180, -75, -180)
  489. Part30.FormFactor = Enum.FormFactor.Custom
  490. Part30.Friction = 0
  491. Part30.Size = Vector3.new(20, 20, 10)
  492. Part30.CFrame = CFrame.new(-11.2240782, 142.012268, -1.61942101, -0.258819044, 2.10972814e-07, -0.965925813, 2.77751102e-08, 1, 2.10972814e-07, 0.965925813, 2.77751102e-08, -0.258819044)
  493. Part30.BottomSurface = Enum.SurfaceType.Smooth
  494. Part30.TopSurface = Enum.SurfaceType.Universal
  495. Part30.Color = Color3.new(0.388235, 0.372549, 0.384314)
  496. Part30.Position = Vector3.new(-11.2240782, 142.012268, -1.61942101)
  497. Part30.Orientation = Vector3.new(0, -105, 0)
  498. Part30.Color = Color3.new(0.388235, 0.372549, 0.384314)
  499. Motor6D31.Name = "RootJoint"
  500. Motor6D31.Parent = Part30
  501. Motor6D31.Part0 = Part30
  502. Motor6D31.Part1 = Part14
  503. Part32.Name = "Right ArmHole"
  504. Part32.Parent = Character
  505. Part32.Material = Enum.Material.SmoothPlastic
  506. Part32.BrickColor = BrickColor.new("Black")
  507. Part32.Rotation = Vector3.new(0, -15, 0)
  508. Part32.CanCollide = false
  509. Part32.FormFactor = Enum.FormFactor.Custom
  510. Part32.Size = Vector3.new(10, 10, 10)
  511. Part32.CFrame = CFrame.new(-15.1063652, 137.012268, 12.8694658, 0.965925813, 2.10972814e-07, -0.258819014, -2.10972814e-07, 1, 2.77751013e-08, 0.258819014, 2.77751102e-08, 0.965925813)
  512. Part32.BottomSurface = Enum.SurfaceType.Smooth
  513. Part32.TopSurface = Enum.SurfaceType.Smooth
  514. Part32.Color = Color3.new(0.105882, 0.164706, 0.207843)
  515. Part32.Position = Vector3.new(-15.1063652, 137.012268, 12.8694658)
  516. Part32.Orientation = Vector3.new(0, -15, 0)
  517. Part32.Color = Color3.new(0.105882, 0.164706, 0.207843)
  518. CylinderMesh33.Parent = Part32
  519. CylinderMesh33.Offset = Vector3.new(0, -0.0299999993, 0)
  520. CylinderMesh33.Scale = Vector3.new(0.600000024, 1.20000005, 0.600000024)
  521. CylinderMesh33.Scale = Vector3.new(0.600000024, 1.20000005, 0.600000024)
  522. Sound34.Name = "Laser"
  523. Sound34.Parent = Part32
  524. Sound34.Pitch = 0.69999998807907
  525. Sound34.SoundId = "http://www.roblox.com/asset/?id=135249156"
  526. Sound34.Volume = 1
  527. Part35.Name = "Right Arm3"
  528. Part35.Parent = Character
  529. Part35.Material = Enum.Material.DiamondPlate
  530. Part35.BrickColor = BrickColor.new("Dark stone grey")
  531. Part35.Rotation = Vector3.new(0, -15, 0)
  532. Part35.CanCollide = false
  533. Part35.FormFactor = Enum.FormFactor.Custom
  534. Part35.Size = Vector3.new(10, 10, 10)
  535. Part35.CFrame = CFrame.new(-15.1063652, 137.012268, 12.8694658, 0.965925813, 2.10972814e-07, -0.258819014, -2.10972814e-07, 1, 2.77751013e-08, 0.258819014, 2.77751102e-08, 0.965925813)
  536. Part35.BottomSurface = Enum.SurfaceType.Smooth
  537. Part35.TopSurface = Enum.SurfaceType.Smooth
  538. Part35.Color = Color3.new(0.388235, 0.372549, 0.384314)
  539. Part35.Position = Vector3.new(-15.1063652, 137.012268, 12.8694658)
  540. Part35.Orientation = Vector3.new(0, -15, 0)
  541. Part35.Color = Color3.new(0.388235, 0.372549, 0.384314)
  542. CylinderMesh36.Parent = Part35
  543. CylinderMesh36.Offset = Vector3.new(0, 1, 0)
  544. CylinderMesh36.Scale = Vector3.new(1.39999998, 1, 1.39999998)
  545. CylinderMesh36.Scale = Vector3.new(1.39999998, 1, 1.39999998)
  546. Part37.Name = "Visor"
  547. Part37.Parent = Character
  548. Part37.Material = Enum.Material.SmoothPlastic
  549. Part37.BrickColor = BrickColor.new("Bright bluish green")
  550. Part37.Reflectance = 0.5
  551. Part37.Rotation = Vector3.new(-180, -75, -180)
  552. Part37.CanCollide = false
  553. Part37.FormFactor = Enum.FormFactor.Custom
  554. Part37.Size = Vector3.new(20, 5, 10)
  555. Part37.CFrame = CFrame.new(-10.2581482, 160.812271, -1.36060143, -0.258819044, 2.10972814e-07, -0.965925813, 2.77751102e-08, 1, 2.10972814e-07, 0.965925813, 2.77751102e-08, -0.258819044)
  556. Part37.BottomSurface = Enum.SurfaceType.Smooth
  557. Part37.TopSurface = Enum.SurfaceType.Smooth
  558. Part37.Color = Color3.new(0, 0.560784, 0.611765)
  559. Part37.Position = Vector3.new(-10.2581482, 160.812271, -1.36060143)
  560. Part37.Orientation = Vector3.new(0, -105, 0)
  561. Part37.Color = Color3.new(0, 0.560784, 0.611765)
  562. CylinderMesh38.Parent = Part37
  563. CylinderMesh38.Scale = Vector3.new(1.89999998, 1, 1.89999998)
  564. CylinderMesh38.Scale = Vector3.new(1.89999998, 1, 1.89999998)
  565. asdf=Instance.new("Part")
  566. asdf.Name = "Torso1"
  567. asdf.Parent = Character
  568. asdf.Material = Enum.Material.DiamondPlate
  569. asdf.BrickColor = BrickColor.new("Dark stone grey")
  570. asdf.Rotation = Vector3.new(-180, -75, -180)
  571. asdf.CanCollide = false
  572. asdf.FormFactor = Enum.FormFactor.Custom
  573. asdf.Size = Vector3.new(20, 20, 10)
  574. asdf.CFrame = CFrame.new(-11.2240782, 142.012268, -1.61942101, -0.258819044, 2.10972814e-07, -0.965925813, 2.77751102e-08, 1, 2.10972814e-07, 0.965925813, 2.77751102e-08, -0.258819044)
  575. aaaa=Instance.new("Weld",asdf)
  576. aaaa.Part0=asdf
  577. aaaa.Part1=Part14
  578.  
  579. --[[for i,v in pairs(mas:GetChildren()) do
  580. v.Parent = workspace
  581. pcall(function() v:MakeJoints() end)
  582. end
  583. mas:Destroy()
  584. for i,v in pairs(cors) do
  585. spawn(function()
  586. pcall(v)
  587. end)
  588. end]]
  589.  
  590. wait(1)
  591. local Create = LoadLibrary("RbxUtility").Create
  592. ArtificialHB = Create("BindableEvent", script){
  593. Parent = script,
  594. Name = "Heartbeat",
  595. }
  596.  
  597. script:WaitForChild("Heartbeat")
  598.  
  599. frame = 1 / 30
  600. tf = 0
  601. allowframeloss = false
  602. tossremainder = false
  603. lastframe = tick()
  604. script.Heartbeat:Fire()
  605.  
  606. game:GetService("RunService").Heartbeat:connect(function(s, p)
  607. tf = tf + s
  608. if tf >= frame then
  609. if allowframeloss then
  610. script.Heartbeat:Fire()
  611. lastframe = tick()
  612. else
  613. for i = 1, math.floor(tf / frame) do
  614. script.Heartbeat:Fire()
  615. end
  616. lastframe = tick()
  617. end
  618. if tossremainder then
  619. tf = 0
  620. else
  621. tf = tf - frame * math.floor(tf / frame)
  622. end
  623. end
  624. end)
  625.  
  626. function swait(num)
  627. if num == 0 or num == nil then
  628. ArtificialHB.Event:wait()
  629. else
  630. for i = 0, num do
  631. ArtificialHB.Event:wait()
  632. end
  633. end
  634. end
  635. waitFor=function(Name)
  636. while Character:FindFirstChild(Name)==nil do
  637. swait()
  638. end
  639. return Character:FindFirstChild(Name)
  640. end
  641.  
  642. Head=waitFor("Head")
  643. Torso=waitFor("Torso")
  644. RootPart=waitFor("HumanoidRootPart")
  645. LA1=waitFor("Left Arm1")
  646. LA2=waitFor("Left Arm2")
  647. RA1=waitFor("Right Arm1")
  648. RA2=waitFor("Right Arm2")
  649.  
  650. LL1=waitFor("Left Leg1")
  651. LL2=waitFor("Left Leg2")
  652. RL1=waitFor("Right Leg1")
  653. RL2=waitFor("Right Leg2")
  654.  
  655. Neck=Instance.new("Motor6D")
  656. Neck.Name="Neck"
  657. Neck.Part0=Torso
  658. Neck.Part1=Head
  659. Neck.C0=CFrame.new(0,7.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),0,0)
  660. Neck.C1=CFrame.new(0,-10,0)
  661. Neck.Parent=Neck.Part0
  662.  
  663. LHip1=Instance.new("Motor6D")
  664. LHip1.Name="LHip1"
  665. LHip1.Part0=Torso
  666. LHip1.Part1=LL1
  667. LHip1.C0=CFrame.new(5,-10,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),-math.pi/2,0)
  668. LHip1.C1=CFrame.new(0,5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  669. LHip1.Parent=Torso
  670.  
  671. LHip2=Instance.new("Motor6D")
  672. LHip2.Name="LHip2"
  673. LHip2.Part0=LL1
  674. LHip2.Part1=LL2
  675. LHip2.C0=CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),0,0)
  676. LHip2.C1=CFrame.new(0,5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  677. LHip2.Parent=LL1
  678.  
  679. LHip1.MaxVelocity=.3
  680. LHip2.MaxVelocity=.3
  681. LHip1.DesiredAngle=.3
  682. LHip2.DesiredAngle=.3
  683.  
  684.  
  685. RHip1=Instance.new("Motor6D")
  686. RHip1.Name="RHip1"
  687. RHip1.Part0=Torso
  688. RHip1.Part1=RL1
  689. RHip1.C0=CFrame.new(-5,-10,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.pi/2,0)
  690. RHip1.C1=CFrame.new(0,5,0)
  691. RHip1.Parent=Torso
  692.  
  693. RHip2=Instance.new("Motor6D")
  694. RHip2.Name="RHip2"
  695. RHip2.Part0=RL1
  696. RHip2.Part1=RL2
  697. RHip2.C0=CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),0,0)
  698. RHip2.C1=CFrame.new(0,5,0)
  699. RHip2.Parent=RL1
  700.  
  701. RHip1.MaxVelocity=.3
  702. RHip2.MaxVelocity=.3
  703. RHip1.DesiredAngle=.3
  704. RHip2.DesiredAngle=.3
  705.  
  706.  
  707.  
  708.  
  709. RShoulder1=Instance.new("Motor6D")
  710. RShoulder1.Name="RShoulder1"
  711. RShoulder1.Part0=Torso
  712. RShoulder1.Part1=RA1
  713. RShoulder1.C0=CFrame.new(15,10,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  714. RShoulder1.C1=CFrame.new(0,5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  715. RShoulder1.Parent=Torso
  716.  
  717. RShoulder2=Instance.new("Motor6D")
  718. RShoulder2.Name="RShoulder2"
  719. RShoulder2.Part0=RA1
  720. RShoulder2.Part1=RA2
  721. RShoulder2.C0=CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  722. RShoulder2.C1=CFrame.new(0,5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  723. RShoulder2.Parent=RA1
  724.  
  725. RShoulder1.MaxVelocity=.3
  726. RShoulder2.MaxVelocity=.3
  727. RShoulder1.DesiredAngle=.3
  728. RShoulder2.DesiredAngle=.3
  729.  
  730. LShoulder1=Instance.new("Motor6D")
  731. LShoulder1.Name="LShoulder1"
  732. LShoulder1.Part0=Torso
  733. LShoulder1.Part1=LA1
  734. LShoulder1.C0=CFrame.new(-15,10,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),-math.pi/2,0)
  735. LShoulder1.C1=CFrame.new(0,5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  736. LShoulder1.Parent=Torso
  737.  
  738. LShoulder2=Instance.new("Motor6D")
  739. LShoulder2.Name="LShoulder2"
  740. LShoulder2.Part0=LA1
  741. LShoulder2.Part1=LA2
  742. LShoulder2.C0=CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),0,0)
  743. LShoulder2.C1=CFrame.new(0,5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  744. LShoulder2.Parent=LA1
  745.  
  746. LShoulder1.MaxVelocity=.3
  747. LShoulder2.MaxVelocity=.3
  748. LShoulder1.DesiredAngle=.3
  749. LShoulder2.DesiredAngle=.3
  750.  
  751.  
  752.  
  753. ArmHoleWeld=Instance.new("Motor6D")
  754. ArmHoleWeld.Name="RShoulder2H"
  755. ArmHoleWeld.Part0=RA2
  756. ArmHoleWeld.Part1=script.Parent["Right ArmHole"]
  757. ArmHoleWeld.C0=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  758. ArmHoleWeld.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  759. ArmHoleWeld.Parent=RA2
  760.  
  761. ArmHoleWeld=Instance.new("Motor6D")
  762. ArmHoleWeld.Name="RShoulder3H"
  763. ArmHoleWeld.Part0=RA2
  764. ArmHoleWeld.Part1=script.Parent["Right Arm3"]
  765. ArmHoleWeld.C0=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  766. ArmHoleWeld.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  767. ArmHoleWeld.Parent=RA2
  768.  
  769. ArmHoleWeld=Instance.new("Motor6D")
  770. ArmHoleWeld.Name="VisorWeld"
  771. ArmHoleWeld.Part0=Head
  772. ArmHoleWeld.Part1=script.Parent["Visor"]
  773. ArmHoleWeld.C0=CFrame.new(0,1.3,-1) * CFrame.fromEulerAnglesXYZ(0,0,0)
  774. ArmHoleWeld.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  775. ArmHoleWeld.Parent=Head
  776.  
  777. RootJoint=Instance.new("Motor6D")
  778. RootJoint.Name="RootJoint"
  779. RootJoint.Part0=RootPart
  780. RootJoint.Part1=Torso
  781. RootJoint.C0=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  782. RootJoint.C1=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  783. RootJoint.Parent=RootPart
  784.  
  785. h=Instance.new("Humanoid")
  786. h.MaxHealth=6000
  787. h.WalkSpeed=30
  788. h.Parent=Character
  789.  
  790. --Anti OHKO
  791. LastHealth=6000
  792. onChanged=function(Num)
  793. if LastHealth-Num > 80 then
  794. script.Parent.Humanoid.Health=LastHealth-80
  795. end
  796. LastHealth=script.Parent.Humanoid.Health
  797. end
  798. --[[coroutine.resume(coroutine.create(function()
  799. while true do
  800. swait()
  801. if script.Parent.Humanoid.Health <= 0 then
  802. for _,i in pairs(game.Players:children()) do
  803. game:GetService("BadgeService"):AwardBadge(i.userId, BadgeID)
  804. print("GIMME BOODGE")
  805. end
  806. end
  807. end
  808. end))]]
  809. script.Parent.Humanoid.HealthChanged:connect(onChanged)
  810.  
  811.  
  812. --Animations
  813.  
  814. Effects = { }
  815.  
  816. CFuncs = {
  817. Part = {
  818. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  819. local Part = Create("Part"){
  820. Parent = Parent,
  821. Reflectance = Reflectance,
  822. Transparency = Transparency,
  823. CanCollide = false,
  824. Locked = true,
  825. BrickColor = BrickColor.new(tostring(BColor)),
  826. Name = Name,
  827. Size = Size,
  828. Material = Material,
  829. }
  830. RemoveOutlines(Part)
  831. return Part
  832. end;
  833. };
  834.  
  835. Mesh = {
  836. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  837. local Msh = Create(Mesh){
  838. Parent = Part,
  839. Offset = OffSet,
  840. Scale = Scale,
  841. }
  842. if Mesh == "SpecialMesh" then
  843. Msh.MeshType = MeshType
  844. Msh.MeshId = MeshId
  845. end
  846. return Msh
  847. end;
  848. };
  849. }
  850. EffectModel = Create("Model"){
  851. Parent = Character,
  852. Name = "Effects",
  853. }
  854.  
  855. Effects = {
  856.  
  857. Fire = {
  858. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  859. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(.2,.2,.2))
  860. prt.Anchored = true
  861. prt.CFrame = cframe
  862. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  863. game:GetService("Debris"):AddItem(prt, 10)
  864. table.insert(Effects, {
  865. prt,
  866. "Fire",
  867. delay,
  868. 1,
  869. 1,
  870. 1,
  871. msh
  872. })
  873. end;
  874. };
  875. }
  876.  
  877.  
  878.  
  879. po=0
  880. Walk=function()
  881.  
  882. ctime=math.sin(time() * 5) * .5
  883. RHip1.DesiredAngle=ctime
  884. RHip2.DesiredAngle=ctime/2
  885. LHip1.DesiredAngle=ctime
  886. LHip2.DesiredAngle=ctime/2
  887.  
  888. RHip1.DesiredAngle=ctime
  889. RHip2.DesiredAngle=ctime/2
  890. LHip1.DesiredAngle=ctime
  891. LHip2.DesiredAngle=ctime/2
  892.  
  893. RShoulder1.DesiredAngle=ctime
  894. RShoulder2.DesiredAngle=math.rad(30)
  895. LShoulder1.DesiredAngle=ctime
  896. LShoulder2.DesiredAngle=ctime/2
  897.  
  898. BodyPos.position=BodyPos.position + (BodyPos.position-Destination).unit*-1
  899. BodyGyro.cframe=CFrame.new(Torso.Position,Vector3.new(Destination.x,Torso.Position.y,Destination.z))
  900.  
  901. po=po+1
  902. if po>=18 then
  903. Torso.Walk:Play()
  904. po=0
  905.  
  906. for _,v in pairs(workspace:children()) do
  907. if v:FindFirstChild("Humanoid")~=nil and v:FindFirstChild("Torso")~=nil then
  908. if (v.Torso.Position-RL2.Position).magnitude < 12 then
  909. v.Humanoid:TakeDamage(40)
  910. end
  911. end
  912. end
  913. for _,v in pairs(workspace:children()) do
  914. if v:FindFirstChild("Humanoid")~=nil and v:FindFirstChild("Torso")~=nil then
  915. if (v.Torso.Position-LL2.Position).magnitude < 12 then
  916. v.Humanoid:TakeDamage(40)
  917. end
  918. end
  919. end
  920.  
  921. for _,v in pairs(workspace:children()) do
  922. if v:FindFirstChild("Humanoid")~=nil and v:FindFirstChild("Torso")~=nil and v~=script.Parent then
  923. if (v.Torso.Position-(Torso.Position-Vector3.new(0,33,0))).magnitude < 40 then
  924. print("DAI")
  925. r=Instance.new("BodyAngularVelocity")
  926. r.P=3000
  927. r.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  928. r.maxTorque=Vector3.new(500000,500000,500000)*5000
  929. r.Parent=v.Torso
  930. game:GetService("Debris"):AddItem(r,.2)
  931. r=Instance.new("BodyVelocity")
  932. r.P=3000
  933. r.velocity=Vector3.new(math.random(-10,10)/2,math.random(10,40),math.random(-10,10)/2)
  934. r.maxForce=Vector3.new(500000,500000,500000)*5000
  935. r.Parent=v.Torso
  936. game:GetService("Debris"):AddItem(r,.33)
  937. end
  938. end
  939. end
  940.  
  941. end
  942.  
  943. end
  944.  
  945. WalkTo=function(pos)
  946.  
  947. local cpos=pos+Vector3.new(0,5,0)
  948. par,loc=workspace:FindPartOnRayWithIgnoreList(Ray.new(cpos,Vector3.new(0,-60,0)),ignore)
  949.  
  950. Destination=loc + Vector3.new(0,30,0)
  951.  
  952. --print(Destination,"NEW")
  953.  
  954. end
  955.  
  956. Destination=Torso.Position
  957.  
  958. ignore={}
  959. updateIgnore=function()
  960. ignore={}
  961. lol=function(p)
  962. for i=1, #p do
  963. if p[i]:IsA("BasePart") then
  964. if p[i].CanCollide==false or p[i]:GetMass()<100 then
  965. table.insert(ignore,p[i])
  966. end
  967. end
  968. k=p[i]:GetChildren()
  969. if #k>0 then
  970. lol(k)
  971. end
  972. end
  973. end
  974. lol(workspace:children())
  975. end
  976. updateIgnore()
  977.  
  978. FireAt=function(pos)
  979. attack = true
  980. ctime=math.sin(time() * 5) * .5
  981. RHip1.CurrentAngle=0
  982. RHip2.CurrentAngle=0
  983. LHip1.CurrentAngle=0
  984. LHip2.CurrentAngle=0
  985.  
  986. RHip1.CurrentAngle=0
  987. RHip2.CurrentAngle=0
  988. LHip1.CurrentAngle=0
  989. LHip2.CurrentAngle=0
  990.  
  991. RShoulder1.CurrentAngle=0
  992. RShoulder2.CurrentAngle=math.rad(30)
  993. LShoulder1.CurrentAngle=0
  994. LShoulder2.CurrentAngle=0
  995.  
  996. RHip1.DesiredAngle=0
  997. RHip2.DesiredAngle=0
  998. LHip1.DesiredAngle=0
  999. LHip2.DesiredAngle=0
  1000.  
  1001. RHip1.DesiredAngle=0
  1002. RHip2.DesiredAngle=0
  1003. LHip1.DesiredAngle=0
  1004. LHip2.DesiredAngle=0
  1005.  
  1006. RShoulder1.DesiredAngle=.6
  1007. RShoulder2.DesiredAngle=0
  1008. LShoulder1.DesiredAngle=.2
  1009. LShoulder2.DesiredAngle=-.3
  1010.  
  1011.  
  1012. BodyGyro.cframe=CFrame.new(Torso.Position,Vector3.new(pos.x,Torso.Position.y,pos.z))
  1013.  
  1014. swait(.3)
  1015.  
  1016. Dist=(Torso.Position.y-pos.y)
  1017. if Dist>20 then
  1018. Dist=20
  1019. end
  1020. RShoulder1.DesiredAngle=math.rad(Dist)
  1021.  
  1022. Dist=(Torso.Position-pos).magnitude / 3
  1023. if Dist>40 then
  1024. Dist=40
  1025. end
  1026. RShoulder1.DesiredAngle=RShoulder1.DesiredAngle + math.rad(Dist) + math.rad(7)
  1027. RShoulder2.DesiredAngle=math.rad(5)
  1028.  
  1029. for i=1, 10 do
  1030. Neck.C0=Neck.C0*CFrame.fromEulerAnglesXYZ(-math.rad(3),0,0)
  1031. RShoulder1.C0=RShoulder1.C0*CFrame.fromEulerAnglesXYZ(-math.rad(5),0,0)
  1032. swait(.03)
  1033. end
  1034.  
  1035. Sound34:Play()
  1036.  
  1037. las=Instance.new("Part")
  1038. las.Name="Pew"
  1039. las.BrickColor=BrickColor.new("Really red")
  1040. las.Reflectance=0
  1041. las.Transparency=.2
  1042. las.TopSurface=0
  1043. las.BottomSurface=0
  1044. las.formFactor="Symmetric"
  1045. las.Size=Vector3.new(1,1,1)
  1046. las.CFrame=script.Parent["Right ArmHole"].CFrame
  1047. w=Instance.new("Weld")
  1048. w.C1=CFrame.new(0,5,0)
  1049. w.Part0=script.Parent["Right ArmHole"]
  1050. w.Part1=las
  1051. w.Parent=las
  1052. c=Instance.new("CylinderMesh")
  1053. c.Scale=Vector3.new(5,5,5)
  1054. c.Parent=las
  1055. las.Parent=script.Parent
  1056.  
  1057. las2=Instance.new("Part")
  1058. las2.Name="Pew"
  1059. las2.BrickColor=BrickColor.new("Bright red")
  1060. las2.Reflectance=0
  1061. las2.Transparency=.2
  1062. las2.TopSurface=0
  1063. las2.BottomSurface=0
  1064. las2.formFactor="Symmetric"
  1065. las2.Size=Vector3.new(1,1,1)
  1066. las2.CFrame=script.Parent["Right ArmHole"].CFrame
  1067. w=Instance.new("Weld")
  1068. w.C1=CFrame.new(0,0,0)
  1069. w.Part0=las
  1070. w.Part1=las2
  1071. w.Parent=las
  1072. c=Instance.new("CylinderMesh")
  1073. c.Scale=Vector3.new(4,5,4)
  1074. c.Parent=las2
  1075. las2.Parent=las
  1076.  
  1077. las2=Instance.new("Part")
  1078. las2.Name="Pew"
  1079. las2.BrickColor=BrickColor.new("Bright orange")
  1080. las2.Reflectance=0
  1081. las2.Transparency=.2
  1082. las2.TopSurface=0
  1083. las2.BottomSurface=0
  1084. las2.formFactor="Symmetric"
  1085. las2.Size=Vector3.new(1,1,1)
  1086. las2.CFrame=script.Parent["Right ArmHole"].CFrame
  1087. w=Instance.new("Weld")
  1088. w.C1=CFrame.new(0,0,0)
  1089. w.Part0=las
  1090. w.Part1=las2
  1091. w.Parent=las
  1092. c=Instance.new("CylinderMesh")
  1093. c.Scale=Vector3.new(3,5,3)
  1094. c.Parent=las2
  1095. las2.Parent=las
  1096.  
  1097. las2=Instance.new("Part")
  1098. las2.Name="Pew"
  1099. las2.BrickColor=BrickColor.new("Bright yellow")
  1100. las2.Reflectance=0
  1101. las2.Transparency=0
  1102. las2.TopSurface=0
  1103. las2.BottomSurface=0
  1104. las2.formFactor="Symmetric"
  1105. las2.Size=Vector3.new(1,1,1)
  1106. las2.CFrame=script.Parent["Right ArmHole"].CFrame
  1107. w=Instance.new("Weld")
  1108. w.C1=CFrame.new(0,0,0)
  1109. w.Part0=las
  1110. w.Part1=las2
  1111. w.Parent=las
  1112. c=Instance.new("CylinderMesh")
  1113. c.Scale=Vector3.new(2,5,2)
  1114. c.Parent=las2
  1115. las2.Parent=las
  1116.  
  1117. for i=1, 40 do
  1118. RShoulder1.C0=RShoulder1.C0*CFrame.fromEulerAnglesXYZ(math.rad(2.5),0,0)
  1119.  
  1120. indir=(script.Parent["Right ArmHole"].CFrame.p - (script.Parent["Right ArmHole"].CFrame * CFrame.new(0,5,0)).p).unit
  1121.  
  1122. par,loc=workspace:FindPartOnRay(Ray.new(script.Parent["Right ArmHole"].Position,indir*500),script.Parent)
  1123. dist=(las.Position-loc).magnitude
  1124. las.Mesh.Scale=Vector3.new(5.5,dist + 10,5.5)
  1125. las.Mesh.Offset=Vector3.new(0,-dist/2,0)
  1126.  
  1127. for _,v in pairs(las:children()) do
  1128. if v.Name=="Pew" then
  1129. v.Mesh.Scale=Vector3.new(v.Mesh.Scale.x,dist + 10,v.Mesh.Scale.z)
  1130. v.Mesh.Offset=Vector3.new(0,-dist/2,0)
  1131. end
  1132. end
  1133.  
  1134. for _,v in pairs(workspace:children()) do
  1135. if v:FindFirstChild("Humanoid")~=nil and v:FindFirstChild("Torso")~=nil then
  1136. if (v.Torso.Position-loc).magnitude < 8 then
  1137. v.Humanoid:TakeDamage(10)
  1138. end
  1139. end
  1140. end
  1141.  
  1142. if math.floor(i/3)==i/3 then
  1143. p=Instance.new("Part")
  1144. p.Name="FIYAH"
  1145. p.Anchored=true
  1146. p.CanCollide=false
  1147. p.CFrame=CFrame.new(loc)
  1148. p.Transparency=1
  1149. p.Parent=script.Parent
  1150. game:GetService("Debris"):AddItem(p,2.4)
  1151. Effects.Fire.Create(BrickColor.new("Bright red"), p.CFrame, 40, 40, 40, -1.5, -1.5, -1.5, .03)
  1152. --coroutine.resume(coroutine.create(function(f) swait(1.5) f.Enabled=false end),f)
  1153. --s=script.Demege:clone() s.Disabled=false s.Parent=p
  1154. coroutine.resume(coroutine.create(function(sus)
  1155. while p~=nil do
  1156. swait(.2)
  1157. for _,v in pairs(workspace:children()) do
  1158. if v:FindFirstChild("Humanoid")~=nil and v:FindFirstChild("Torso")~=nil then
  1159. if (v.Torso.Position-sus.Position).magnitude < 11 then
  1160. v.Humanoid:TakeDamage(.5)
  1161. coroutine.resume(coroutine.create(function()
  1162. swait(.1)
  1163.  
  1164. hum=v.Humanoid
  1165. for i=1, 30 do
  1166. swait(.1)
  1167. --Effects.Fire.Create(BrickColor.new("Bright red"), v.Torso.CFrame, 15, 15, 15, -2, -2, -2, .06)
  1168. hum:TakeDamage(.5)
  1169. end
  1170.  
  1171. swait(2)
  1172.  
  1173. end))
  1174. --if v.Torso:FindFirstChild("BScript")==nil then
  1175. --[[s=script.BScript:clone() s.Disabled=false
  1176. s.Parent=v.Torso]]
  1177. --end
  1178. end
  1179. end
  1180. end
  1181. end
  1182. end), p)
  1183. s=Instance.new("Sound")
  1184. s.SoundId="http://www.roblox.com/asset/?id=146767808"
  1185. s.Volume=.33
  1186. s.Parent=p
  1187. s:Play()
  1188.  
  1189. p=Instance.new("Part")
  1190. p.Name="KABEWM"
  1191. p.Anchored=true
  1192. p.CanCollide=false
  1193. p.CFrame=CFrame.new(loc)
  1194. p.formFactor="Symmetric"
  1195. p.TopSurface=0
  1196. p.BottomSurface=0
  1197. p.Reflectance=0
  1198. p.BrickColor=BrickColor.new("Really red")
  1199. p.Transparency=.8
  1200. p.Parent=script.Parent
  1201. p.Size=Vector3.new(2.2,2.2,2.2)
  1202. m=Instance.new("SpecialMesh")
  1203. m.Parent=p
  1204. m.MeshType="Sphere"
  1205. game:GetService("Debris"):AddItem(p,3)
  1206. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Transparency=.5 + i/20 p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1,1,1) swait(.05) end p:Remove() end),p)
  1207.  
  1208. p=Instance.new("Part")
  1209. p.Name="KABEWM"
  1210. p.Anchored=true
  1211. p.CanCollide=false
  1212. p.CFrame=CFrame.new(loc)
  1213. p.formFactor="Symmetric"
  1214. p.TopSurface=0
  1215. p.BottomSurface=0
  1216. p.Reflectance=0
  1217. p.BrickColor=BrickColor.new("Bright red")
  1218. p.Transparency=.8
  1219. p.Parent=script.Parent
  1220. p.Size=Vector3.new(1.8,3,1.8)
  1221. m=Instance.new("SpecialMesh")
  1222. m.Parent=p
  1223. m.MeshType="Sphere"
  1224. game:GetService("Debris"):AddItem(p,3)
  1225. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Transparency=.5 + i/20 p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1,1,1) swait(.05) end p:Remove() end),p)
  1226.  
  1227.  
  1228. p=Instance.new("Part")
  1229. p.Name="KABEWM"
  1230. p.Anchored=true
  1231. p.CanCollide=false
  1232. p.CFrame=CFrame.new(loc)
  1233. p.formFactor="Symmetric"
  1234. p.TopSurface=0
  1235. p.BottomSurface=0
  1236. p.Reflectance=0
  1237. p.BrickColor=BrickColor.new("Bright yellow")
  1238. p.Transparency=.33
  1239. p.Parent=script.Parent
  1240. p.Size=Vector3.new(1,1,1)
  1241. m=Instance.new("SpecialMesh")
  1242. m.Parent=p
  1243. m.MeshType="Sphere"
  1244. game:GetService("Debris"):AddItem(p,3)
  1245. coroutine.resume(coroutine.create(function(p) for i=1, 10 do p.Transparency=.33 p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1,1,1) swait(.05) end p:Remove() end),p)
  1246.  
  1247. end
  1248.  
  1249. swait(.03)
  1250. end
  1251.  
  1252. las:Remove()
  1253.  
  1254. swait(.5)
  1255.  
  1256. for i=1, 20 do
  1257. Neck.C0=Neck.C0*CFrame.fromEulerAnglesXYZ(math.rad(1.5),0,0)
  1258. RShoulder1.C0=RShoulder1.C0*CFrame.fromEulerAnglesXYZ(-math.rad(2.5),0,0)
  1259. swait(.03)
  1260. end
  1261.  
  1262. RShoulder1.DesiredAngle=0
  1263. RShoulder2.DesiredAngle=0.3
  1264. attack = false
  1265. end
  1266.  
  1267. function RemoveOutlines(part)
  1268. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1269. end
  1270.  
  1271. while Character.Humanoid.Health~=Character.Humanoid.MaxHealth do
  1272. Character.Humanoid.Health=Character.Humanoid.maxHealth
  1273. swait(.05)
  1274. end
  1275. function onKeyDown(key)
  1276. if attack == false then
  1277. if key == "z" then
  1278. h.WalkSpeed=0
  1279. FireAt(mouse.Hit.p)
  1280. h.WalkSpeed=30
  1281. end
  1282. end
  1283. end
  1284.  
  1285. mouse.KeyDown:connect(onKeyDown)
  1286. BodyPos=Torso.BodyPosition
  1287. BodyGyro=Torso.BodyGyro
  1288. StartPos=Torso.Value.Value
  1289. Destination=StartPos
  1290. while true do
  1291. swait()
  1292. if attack == false then
  1293. WalkTo(StartPos+mouse.Hit.p)
  1294. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 20, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1295. if (BodyPos.position - Destination).magnitude > 10 then
  1296. Walk()
  1297. end
  1298. end
  1299. if #Effects > 0 then
  1300. for e = 1, #Effects do
  1301. if Effects[e] ~= nil then
  1302. local Thing = Effects[e]
  1303. if Thing ~= nil then
  1304. Part = Thing[1]
  1305. Moder = Thing[2]
  1306. Delay = Thing[3]
  1307. IncX = Thing[4]
  1308. IncY = Thing[5]
  1309. IncZ = Thing[6]
  1310. if Thing[1].Transparency <= 1 then
  1311. if Thing[2] == "Fire" then
  1312.  
  1313. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.3, 0)
  1314. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1315. Thing[1].Transparency = Thing[1].Transparency + .05--Thing[3]
  1316. end
  1317. end
  1318. else
  1319. Part.Parent = nil
  1320. table.remove(Effects, e)
  1321. end
  1322. end
  1323. end
  1324.  
  1325. end
  1326. end
  1327. --[[WalkTo(StartPos+Vector3.new(math.random(-150,150)/2,0,math.random(-150,150)/2))
  1328. elapse=0
  1329.  
  1330.  
  1331. math.randomseed(time())
  1332. if math.random(1,20)>=17 or elapse>=100 then
  1333. for _,v in pairs(workspace:children()) do
  1334. if v:FindFirstChild("Humanoid")~=nil and v:FindFirstChild("Torso")~=nil and v~=script.Parent then
  1335. if (v.Torso.Position-loc).magnitude < 100 then
  1336. FireAt(v.Torso.Position)
  1337. end
  1338. end
  1339. end
  1340. elapse=0
  1341. else
  1342. elapse=elapse+1
  1343. if (BodyPos.position - Destination).magnitude > 10 then
  1344. print("WALKING")
  1345. Walk()
  1346. else
  1347. print("NEWPOSTIME")
  1348. WalkTo(StartPos+Vector3.new(math.random(-140,140),0,math.random(-50,50)))
  1349. end
  1350. swait(.03)
  1351. end]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement