Orangeplayer1431

sov

Mar 11th, 2018
1,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 99.22 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.  
  153. --Final Gladiator, Edit by Anarchy#8267, Remove Credits and I'll find you
  154.  
  155. print'test testy testie'
  156.  
  157. plr = game.Players.LocalPlayer
  158. char = plr.Character
  159. hum = char.Humanoid
  160. local cam = game.Workspace.CurrentCamera
  161. t = char.Torso
  162. h = char.Head
  163. ra = char["Right Arm"]
  164. la = char["Left Arm"]
  165. rl = char["Right Leg"]
  166. ll = char["Left Leg"]
  167. tors = char.Torso
  168. lleg = char["Left Leg"]
  169. root = char.HumanoidRootPart
  170. hed = char.Head
  171. rleg = char["Right Leg"]
  172. rarm = char["Right Arm"]
  173. larm = char["Left Arm"]
  174. vt = Vector3.new
  175. bc = BrickColor.new
  176. br = BrickColor.random
  177. it = Instance.new
  178. cf = CFrame.new
  179.  
  180. --rh3.Transparency = 0
  181.  
  182. --//Reaper\\--
  183. local Orbd = Instance.new("Part", char)
  184. Orbd.Name = "Orbd"
  185. Orbd.Shape = Enum.PartType.Ball
  186. Orbd.CanCollide = false
  187. Orbd.BrickColor = BrickColor.new("Maroon")
  188. Orbd.Transparency = 0
  189. Orbd.Material = "Neon"
  190. Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
  191. Orbd.TopSurface = Enum.SurfaceType.Smooth
  192. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  193.  
  194. local Weld = Instance.new("Weld", Orbd)
  195. Weld.Part0 = char.Head
  196. Weld.Part1 = Orbd
  197. Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
  198.  
  199. --------------------------------------------------------
  200. local Orbvc = Instance.new("Part", char)
  201. Orbvc.Name = "Orbvc"
  202. Orbvc.Shape = Enum.PartType.Ball
  203. Orbvc.CanCollide = false
  204. Orbvc.BrickColor = BrickColor.new("Really red")
  205. Orbvc.Transparency = 0
  206. Orbvc.Material = "Neon"
  207. Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
  208. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  209. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  210.  
  211. local Weld = Instance.new("Weld", Orbvc)
  212. Weld.Part0 = char.Head
  213. Weld.Part1 = Orbvc
  214. Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
  215.  
  216. local Mask = Instance.new("Part", char)
  217. Mask.Name = "Mask"
  218. Mask.CanCollide = false
  219. Mask.BrickColor = BrickColor.new("Black")
  220. Mask.Transparency = 0
  221. Mask.Material = "Plastic"
  222. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  223. Mask.TopSurface = Enum.SurfaceType.Smooth
  224. Mask.BottomSurface = Enum.SurfaceType.Smooth
  225.  
  226. local Weld = Instance.new("Weld", Mask)
  227. Weld.Part0 = char.Head
  228. Weld.Part1 = Mask
  229. Weld.C1 = CFrame.new(0, -0.1, 0.8)
  230.  
  231. local M1 = Instance.new("SpecialMesh")
  232. M1.Parent = Mask
  233. M1.MeshId = "http://www.roblox.com/asset/?id=62679079"
  234. M1.Scale = Vector3.new( 1, 1, 2)
  235. ----------------------------------------------------------
  236. local Hood = Instance.new("Part", char)
  237. Hood.Name = "Hood"
  238. Hood.CanCollide = false
  239. Hood.BrickColor = BrickColor.new("Brown")
  240. Hood.Transparency = 0
  241. Hood.Material = "Plastic"
  242. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  243. Hood.TopSurface = Enum.SurfaceType.Smooth
  244. Hood.BottomSurface = Enum.SurfaceType.Smooth
  245.  
  246. local Weld = Instance.new("Weld", Hood)
  247. Weld.Part0 = char.Head
  248. Weld.Part1 = Hood
  249. Weld.C1 = CFrame.new(0, -0.2, 0)
  250.  
  251. local M2 = Instance.new("SpecialMesh")
  252. M2.Parent = Hood
  253. M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
  254. M2.Scale = Vector3.new( 1, 1.2, 1.1)
  255.  
  256. CV="Really red"
  257.  
  258. local txt = Instance.new("BillboardGui", char)
  259. txt.Adornee = char .Head
  260. txt.Name = "_status"
  261. txt.Size = UDim2.new(2, 0, 1.2, 0)
  262. txt.StudsOffset = Vector3.new(-9, 8, 0)
  263. local text = Instance.new("TextLabel", txt)
  264. text.Size = UDim2.new(10, 0, 7, 0)
  265. text.FontSize = "Size24"
  266. text.TextScaled = true
  267. text.TextTransparency = 0
  268. text.BackgroundTransparency = 1
  269. text.TextTransparency = 0
  270. text.TextStrokeTransparency = 0
  271. text.Font = "Antique"
  272. text.TextStrokeColor3 = Color3.new(0,0,0)
  273.  
  274. v=Instance.new("Part")
  275. v.Name = "ColorBrick"
  276. v.Parent=plr.Character
  277. v.FormFactor="Symmetric"
  278. v.Anchored=true
  279. v.CanCollide=false
  280. v.BottomSurface="Smooth"
  281. v.TopSurface="Smooth"
  282. v.Size=Vector3.new(10,5,3)
  283. v.Transparency=1
  284. v.CFrame=char.Torso.CFrame
  285. v.BrickColor=BrickColor.new(CV)
  286. v.Transparency=1
  287. text.TextColor3 = Color3.new(255,0,0)
  288. v.Shape="Block"
  289. text.Text = "Soviet Officer..."
  290.  
  291. local s = Instance.new("Sound",char)
  292. s.SoundId = "http://www.roblox.com/asset/?id=415880409"
  293. s.Pitch = 0.98
  294. s.Volume = math.huge
  295. s.Looped = false
  296. wait(0.1)
  297. s:play()
  298.  
  299. local s2 = Instance.new("Sound",char)
  300. s2.SoundId = "http://www.roblox.com/asset/?id=320815294"
  301. s2.Pitch = 1
  302. s2.Volume = math.huge
  303. s2.Looped = true
  304. wait(0.1)
  305. s2:play()
  306.  
  307.  
  308. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  309. local NEWMESH = IT(MESH)
  310. if MESH == "SpecialMesh" then
  311. NEWMESH.MeshType = MESHTYPE
  312. if MESHID ~= "nil" and MESHID ~= "" then
  313. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  314. end
  315. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  316. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  317. end
  318. end
  319. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  320. NEWMESH.Scale = SCALE
  321. NEWMESH.Parent = PARENT
  322. return NEWMESH
  323. end
  324.  
  325. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  326. local NEWPART = IT("Part")
  327. NEWPART.formFactor = FORMFACTOR
  328. NEWPART.Reflectance = REFLECTANCE
  329. NEWPART.Transparency = TRANSPARENCY
  330. NEWPART.CanCollide = false
  331. NEWPART.Locked = true
  332. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  333. NEWPART.Name = NAME
  334. NEWPART.Size = SIZE
  335. NEWPART.Position = Torso.Position
  336. NEWPART.Material = MATERIAL
  337. NEWPART:BreakJoints()
  338. NEWPART.Parent = PARENT
  339. return NEWPART
  340. end
  341.  
  342.  
  343. function EndTheWorldBaby() --World End
  344. s2:Stop()
  345. local moosick2 = Instance.new("Sound",Character)
  346. moosick2.SoundId = "rbxassetid://320815294" --music
  347. --751746850, 741908765
  348. moosick2.Looped = true
  349. moosick2.Pitch = 1
  350. moosick2.Volume = 666
  351. moosick2:Play()
  352.  
  353. Mask.Transparency = 1
  354. Orbvc.Transparency = 1
  355. Orbd.Transparency = 1
  356.  
  357. IT = Instance.new
  358. CF = CFrame.new
  359. VT = Vector3.new
  360. RAD = math.rad
  361. C3 = Color3.new
  362. UD2 = UDim2.new
  363. BRICKC = BrickColor.new
  364. ANGLES = CFrame.Angles
  365. EULER = CFrame.fromEulerAnglesXYZ
  366. COS = math.cos
  367. ACOS = math.acos
  368. SIN = math.sin
  369. ASIN = math.asin
  370. ABS = math.abs
  371. MRANDOM = math.random
  372. FLOOR = math.floor
  373.  
  374.  
  375. local EyeSizes={
  376. NumberSequenceKeypoint.new(0,0.65,0),
  377. NumberSequenceKeypoint.new(0.5,0.7,0),
  378. NumberSequenceKeypoint.new(1,0,0)
  379. }
  380. local EyeTrans={
  381. NumberSequenceKeypoint.new(0,0,0),
  382. NumberSequenceKeypoint.new(0.5,0,0),
  383. NumberSequenceKeypoint.new(1,1,0)
  384. }
  385. local PE22=Instance.new("ParticleEmitter", la)
  386. PE22.LightEmission=.9
  387. PE22.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
  388. PE22.Size=NumberSequence.new(EyeSizes)
  389. PE22.Transparency=NumberSequence.new(EyeTrans)
  390. PE22.Lifetime=NumberRange.new(0.35)
  391. PE22.Rotation=NumberRange.new(0,360)
  392. PE22.Rate=999
  393. PE22.VelocitySpread = 10000
  394. PE22.Acceleration = Vector3.new(0,25,0)
  395. PE22.ZOffset = 0.5
  396. PE22.Drag = 0
  397. PE22.Speed = NumberRange.new(0,0,0)
  398. PE22.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  399. PE22.Name = "PE22"
  400. PE22.Enabled = true
  401. PE22.LockedToPart = true
  402.  
  403. local EyeSizes={
  404. NumberSequenceKeypoint.new(0,0.65,0),
  405. NumberSequenceKeypoint.new(0.5,0.7,0),
  406. NumberSequenceKeypoint.new(1,0,0)
  407. }
  408. local EyeTrans={
  409. NumberSequenceKeypoint.new(0,0,0),
  410. NumberSequenceKeypoint.new(0.5,0,0),
  411. NumberSequenceKeypoint.new(1,1,0)
  412. }
  413. local PE2=Instance.new("ParticleEmitter", ra)
  414. PE2.LightEmission=.9
  415. PE2.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
  416. PE2.Size=NumberSequence.new(EyeSizes)
  417. PE2.Transparency=NumberSequence.new(EyeTrans)
  418. PE2.Lifetime=NumberRange.new(0.35)
  419. PE2.Rotation=NumberRange.new(0,360)
  420. PE2.Rate=999
  421. PE2.VelocitySpread = 10000
  422. PE2.Acceleration = Vector3.new(0,25,0)
  423. PE2.ZOffset = 0.5
  424. PE2.Drag = 0
  425. PE2.Speed = NumberRange.new(0,0,0)
  426. PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  427. PE2.Name = "PE2"
  428. PE2.Enabled = true
  429. PE2.LockedToPart = true
  430.  
  431.  
  432. local EyeSizes={
  433. NumberSequenceKeypoint.new(0,0.65,0),
  434. NumberSequenceKeypoint.new(0.5,0.7,0),
  435. NumberSequenceKeypoint.new(1,0,0)
  436. }
  437. local EyeTrans={
  438. NumberSequenceKeypoint.new(0,0,0),
  439. NumberSequenceKeypoint.new(0.5,0,0),
  440. NumberSequenceKeypoint.new(1,1,0)
  441. }
  442. local PE3=Instance.new("ParticleEmitter", ll)
  443. PE3.LightEmission=.9
  444. PE3.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
  445. PE3.Size=NumberSequence.new(EyeSizes)
  446. PE3.Transparency=NumberSequence.new(EyeTrans)
  447. PE3.Lifetime=NumberRange.new(0.35)
  448. PE3.Rotation=NumberRange.new(0,360)
  449. PE3.Rate=999
  450. PE3.VelocitySpread = 10000
  451. PE3.Acceleration = Vector3.new(0,25,0)
  452. PE3.ZOffset = 0.5
  453. PE3.Drag = 0
  454. PE3.Speed = NumberRange.new(0,0,0)
  455. PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  456. PE3.Name = "PE3"
  457. PE3.Enabled = true
  458. PE3.LockedToPart = true
  459.  
  460. local EyeSizes={
  461. NumberSequenceKeypoint.new(0,0.65,0),
  462. NumberSequenceKeypoint.new(0.5,0.7,0),
  463. NumberSequenceKeypoint.new(1,0,0)
  464. }
  465. local EyeTrans={
  466. NumberSequenceKeypoint.new(0,0,0),
  467. NumberSequenceKeypoint.new(0.5,0,0),
  468. NumberSequenceKeypoint.new(1,1,0)
  469. }
  470. local PE4=Instance.new("ParticleEmitter", rl)
  471. PE4.LightEmission=.9
  472. PE4.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
  473. PE4.Size=NumberSequence.new(EyeSizes)
  474. PE4.Transparency=NumberSequence.new(EyeTrans)
  475. PE4.Lifetime=NumberRange.new(0.35)
  476. PE4.Rotation=NumberRange.new(0,360)
  477. PE4.Rate=999
  478. PE4.VelocitySpread = 10000
  479. PE4.Acceleration = Vector3.new(0,25,0)
  480. PE4.ZOffset = 0.5
  481. PE4.Drag = 0
  482. PE4.Speed = NumberRange.new(0,0,0)
  483. PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds"
  484. PE4.Name = "PE4"
  485. PE4.Enabled = true
  486. PE4.LockedToPart = true
  487.  
  488.  
  489. Reaper2 = Instance.new("Model")
  490. Reaper2.Parent = plr.Character
  491. Reaper2.Name = "Reaper2"
  492. rh2 = Instance.new("Part")
  493. rh2.Parent = Reaper2
  494. rh2.Locked = true
  495. rh2.CanCollide = false
  496. mesh2 = Instance.new("SpecialMesh")
  497. rh2.formFactor = "Symmetric"
  498. mesh2.MeshType = "FileMesh"
  499. mesh2.MeshId = "http://www.roblox.com/asset/?id=74220237"
  500. mesh2.TextureId = "http://www.roblox.com/asset/?id=74220223"
  501. mesh2.Parent = rh2
  502. local weld2 = Instance.new("Weld")
  503. weld2.Parent = rh2
  504. rh2.Transparency = 0
  505. weld2.Part0 = rh2
  506. weld2.Part1 = plr.Character.Head
  507. weld2.C0 = CFrame.new(-0, 0.4, 0.04)*CFrame.Angles(0, 0, 0)
  508.  
  509. Head.face.Texture = "http://www.roblox.com/asset/?id=1181097155" --Head.face
  510.  
  511. Reaper4 = Instance.new("Model")
  512. Reaper4.Parent = Character
  513. Reaper4.Name = "Reaper4"
  514. rh4 = Instance.new("Part")
  515. rh4.Parent = Reaper4
  516. --[[rh4.BrickColor = BrickColor.new("Royal purple")]]--
  517. rh4.Locked = true
  518. rh4.CanCollide = false
  519. mesh4 = Instance.new("SpecialMesh")
  520. rh4.formFactor = "Symmetric"
  521. mesh4.MeshType = "FileMesh"
  522. mesh4.MeshId = "http://www.roblox.com/asset/?id=362013001"
  523. mesh4.TextureId = "http://www.roblox.com/asset/?id=362013075"
  524. mesh4.Parent = rh4
  525. local weld4 = Instance.new("Weld")
  526. weld4.Parent = rh4
  527. rh4.Transparency = 0
  528. weld4.Part0 = rh4
  529. weld4.Part1 = Character.Head
  530. weld4.C0 = CFrame.new(0, -0.5, -0.03)*CFrame.Angles(0, 0, 0)
  531. end
  532.  
  533. local m = Instance.new("Model",char)
  534. m.Name = "GaunletModel"
  535.  
  536. local maincolor = BrickColor.new("Really red")
  537. local maincolor2 = BrickColor.new("Really black")
  538.  
  539. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  540. local p = Instance.new("Part")
  541. p.Parent = parent
  542. p.Size = Vector3.new(1,1,1)
  543. p.Transparency = transparency
  544. p.Reflectance = reflectance
  545. p.CanCollide = false
  546. p.BrickColor = brickcolor
  547. p.Material = material
  548. return p
  549. end
  550.  
  551. for i,v in pairs(char:children()) do
  552. if v:IsA("Hat") then
  553. v:Destroy()
  554. end
  555. end
  556. for i,v in pairs(char:children()) do
  557. if v:IsA("Accessory") then
  558. v:Destroy()
  559. end
  560. end
  561. for i,v in pairs(char:children()) do
  562. if v:IsA("Hair") then
  563. v:Destroy()
  564. end
  565. end
  566.  
  567. function CreateMesh(parent,meshtype,x1,y1,z1)
  568. local mesh = Instance.new("SpecialMesh",parent)
  569. mesh.MeshType = meshtype
  570. mesh.Scale = Vector3.new(x1,y1,z1)
  571. return mesh
  572. end
  573.  
  574. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  575. local mesh = Instance.new("SpecialMesh",parent)
  576. mesh.MeshType = "SpecialMesh"
  577. mesh.MeshId = meshid
  578. mesh.Scale = Vector3.new(x1,y1,z1)
  579. return mesh
  580. end
  581.  
  582. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  583. local mesh = Instance.new("SpecialMesh",parent)
  584. mesh.MeshType = "FileMesh"
  585. mesh.MeshId = meshid
  586. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  587. mesh.Scale = Vector3.new(x1,y1,z1)
  588. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  589. return mesh
  590. end
  591.  
  592. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  593. local weld = Instance.new("Weld")
  594. weld.Parent = parent
  595. weld.Part0 = part0
  596. weld.Part1 = part1
  597. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  598. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  599. return weld
  600. end
  601.  
  602. local llegw = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  603. CreateWeld(llegw,lleg,llegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  604. local rlegw = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  605. CreateWeld(rlegw,rleg,rlegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  606.  
  607. local sorb = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  608. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  609. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",maincolor2)
  610. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  611.  
  612. ---- Right arm
  613. local handle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  614. CreateMesh(handle,"Brick",1.05,1.5,1.05)
  615. CreateWeld(handle,rarm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  616. local lowhandle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  617. CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
  618. CreateWeld(lowhandle,rarm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  619. local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
  620. CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
  621. CreateWeld(lowhandleo,rarm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  622. local handleg = CreatePart(m,0,0,"Neon",maincolor)
  623. CreateMesh(handleg,"Brick",1.025,1.5,1.025)
  624. CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  625. local handleo = CreatePart(m,0,0,"Neon",maincolor)
  626. CreateMesh(handleo,"Brick",0.5,0.85,1.085)
  627. CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  628. local handleo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  629. CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
  630. CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  631. local zi = CreatePart(m,0,0,"Neon",maincolor)
  632. CreateMesh(zi,"Brick",0.025,1.525,1.1)
  633. CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  634.  
  635. local to = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  636. CreateMesh(to,"Brick",0.5,1.5,0.5)
  637. CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  638. local tl = CreatePart(m,0,0,"Neon",maincolor)
  639. CreateMesh(tl,"Brick",0.6,1.45,0.6)
  640. CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  641.  
  642. local zo = CreatePart(m,0,0,"Neon",maincolor)
  643. CreateMesh(zo,"Brick",0.565,0.025,1.1)
  644. CreateWeld(zo,handle,zo,-0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  645. local zoa = CreatePart(m,0,0,"Neon",maincolor)
  646. CreateMesh(zoa,"Brick",0.565,0.025,1.1)
  647. CreateWeld(zoa,handle,zoa,-0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  648. local zob = CreatePart(m,0,0,"Neon",maincolor)
  649. CreateMesh(zob,"Brick",0.565,0.025,1.1)
  650. CreateWeld(zob,handle,zob,-0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  651. local zz = CreatePart(m,0,0,"Neon",maincolor)
  652. CreateMesh(zz,"Brick",0.3,0.3,0.3)
  653. CreateWeld(zz,zoa,zz,-0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  654. local zzo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  655. CreateMesh(zzo,"Brick",0.315,0.275,0.275)
  656. CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  657.  
  658. local li = CreatePart(m,0,0,"Neon",maincolor)
  659. CreateMesh(li,"Brick",0.275,0.825,0.025)
  660. CreateWeld(li,handleo,li,-0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  661.  
  662. local li1 = CreatePart(m,0,0,"Neon",maincolor)
  663. CreateMesh(li1,"Brick",0.275,0.825,0.025)
  664. CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  665. local li2 = CreatePart(m,0,0,"Neon",maincolor)
  666. CreateMesh(li2,"Brick",0.275,0.825,0.025)
  667. CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  668.  
  669. local di = CreatePart(m,0,0,"Neon",maincolor)
  670. CreateMesh(di,"Brick",0.3,0.3,0.3)
  671. CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  672.  
  673. local di1 = CreatePart(m,0,0,"Neon",maincolor)
  674. CreateMesh(di1,"Brick",0.3,0.15,0.15)
  675. CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  676. local di2 = CreatePart(m,0,0,"Neon",maincolor)
  677. CreateMesh(di2,"Brick",0.3,0.15,0.15)
  678. CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  679. local di3 = CreatePart(m,0,0,"Neon",maincolor)
  680. CreateMesh(di3,"Brick",0.3,0.15,0.15)
  681. CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  682. local di4 = CreatePart(m,0,0,"Neon",maincolor)
  683. CreateMesh(di4,"Brick",0.3,0.15,0.15)
  684. CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  685. local dio = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  686. CreateMesh(dio,"Brick",0.325,0.275,0.275)
  687. CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  688. local dio1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  689. CreateMesh(dio1,"Brick",0.325,0.125,0.125)
  690. CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691. local dio2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  692. CreateMesh(dio2,"Brick",0.325,0.125,0.125)
  693. CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  694. local dio3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  695. CreateMesh(dio3,"Brick",0.325,0.125,0.125)
  696. CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  697. local dio4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  698. CreateMesh(dio4,"Brick",0.325,0.125,0.125)
  699. CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  700.  
  701. local sq1 = CreatePart(m,0,0,"Neon",maincolor)
  702. CreateMesh(sq1,"Brick",0.3,0.125,0.125)
  703. CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  704. local sq2 = CreatePart(m,0,0,"Neon",maincolor)
  705. CreateMesh(sq2,"Brick",0.3,0.125,0.125)
  706. CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  707. local sq3 = CreatePart(m,0,0,"Neon",maincolor)
  708. CreateMesh(sq3,"Brick",0.3,0.125,0.125)
  709. CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  710. local sq4 = CreatePart(m,0,0,"Neon",maincolor)
  711. CreateMesh(sq4,"Brick",0.3,0.125,0.125)
  712. CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  713.  
  714. local sqo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  715. CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
  716. CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  717. local sqo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  718. CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
  719. CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  720. local sqo3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  721. CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
  722. CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  723. local sqo4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  724. CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
  725. CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  726.  
  727. local locl = CreatePart(m,0,0,"Neon",maincolor)
  728. CreateMesh(locl,"Brick",0.1,0.1,0.1)
  729. CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  730.  
  731. local dil = CreatePart(m,0,0,"Neon",maincolor)
  732. CreateMesh(dil,"Brick",0.45,0.45,0.3)
  733. CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  734.  
  735. local dil1 = CreatePart(m,0,0,"Neon",maincolor)
  736. CreateMesh(dil1,"Brick",0.225,0.225,0.3)
  737. CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  738. local dil2 = CreatePart(m,0,0,"Neon",maincolor)
  739. CreateMesh(dil2,"Brick",0.225,0.225,0.3)
  740. CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  741.  
  742. local dilo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  743. CreateMesh(dilo,"Brick",0.375,0.375,0.315)
  744. CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  745. local dilo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  746. CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
  747. CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  748. local dilo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  749. CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
  750. CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  751.  
  752. local locr = CreatePart(m,0,0,"Neon",maincolor)
  753. CreateMesh(locr,"Brick",0.1,0.1,0.1)
  754. CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  755.  
  756. local dir = CreatePart(m,0,0,"Neon",maincolor)
  757. CreateMesh(dir,"Brick",0.45,0.45,0.3)
  758. CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  759.  
  760. local dir1 = CreatePart(m,0,0,"Neon",maincolor)
  761. CreateMesh(dir1,"Brick",0.225,0.225,0.3)
  762. CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  763. local dir2 = CreatePart(m,0,0,"Neon",maincolor)
  764. CreateMesh(dir2,"Brick",0.225,0.225,0.3)
  765. CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  766.  
  767. local diro = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  768. CreateMesh(diro,"Brick",0.375,0.375,0.315)
  769. CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  770. local diro1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  771. CreateMesh(diro1,"Brick",0.175,0.175,0.315)
  772. CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  773. local diro2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  774. CreateMesh(diro2,"Brick",0.175,0.175,0.315)
  775. CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  776.  
  777. ---- Left arm
  778. local handle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  779. CreateMesh(handle,"Brick",1.05,1.5,1.05)
  780. CreateWeld(handle,larm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  781. local lowhandle = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  782. CreateMesh(lowhandle,"Brick",1.025,0.3,1.025)
  783. CreateWeld(lowhandle,larm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  784. local lowhandleo = CreatePart(m,0,0,"Neon",maincolor)
  785. CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02)
  786. CreateWeld(lowhandleo,larm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  787. local handleg = CreatePart(m,0,0,"Neon",maincolor)
  788. CreateMesh(handleg,"Brick",1.025,1.5,1.025)
  789. CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  790. local handleo = CreatePart(m,0,0,"Neon",maincolor)
  791. CreateMesh(handleo,"Brick",0.5,0.85,1.085)
  792. CreateWeld(handleo,handle,handleo,0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  793. local handleo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  794. CreateMesh(handleo2,"Brick",0.5,0.8,1.09)
  795. CreateWeld(handleo2,handle,handleo2,0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  796. local zi = CreatePart(m,0,0,"Neon",maincolor)
  797. CreateMesh(zi,"Brick",0.025,1.525,1.1)
  798. CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  799.  
  800. local to = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  801. CreateMesh(to,"Brick",0.5,1.5,0.5)
  802. CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  803. local tl = CreatePart(m,0,0,"Neon",maincolor)
  804. CreateMesh(tl,"Brick",0.6,1.45,0.6)
  805. CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  806.  
  807. local zo = CreatePart(m,0,0,"Neon",maincolor)
  808. CreateMesh(zo,"Brick",0.565,0.025,1.1)
  809. CreateWeld(zo,handle,zo,0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  810. local zoa = CreatePart(m,0,0,"Neon",maincolor)
  811. CreateMesh(zoa,"Brick",0.565,0.025,1.1)
  812. CreateWeld(zoa,handle,zoa,0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  813. local zob = CreatePart(m,0,0,"Neon",maincolor)
  814. CreateMesh(zob,"Brick",0.565,0.025,1.1)
  815. CreateWeld(zob,handle,zob,0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  816. local zz = CreatePart(m,0,0,"Neon",maincolor)
  817. CreateMesh(zz,"Brick",0.3,0.3,0.3)
  818. CreateWeld(zz,zoa,zz,0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  819. local zzo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  820. CreateMesh(zzo,"Brick",0.315,0.275,0.275)
  821. CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  822.  
  823. local li = CreatePart(m,0,0,"Neon",maincolor)
  824. CreateMesh(li,"Brick",0.275,0.825,0.025)
  825. CreateWeld(li,handleo,li,0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  826.  
  827. local li1 = CreatePart(m,0,0,"Neon",maincolor)
  828. CreateMesh(li1,"Brick",0.275,0.825,0.025)
  829. CreateWeld(li1,handleo,li1,0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  830. local li2 = CreatePart(m,0,0,"Neon",maincolor)
  831. CreateMesh(li2,"Brick",0.275,0.825,0.025)
  832. CreateWeld(li2,handleo,li2,0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  833.  
  834. local di = CreatePart(m,0,0,"Neon",maincolor)
  835. CreateMesh(di,"Brick",0.3,0.3,0.3)
  836. CreateWeld(di,handleo,di,0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  837.  
  838. local di1 = CreatePart(m,0,0,"Neon",maincolor)
  839. CreateMesh(di1,"Brick",0.3,0.15,0.15)
  840. CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  841. local di2 = CreatePart(m,0,0,"Neon",maincolor)
  842. CreateMesh(di2,"Brick",0.3,0.15,0.15)
  843. CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  844. local di3 = CreatePart(m,0,0,"Neon",maincolor)
  845. CreateMesh(di3,"Brick",0.3,0.15,0.15)
  846. CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  847. local di4 = CreatePart(m,0,0,"Neon",maincolor)
  848. CreateMesh(di4,"Brick",0.3,0.15,0.15)
  849. CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  850. local dio = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  851. CreateMesh(dio,"Brick",0.325,0.275,0.275)
  852. CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  853. local dio1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  854. CreateMesh(dio1,"Brick",0.325,0.125,0.125)
  855. CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856. local dio2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  857. CreateMesh(dio2,"Brick",0.325,0.125,0.125)
  858. CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859. local dio3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  860. CreateMesh(dio3,"Brick",0.325,0.125,0.125)
  861. CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  862. local dio4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  863. CreateMesh(dio4,"Brick",0.325,0.125,0.125)
  864. CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  865.  
  866. local sq1 = CreatePart(m,0,0,"Neon",maincolor)
  867. CreateMesh(sq1,"Brick",0.3,0.125,0.125)
  868. CreateWeld(sq1,handleo,sq1,0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  869. local sq2 = CreatePart(m,0,0,"Neon",maincolor)
  870. CreateMesh(sq2,"Brick",0.3,0.125,0.125)
  871. CreateWeld(sq2,handleo,sq2,0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  872. local sq3 = CreatePart(m,0,0,"Neon",maincolor)
  873. CreateMesh(sq3,"Brick",0.3,0.125,0.125)
  874. CreateWeld(sq3,handleo,sq3,0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  875. local sq4 = CreatePart(m,0,0,"Neon",maincolor)
  876. CreateMesh(sq4,"Brick",0.3,0.125,0.125)
  877. CreateWeld(sq4,handleo,sq4,0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  878.  
  879. local sqo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  880. CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115)
  881. CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  882. local sqo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  883. CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115)
  884. CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  885. local sqo3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  886. CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115)
  887. CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  888. local sqo4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  889. CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115)
  890. CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  891.  
  892. local locl = CreatePart(m,0,0,"Neon",maincolor)
  893. CreateMesh(locl,"Brick",0.1,0.1,0.1)
  894. CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895.  
  896. local dil = CreatePart(m,0,0,"Neon",maincolor)
  897. CreateMesh(dil,"Brick",0.45,0.45,0.3)
  898. CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  899.  
  900. local dil1 = CreatePart(m,0,0,"Neon",maincolor)
  901. CreateMesh(dil1,"Brick",0.225,0.225,0.3)
  902. CreateWeld(dil1,dil,dil1,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  903. local dil2 = CreatePart(m,0,0,"Neon",maincolor)
  904. CreateMesh(dil2,"Brick",0.225,0.225,0.3)
  905. CreateWeld(dil2,dil,dil2,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  906.  
  907. local dilo = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  908. CreateMesh(dilo,"Brick",0.375,0.375,0.315)
  909. CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  910. local dilo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  911. CreateMesh(dilo1,"Brick",0.175,0.175,0.315)
  912. CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  913. local dilo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  914. CreateMesh(dilo2,"Brick",0.175,0.175,0.315)
  915. CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  916.  
  917. local locr = CreatePart(m,0,0,"Neon",maincolor)
  918. CreateMesh(locr,"Brick",0.1,0.1,0.1)
  919. CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  920.  
  921. local dir = CreatePart(m,0,0,"Neon",maincolor)
  922. CreateMesh(dir,"Brick",0.45,0.45,0.3)
  923. CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  924.  
  925. local dir1 = CreatePart(m,0,0,"Neon",maincolor)
  926. CreateMesh(dir1,"Brick",0.225,0.225,0.3)
  927. CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  928. local dir2 = CreatePart(m,0,0,"Neon",maincolor)
  929. CreateMesh(dir2,"Brick",0.225,0.225,0.3)
  930. CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  931.  
  932. local diro = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  933. CreateMesh(diro,"Brick",0.375,0.375,0.315)
  934. CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  935. local diro1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  936. CreateMesh(diro1,"Brick",0.175,0.175,0.315)
  937. CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  938. local diro2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2)
  939. CreateMesh(diro2,"Brick",0.175,0.175,0.315)
  940. CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  941.  
  942. Player=game:GetService("Players").LocalPlayer
  943. Character=Player.Character
  944. PlayerGui=Player.PlayerGui
  945. Backpack=Player.Backpack
  946. Torso=Character.Torso
  947. Head=Character.Head
  948. Humanoid=Character.Humanoid
  949. m=Instance.new('Model',Character)
  950. LeftArm=Character["Left Arm"]
  951. LeftLeg=Character["Left Leg"]
  952. RightArm=Character["Right Arm"]
  953. RightLeg=Character["Right Leg"]
  954. LS=Torso["Left Shoulder"]
  955. LH=Torso["Left Hip"]
  956. RS=Torso["Right Shoulder"]
  957. RH=Torso["Right Hip"]
  958. Face = Head.face
  959. Neck=Torso.Neck
  960. it=Instance.new
  961. attacktype=1
  962. vt=Vector3.new
  963. cf=CFrame.new
  964. euler=CFrame.fromEulerAnglesXYZ
  965. angles=CFrame.Angles
  966. cloaked=false
  967. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  968. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  969. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  970. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  971. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  972. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  973. RootPart=Character.HumanoidRootPart
  974. RootJoint=RootPart.RootJoint
  975. RootCF=euler(-1.57,0,3.14)
  976. attack = false
  977. attackdebounce = false
  978. deb=false
  979. equipped=true
  980. hand=false
  981. MMouse=nil
  982. combo=0
  983. mana=0
  984. trispeed=.2
  985. attackmode='none'
  986. local idle=0
  987. local Anim="Idle"
  988. local Effects={}
  989. local gun=false
  990. local shoot=false
  991. local sine = 0
  992. local change = 1
  993. player=nil
  994.  
  995. mouse=Player:GetMouse()
  996. --save shoulders
  997. RSH, LSH=nil, nil
  998. --welds
  999. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1000. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1001. LH=Torso["Left Hip"]
  1002. RH=Torso["Right Hip"]
  1003. TorsoColor=Torso.BrickColor
  1004. function NoOutline(Part)
  1005. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1006. end
  1007. player=Player
  1008. ch=Character
  1009. RSH=ch.Torso["Right Shoulder"]
  1010. LSH=ch.Torso["Left Shoulder"]
  1011. --
  1012. RSH.Parent=nil
  1013. LSH.Parent=nil
  1014. --
  1015. RW.Name="Right Shoulder"
  1016. RW.Part0=ch.Torso
  1017. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1018. RW.C1=cf(0, 0.5, 0)
  1019. RW.Part1=ch["Right Arm"]
  1020. RW.Parent=ch.Torso
  1021. --
  1022. LW.Name="Left Shoulder"
  1023. LW.Part0=ch.Torso
  1024. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1025. LW.C1=cf(0, 0.5, 0)
  1026. LW.Part1=ch["Left Arm"]
  1027. LW.Parent=ch.Torso
  1028.  
  1029. local Stats=Instance.new("BoolValue")
  1030. Stats.Name="Stats"
  1031. Stats.Parent=Character
  1032. local Atk=Instance.new("NumberValue")
  1033. Atk.Name="Damage"
  1034. Atk.Parent=Stats
  1035. Atk.Value=1
  1036. local Def=Instance.new("NumberValue")
  1037. Def.Name="Defense"
  1038. Def.Parent=Stats
  1039. Def.Value=1
  1040. local Speed=Instance.new("NumberValue")
  1041. Speed.Name="Speed"
  1042. Speed.Parent=Stats
  1043. Speed.Value=1
  1044. local Mvmt=Instance.new("NumberValue")
  1045. Mvmt.Name="Movement"
  1046. Mvmt.Parent=Stats
  1047. Mvmt.Value=1
  1048.  
  1049. local donum=0
  1050.  
  1051.  
  1052. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1053. local fp=it("Part")
  1054. fp.formFactor=formfactor
  1055. fp.Parent=parent
  1056. fp.Reflectance=reflectance
  1057. fp.Transparency=transparency
  1058. fp.CanCollide=false
  1059. fp.Locked=true
  1060. fp.BrickColor=brickcolor
  1061. fp.Name=name
  1062. fp.Size=size
  1063. fp.Position=Torso.Position
  1064. NoOutline(fp)
  1065. fp.Material="SmoothPlastic"
  1066. fp:BreakJoints()
  1067. return fp
  1068. end
  1069.  
  1070. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1071. local mesh=it(Mesh)
  1072. mesh.Parent=part
  1073. if Mesh=="SpecialMesh" then
  1074. mesh.MeshType=meshtype
  1075. if meshid~="nil" then
  1076. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1077. end
  1078. end
  1079. mesh.Offset=offset
  1080. mesh.Scale=scale
  1081. return mesh
  1082. end
  1083.  
  1084. function weld(parent,part0,part1,c0)
  1085. local weld=it("Weld")
  1086. weld.Parent=parent
  1087. weld.Part0=part0
  1088. weld.Part1=part1
  1089. weld.C0=c0
  1090. return weld
  1091. end
  1092.  
  1093. local Color1=Torso.BrickColor
  1094.  
  1095. local bodvel=Instance.new("BodyVelocity")
  1096. local bg=Instance.new("BodyGyro")
  1097.  
  1098. function swait(num)
  1099. if num==0 or num==nil then
  1100. game:service'RunService'.Stepped:wait(0)
  1101. else
  1102. for i=0,num do
  1103. game:service'RunService'.Stepped:wait(0)
  1104. end
  1105. end
  1106. end
  1107. p = game.Players.LocalPlayer
  1108. char = p.Character
  1109. local char = p.Character
  1110. torso = char.Torso
  1111. neck = char.Torso.Neck
  1112. hum = char.Humanoid
  1113.  
  1114. so = function(id,par,vol,pit)
  1115. coroutine.resume(coroutine.create(function()
  1116. local sou = Instance.new("Sound",par or workspace)
  1117. sou.Volume=vol
  1118. sou.Pitch=pit or 1
  1119. sou.SoundId=id
  1120. swait()
  1121. sou:play()
  1122. game:GetService("Debris"):AddItem(sou,6)
  1123. end))
  1124. end
  1125.  
  1126. function clerp(a,b,t)
  1127. local qa = {QuaternionFromCFrame(a)}
  1128. local qb = {QuaternionFromCFrame(b)}
  1129. local ax, ay, az = a.x, a.y, a.z
  1130. local bx, by, bz = b.x, b.y, b.z
  1131. local _t = 1-t
  1132. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1133. end
  1134.  
  1135. function QuaternionFromCFrame(cf)
  1136. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1137. local trace = m00 + m11 + m22
  1138. if trace > 0 then
  1139. local s = math.sqrt(1 + trace)
  1140. local recip = 0.5/s
  1141. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1142. else
  1143. local i = 0
  1144. if m11 > m00 then
  1145. i = 1
  1146. end
  1147. if m22 > (i == 0 and m00 or m11) then
  1148. i = 2
  1149. end
  1150. if i == 0 then
  1151. local s = math.sqrt(m00-m11-m22+1)
  1152. local recip = 0.5/s
  1153. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1154. elseif i == 1 then
  1155. local s = math.sqrt(m11-m22-m00+1)
  1156. local recip = 0.5/s
  1157. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1158. elseif i == 2 then
  1159. local s = math.sqrt(m22-m00-m11+1)
  1160. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1161. end
  1162. end
  1163. end
  1164.  
  1165. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1166. local xs, ys, zs = x + x, y + y, z + z
  1167. local wx, wy, wz = w*xs, w*ys, w*zs
  1168. local xx = x*xs
  1169. local xy = x*ys
  1170. local xz = x*zs
  1171. local yy = y*ys
  1172. local yz = y*zs
  1173. local zz = z*zs
  1174. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1175. end
  1176.  
  1177. function QuaternionSlerp(a, b, t)
  1178. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1179. local startInterp, finishInterp;
  1180. if cosTheta >= 0.0001 then
  1181. if (1 - cosTheta) > 0.0001 then
  1182. local theta = math.acos(cosTheta)
  1183. local invSinTheta = 1/math.sin(theta)
  1184. startInterp = math.sin((1-t)*theta)*invSinTheta
  1185. finishInterp = math.sin(t*theta)*invSinTheta
  1186. else
  1187. startInterp = 1-t
  1188. finishInterp = t
  1189. end
  1190. else
  1191. if (1+cosTheta) > 0.0001 then
  1192. local theta = math.acos(-cosTheta)
  1193. local invSinTheta = 1/math.sin(theta)
  1194. startInterp = math.sin((t-1)*theta)*invSinTheta
  1195. finishInterp = math.sin(t*theta)*invSinTheta
  1196. else
  1197. startInterp = t-1
  1198. finishInterp = t
  1199. end
  1200. end
  1201. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1202. end
  1203.  
  1204. local function CFrameFromTopBack(at, top, back)
  1205. local right = top:Cross(back)
  1206. return CFrame.new(at.x, at.y, at.z,
  1207. right.x, top.x, back.x,
  1208. right.y, top.y, back.y,
  1209. right.z, top.z, back.z)
  1210. end
  1211.  
  1212. function Triangle(a, b, c)
  1213. local edg1 = (c-a):Dot((b-a).unit)
  1214. local edg2 = (a-b):Dot((c-b).unit)
  1215. local edg3 = (b-c):Dot((a-c).unit)
  1216. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1217. a, b, c = a, b, c
  1218. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1219. a, b, c = b, c, a
  1220. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1221. a, b, c = c, a, b
  1222. else
  1223. assert(false, "unreachable")
  1224. end
  1225.  
  1226.  
  1227.  
  1228. local len1 = (c-a):Dot((b-a).unit)
  1229. local len2 = (b-a).magnitude - len1
  1230. local width = (a + (b-a).unit*len1 - c).magnitude
  1231.  
  1232. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1233.  
  1234. local list = {}
  1235.  
  1236. if len1 > 0.01 then
  1237. local w1 = Instance.new('WedgePart', m)
  1238. game:GetService("Debris"):AddItem(w1,5)
  1239. w1.Material = "SmoothPlastic"
  1240. w1.FormFactor = 'Custom'
  1241. w1.BrickColor = BrickColor.new("Really red")
  1242. w1.Transparency = 0
  1243. w1.Reflectance = 0
  1244. w1.Material = "SmoothPlastic"
  1245. w1.CanCollide = false
  1246. local l1 = Instance.new("PointLight",w1)
  1247. l1.Color = Color3.new(170,0,0)
  1248. NoOutline(w1)
  1249. local sz = Vector3.new(0.2, width, len1)
  1250. w1.Size = sz
  1251. local sp = Instance.new("SpecialMesh",w1)
  1252. sp.MeshType = "Wedge"
  1253. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1254. w1:BreakJoints()
  1255. w1.Anchored = true
  1256. w1.Parent = workspace
  1257. w1.Transparency = 0.7
  1258. table.insert(Effects,{w1,"Disappear",.01})
  1259. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1260. table.insert(list,w1)
  1261. end
  1262.  
  1263. if len2 > 0.01 then
  1264. local w2 = Instance.new('WedgePart', m)
  1265. game:GetService("Debris"):AddItem(w2,5)
  1266. w2.Material = "SmoothPlastic"
  1267. w2.FormFactor = 'Custom'
  1268. w2.BrickColor = BrickColor.new("Really red")
  1269. w2.Transparency = 0
  1270. w2.Reflectance = 0
  1271. w2.Material = "SmoothPlastic"
  1272. w2.CanCollide = false
  1273. local l2 = Instance.new("PointLight",w2)
  1274. l2.Color = Color3.new(170,0,0)
  1275. NoOutline(w2)
  1276. local sz = Vector3.new(0.2, width, len2)
  1277. w2.Size = sz
  1278. local sp = Instance.new("SpecialMesh",w2)
  1279. sp.MeshType = "Wedge"
  1280. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1281. w2:BreakJoints()
  1282. w2.Anchored = true
  1283. w2.Parent = workspace
  1284. w2.Transparency = 0.7
  1285. table.insert(Effects,{w2,"Disappear",.01})
  1286. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1287. table.insert(list,w2)
  1288. end
  1289. return unpack(list)
  1290. end
  1291.  
  1292.  
  1293. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1294. if hit.Parent==nil then
  1295. return
  1296. end
  1297. h=hit.Parent:FindFirstChild("Humanoid")
  1298. for _,v in pairs(hit.Parent:children()) do
  1299. if v:IsA("Humanoid") then
  1300. h=v
  1301. end
  1302. end
  1303. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1304. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1305. end
  1306. if hit.Parent.className=="Hat" then
  1307. hit=hit.Parent.Parent:findFirstChild("Head")
  1308. end
  1309. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1310. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1311. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1312. return
  1313. end]]
  1314. -- hs(hit,1.2)
  1315. c=Instance.new("ObjectValue")
  1316. c.Name="creator"
  1317. c.Value=game:service("Players").LocalPlayer
  1318. c.Parent=h
  1319. game:GetService("Debris"):AddItem(c,.5)
  1320. Damage=math.random(minim,maxim)
  1321. -- h:TakeDamage(Damage)
  1322. blocked=false
  1323. block=hit.Parent:findFirstChild("Block")
  1324. if block~=nil then
  1325. print(block.className)
  1326. if block.className=="NumberValue" then
  1327. if block.Value>0 then
  1328. blocked=true
  1329. if decreaseblock==nil then
  1330. block.Value=block.Value-1
  1331. end
  1332. end
  1333. end
  1334. if block.className=="IntValue" then
  1335. if block.Value>0 then
  1336. blocked=true
  1337. if decreaseblock~=nil then
  1338. block.Value=block.Value-1
  1339. end
  1340. end
  1341. end
  1342. end
  1343. if blocked==false then
  1344. -- h:TakeDamage(Damage)
  1345. h.Health=h.Health-Damage
  1346. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  1347. else
  1348. h.Health=h.Health-(Damage/2)
  1349. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1350. end
  1351. if Type=="Knockdown" then
  1352. hum=hit.Parent.Humanoid
  1353. hum.PlatformStand=true
  1354. coroutine.resume(coroutine.create(function(HHumanoid)
  1355. swait(1)
  1356. HHumanoid.PlatformStand=false
  1357. end),hum)
  1358. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1359. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1360. local bodvol=Instance.new("BodyVelocity")
  1361. bodvol.velocity=angle*knockback
  1362. bodvol.P=5000
  1363. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1364. bodvol.Parent=hit
  1365. rl=Instance.new("BodyAngularVelocity")
  1366. rl.P=3000
  1367. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1368. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1369. rl.Parent=hit
  1370. game:GetService("Debris"):AddItem(bodvol,.5)
  1371. game:GetService("Debris"):AddItem(rl,.5)
  1372. elseif Type=="Normal" then
  1373. vp=Instance.new("BodyVelocity")
  1374. vp.P=500
  1375. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1376. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1377. if KnockbackType==1 then
  1378. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1379. elseif KnockbackType==2 then
  1380. vp.velocity=Property.CFrame.lookVector*knockback
  1381. end
  1382. if knockback>0 then
  1383. vp.Parent=hit.Parent.Torso
  1384. end
  1385. game:GetService("Debris"):AddItem(vp,.5)
  1386. elseif Type=="Up" then
  1387. local bodyVelocity=Instance.new("BodyVelocity")
  1388. bodyVelocity.velocity=vt(0,60,0)
  1389. bodyVelocity.P=5000
  1390. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1391. bodyVelocity.Parent=hit
  1392. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1393. rl=Instance.new("BodyAngularVelocity")
  1394. rl.P=3000
  1395. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1396. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1397. rl.Parent=hit
  1398. game:GetService("Debris"):AddItem(rl,.5)
  1399. elseif Type=="Snare" then
  1400. bp=Instance.new("BodyPosition")
  1401. bp.P=2000
  1402. bp.D=100
  1403. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1404. bp.position=hit.Parent.Torso.Position
  1405. bp.Parent=hit.Parent.Torso
  1406. game:GetService("Debris"):AddItem(bp,1)
  1407. elseif Type=="Target" then
  1408. if Targetting==false then
  1409. ZTarget=hit.Parent.Torso
  1410. coroutine.resume(coroutine.create(function(Part)
  1411. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1412. swait(5)
  1413. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1414. end),ZTarget)
  1415. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1416. targetgui=Instance.new("BillboardGui")
  1417. targetgui.Parent=ZTarget
  1418. targetgui.Size=UDim2.new(10,100,10,100)
  1419. targ=Instance.new("ImageLabel")
  1420. targ.Parent=targetgui
  1421. targ.BackgroundTransparency=1
  1422. targ.Image="rbxassetid://4834067"
  1423. targ.Size=UDim2.new(1,0,1,0)
  1424. cam.CameraType="Scriptable"
  1425. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1426. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1427. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1428. Targetting=true
  1429. RocketTarget=ZTarget
  1430. for i=1,Property do
  1431. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1432. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1433. swait()
  1434. end
  1435. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1436. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1437. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1438. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1439. end
  1440. Targetting=false
  1441. RocketTarget=nil
  1442. targetgui.Parent=nil
  1443. cam.CameraType="Custom"
  1444. end
  1445. end
  1446. debounce=Instance.new("BoolValue")
  1447. debounce.Name="DebounceHit"
  1448. debounce.Parent=hit.Parent
  1449. debounce.Value=true
  1450. game:GetService("Debris"):AddItem(debounce,Delay)
  1451. c=Instance.new("ObjectValue")
  1452. c.Name="creator"
  1453. c.Value=Player
  1454. c.Parent=h
  1455. game:GetService("Debris"):AddItem(c,.5)
  1456. CRIT=false
  1457. hitDeb=true
  1458. AttackPos=6
  1459. end
  1460. end
  1461.  
  1462. Reaper3 = Instance.new("Model")
  1463. Reaper3.Parent = plr.Character
  1464. Reaper3.Name = "Reaper3"
  1465. rh3 = Instance.new("Part")
  1466. rh3.Parent = Reaper3
  1467. rh3.Locked = true
  1468. rh3.CanCollide = false
  1469. mesh3 = Instance.new("SpecialMesh")
  1470. rh3.formFactor = "Symmetric"
  1471. mesh3.MeshType = "FileMesh"
  1472. mesh3.MeshId = "http://www.roblox.com/asset/?id=15123905"
  1473. mesh3.TextureId = "http://www.roblox.com/asset/?id=15123875"
  1474. mesh3.Parent = rh3
  1475. local weld3 = Instance.new("Weld")
  1476. weld3.Parent = rh3
  1477. rh3.Transparency = 0
  1478. weld3.Part0 = rh3
  1479. weld3.Part1 = p.Character.Head
  1480. weld3.C0 = CFrame.new(-0, -0.6, 0)*CFrame.Angles(0, 0, 0)
  1481.  
  1482. showDamage=function(Char,Dealt,du,Color)
  1483. m=Instance.new("Model")
  1484. m.Name=tostring(Dealt)
  1485. h=Instance.new("Humanoid")
  1486. h.Health=0
  1487. h.MaxHealth=0
  1488. h.Parent=m
  1489. c=Instance.new("Part")
  1490. c.Transparency=0
  1491. c.BrickColor=Color
  1492. c.Transparency = 1
  1493. c.Name="Head"
  1494. c.TopSurface=0
  1495. c.BottomSurface=0
  1496. c.formFactor="Plate"
  1497. c.Size=Vector3.new(1,.4,1)
  1498.  
  1499. local txt = Instance.new("BillboardGui", c)
  1500. txt.Adornee = c
  1501. txt.Name = "_status"
  1502. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1503. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1504. local text = Instance.new("TextLabel", txt)
  1505. text.Size = UDim2.new(10, 0, 7, 0)
  1506. text.FontSize = "Size12"
  1507. text.TextScaled = true
  1508. text.TextTransparency = 0.5
  1509. text.BackgroundTransparency = 1
  1510. text.TextTransparency = 0.5
  1511. text.TextStrokeTransparency = 0.5
  1512. text.Font = "SciFi"
  1513. text.TextStrokeColor3 = Color3.new(0,0,0)
  1514. v=Instance.new("Part")
  1515. v.Name = "ColorBrick"
  1516. v.Parent=c
  1517. v.FormFactor="Symmetric"
  1518. v.Anchored=true
  1519. v.CanCollide=false
  1520. v.BottomSurface="Smooth"
  1521. v.TopSurface="Smooth"
  1522. v.Size=Vector3.new(10,5,3)
  1523. v.Transparency=1
  1524. v.CFrame=c.CFrame
  1525. v.BrickColor=BrickColor.random()
  1526. v.Transparency=1
  1527. text.TextColor3 = maincolor.Color
  1528. v.Shape="Block"
  1529. text.Text = tostring(Dealt)
  1530. ms=Instance.new("CylinderMesh")
  1531. ms.Scale=Vector3.new(.8,.8,.8)
  1532. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1533. local dam = Instance.new("Sound",c)
  1534. local rndm=math.random(1,#hitsounds)
  1535. local r=rndm
  1536. dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
  1537. dam.Volume = 1.25
  1538. dam.Pitch = 1
  1539. dam:Play()
  1540. if CRIT==true then
  1541. ms.Scale=Vector3.new(1,1.25,1)
  1542. end
  1543. ms.Parent=c
  1544. c.Reflectance=0
  1545. Instance.new("BodyGyro").Parent=c
  1546. c.Parent=m
  1547. if Char:findFirstChild("Head")~=nil then
  1548. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1549. elseif Char.Parent:findFirstChild("Head")~=nil then
  1550. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1551. end
  1552. f=Instance.new("BodyPosition")
  1553. f.P=2000
  1554. f.D=100
  1555. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1556. f.position=c.Position+Vector3.new(0,3,0)
  1557. f.Parent=c
  1558. game:GetService("Debris"):AddItem(m,.5+du)
  1559. c.CanCollide=false
  1560. m.Parent=workspace
  1561. c.CanCollide=false
  1562. end
  1563.  
  1564. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1565. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1566. end
  1567.  
  1568. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1569. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1570. prt.Anchored=true
  1571. prt.CFrame=cframe
  1572. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1573. --http://www.roblox.com/asset/?id=4770560
  1574. game:GetService("Debris"):AddItem(prt,2)
  1575. CF=prt.CFrame
  1576. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1577. for i=0,1,0.2 do
  1578. wait()
  1579. Part.CFrame=CF*cf(0,0,-0.4)
  1580. end
  1581. for i=0,1,delay do
  1582. wait()
  1583. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1584. Mesh.Scale=Mesh.Scale
  1585. end
  1586. for i=0,1,0.1 do
  1587. wait()
  1588. Part.Transparency=i
  1589. end
  1590. Part.Parent=nil
  1591. end),prt,msh,CF)
  1592. end
  1593.  
  1594. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1595. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1596. prt.Anchored=true
  1597. prt.Material = "Neon"
  1598. prt.CFrame=cframe
  1599. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1600. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1601. game:GetService("Debris"):AddItem(prt,5)
  1602. coroutine.resume(coroutine.create(function(Part,Mesh)
  1603. for i=0,1,delay do
  1604. swait()
  1605. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1606. Part.Transparency=i
  1607. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1608. end
  1609. Part.Parent=nil
  1610. end),prt,msh)
  1611. end
  1612.  
  1613. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1614. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1615. prt.Anchored=true
  1616. prt.Material = "Neon"
  1617. prt.CFrame=cframe
  1618. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1619. game:GetService("Debris"):AddItem(prt,5)
  1620. coroutine.resume(coroutine.create(function(Part,Mesh)
  1621. local rtype = rottype
  1622. for i=0,1,delay do
  1623. swait()
  1624. if rtype == 1 then
  1625. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1626. elseif rtype == 2 then
  1627. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1628. end
  1629. Part.Transparency=i
  1630. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1631. end
  1632. Part.Parent=nil
  1633. end),prt,msh)
  1634. end
  1635.  
  1636. char.Shirt:Destroy() ---SHIRT SCRIPT HERE PANTS TOO!
  1637. char.Pants:Destroy()
  1638. shirt = Instance.new("Shirt", char)
  1639. shirt.Name = "Shirt"
  1640. pants = Instance.new("Pants", char)
  1641. pants.Name = "Pants"
  1642. char.Shirt.ShirtTemplate = "rbxassetid://817333972"
  1643. char.Pants.PantsTemplate = "rbxassetid://817451408"
  1644.  
  1645. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1646. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1647. prt.Anchored=true
  1648. prt.CFrame=cframe
  1649. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1650. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1651. game:GetService("Debris"):AddItem(prt,5)
  1652. coroutine.resume(coroutine.create(function(Part,Mesh)
  1653. for i=0,1,delay do
  1654. wait()
  1655. Part.Transparency=i
  1656. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1657. end
  1658. Part.Parent=nil
  1659. end),prt,msh)
  1660. end
  1661.  
  1662. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1663. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1664. prt.Anchored=false
  1665. prt.CFrame=cframe
  1666. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1667. local wld=weld(prt,prt,Parent,cframe)
  1668. game:GetService("Debris"):AddItem(prt,5)
  1669. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1670. for i=0,1,delay do
  1671. wait()
  1672. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1673. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1674. Part.Transparency=i
  1675. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1676. end
  1677. Part.Parent=nil
  1678. end),prt,msh,wld)
  1679. end
  1680.  
  1681. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1682. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1683. prt.Anchored=false
  1684. prt.CFrame=cframe
  1685. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1686. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1687. game:GetService("Debris"):AddItem(prt,5)
  1688. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1689. for i=0,1,delay do
  1690. wait()
  1691. Weld.C0=euler(i*20,0,0)
  1692. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1693. Part.Transparency=i
  1694. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1695. end
  1696. Part.Parent=nil
  1697. end),prt,msh,wld)
  1698. end
  1699.  
  1700. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1701. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1702. prt.Anchored=true
  1703. prt.CFrame=cframe
  1704. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1705. game:GetService("Debris"):AddItem(prt,2)
  1706. coroutine.resume(coroutine.create(function(Part,Mesh)
  1707. for i=0,1,delay do
  1708. wait()
  1709. Part.CFrame=Part.CFrame
  1710. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1711. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1712. prt2.Anchored=true
  1713. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1714. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1715. game:GetService("Debris"):AddItem(prt2,2)
  1716. coroutine.resume(coroutine.create(function(Part,Mesh)
  1717. for i=0,1,0.1 do
  1718. wait()
  1719. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1720. end
  1721. Part.Parent=nil
  1722. end),prt2,msh2)
  1723. end
  1724. for i=0,1,delay*2 do
  1725. wait()
  1726. Part.CFrame=Part.CFrame
  1727. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1728. end
  1729. Part.Parent=nil
  1730. end),prt,msh)
  1731. end
  1732.  
  1733. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1734. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1735. prt.Anchored=true
  1736. prt.CFrame=cframe
  1737. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1738. game:GetService("Debris"):AddItem(prt,2)
  1739. coroutine.resume(coroutine.create(function(Part,Mesh)
  1740. for i=0,1,delay do
  1741. wait()
  1742. Part.CFrame=Part.CFrame
  1743. Part.Transparency=i
  1744. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1745. end
  1746. Part.Parent=nil
  1747. end),prt,msh)
  1748. end
  1749.  
  1750. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1751. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1752. prt.Anchored=true
  1753. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1754. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1755. game:GetService("Debris"):AddItem(prt,2)
  1756. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1757. CF=Part.CFrame
  1758. Numbb=0
  1759. randnumb=math.random()/10
  1760. rand1=math.random()/10
  1761. for i=0,1,rand1 do
  1762. wait()
  1763. CF=CF*cf(0,math.random()/2,0)
  1764. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1765. Part.CFrame=CF*euler(Numbb,0,0)
  1766. Part.Transparency=i
  1767. Numbb=Numbb+randnumb
  1768. end
  1769. Part.Parent=nil
  1770. end),prt,CF,Numbb,randnumb)
  1771. end
  1772.  
  1773. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1774. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1775. prt.Anchored=true
  1776. prt.CFrame=cframe
  1777. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1778. game:GetService("Debris"):AddItem(prt,5)
  1779. coroutine.resume(coroutine.create(function(Part,Mesh)
  1780. for i=0,1,delay do
  1781. wait()
  1782. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1783. Part.Transparency=i
  1784. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1785. end
  1786. Part.Parent=nil
  1787. end),prt,msh)
  1788. end
  1789.  
  1790. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1791. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1792. prt.Anchored=true
  1793. prt.CFrame=cframe
  1794. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1795. game:GetService("Debris"):AddItem(prt,2)
  1796. coroutine.resume(coroutine.create(function(Part,Mesh)
  1797. for i=0,1,delay do
  1798. wait()
  1799. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1800. Part.Transparency=i
  1801. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1802. end
  1803. Part.Parent=nil
  1804. end),prt,msh)
  1805. end
  1806.  
  1807. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1808. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1809. prt.Anchored=true
  1810. prt.CFrame=cframe*cf(x,y,z)
  1811. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1812. game:GetService("Debris"):AddItem(prt,5)
  1813. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1814. local num=math.random()
  1815. local num2=math.random(-3,2)+math.random()
  1816. local numm=0
  1817. for i=0,1,delay*2 do
  1818. swait()
  1819. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1820. Part.Transparency=i
  1821. numm=numm+0.01
  1822. end
  1823. Part.Parent=nil
  1824. Mesh.Parent=nil
  1825. end),prt,msh,x,y,z)
  1826. end
  1827.  
  1828. function dmgstart(dmg,what)
  1829. hitcon = what.Touched:connect(function(hit)
  1830. local hum = hit.Parent:FindFirstChild("Humanoid")
  1831. if hum and not hum:IsDescendantOf(Character) then
  1832. hum:TakeDamage(dmg)
  1833. end
  1834. end)
  1835. end
  1836.  
  1837. function dmgstop()
  1838. hitcon:disconnect()
  1839. end
  1840.  
  1841. function Cloak()
  1842. Face.Parent=nil
  1843. cloaked=true
  1844. for _,v in pairs(Torso.Parent:children()) do
  1845. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1846. coroutine.resume(coroutine.create(function()
  1847. for i=0,1,0.2 do
  1848. wait()
  1849. v.Transparency=i
  1850. end
  1851. v.Transparency=1
  1852. end))
  1853. end
  1854. if v.className=="Hat" then
  1855. hatp=v.Handle
  1856. coroutine.resume(coroutine.create(function(derp)
  1857. for i=0,1,0.2 do
  1858. wait()
  1859. derp.Transparency=i
  1860. end
  1861. derp.Transparency=1
  1862. end),hatp)
  1863. end
  1864. end
  1865. for _,v in pairs(m:children()) do
  1866. if v.className=="Part" then
  1867. coroutine.resume(coroutine.create(function()
  1868. for i=0,1,0.2 do
  1869. wait()
  1870. v.Transparency=i
  1871. end
  1872. v.Transparency=1
  1873. end))
  1874. end
  1875. end
  1876. end
  1877.  
  1878. function UnCloak()
  1879. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1880. Face.Parent=Head
  1881. cloaked=false
  1882. for _,v in pairs(Torso.Parent:children()) do
  1883. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1884. coroutine.resume(coroutine.create(function()
  1885. for i=0,1,0.1 do
  1886. wait()
  1887. v.Transparency=v.Transparency-0.1
  1888. end
  1889. v.Transparency=0
  1890. end))
  1891. end
  1892. if v.className=="Hat" then
  1893. hatp=v.Handle
  1894. coroutine.resume(coroutine.create(function(derp)
  1895. for i=0,1,0.1 do
  1896. wait()
  1897. derp.Transparency=derp.Transparency-0.1
  1898. end
  1899. derp.Transparency=0
  1900. end),hatp)
  1901. end
  1902. end
  1903. for _,v in pairs(m:children()) do
  1904. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1905. coroutine.resume(coroutine.create(function()
  1906. for i=0,1,0.1 do
  1907. wait()
  1908. v.Transparency=v.Transparency-0.1
  1909. end
  1910. v.Transparency=0
  1911. end))
  1912. v.Transparency=0
  1913. end
  1914. end
  1915. end
  1916.  
  1917. function laser()
  1918. attack = true
  1919. so("rbxassetid://588738544",sorb,1,1)
  1920. for i = 0,2,0.1 do
  1921. swait()
  1922. MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
  1923. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1924. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1925. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1926. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1927. end
  1928. local a = Instance.new("Part",Character)
  1929. a.BrickColor = maincolor
  1930. a.Name = "Lazer"
  1931. a.Anchored = true
  1932. a.Material = "Neon"
  1933. a.CanCollide = false
  1934. local hitbox = Instance.new("Part",char)
  1935. hitbox.Size = Vector3.new(5,5,5)
  1936. hitbox.CFrame = mouse.hit
  1937. hitbox.Anchored = true
  1938. hitbox.Transparency = 1
  1939. hitbox.CanCollide = false
  1940. local ray = Ray.new(
  1941. sorb.CFrame.p, -- origin
  1942. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  1943. )
  1944. local ignore = Character
  1945. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1946. if hit then
  1947. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1948.  
  1949. if not humanoid then
  1950. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  1951. end
  1952. if humanoid then
  1953. if humanoid.Parent:IsA"Model" then
  1954. Damagefunc(hit,10,15,math.random(10,20),"Normal",RootPart,.2,1)
  1955. end
  1956. end
  1957. end
  1958. a.BottomSurface = 10
  1959. a.TopSurface = 10
  1960. local distance = (sorb.CFrame.p - position).magnitude
  1961. a.Size = Vector3.new(1, 1, distance)
  1962. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1963. game:GetService("Debris"):AddItem(a, 10)
  1964. game:GetService("Debris"):AddItem(hitbox, 1)
  1965. local newmesh = Instance.new("BlockMesh",a)
  1966. so("rbxassetid://553712898",sorb,1,2)
  1967. so("rbxassetid://553712898",sorb,0.5,1.5)
  1968. so("rbxassetid://588737825",sorb,0.05,1)
  1969. MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  1970. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  1971. MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15)
  1972. for i = 0, 19*2 do
  1973. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05/2,-0.05/2,0)
  1974. a.Transparency = a.Transparency + 0.05/2
  1975. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
  1976. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3)
  1977. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  1978. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1979. swait()
  1980. end
  1981. attack = false
  1982. end
  1983.  
  1984. function weaklaser1()
  1985. attack = true
  1986. for i = 0,1,0.1 do
  1987. swait()
  1988. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  1989. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
  1990. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1991. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1992. end
  1993. local a = Instance.new("Part",Character)
  1994. a.BrickColor = maincolor
  1995. a.Name = "Lazer"
  1996. a.Anchored = true
  1997. a.Material = "Neon"
  1998. a.CanCollide = false
  1999. local hitbox = Instance.new("Part",char)
  2000. hitbox.Size = Vector3.new(5,5,5)
  2001. hitbox.CFrame = mouse.hit
  2002. hitbox.Anchored = true
  2003. hitbox.Transparency = 1
  2004. hitbox.CanCollide = false
  2005. local ray = Ray.new(
  2006. sorb.CFrame.p, -- origin
  2007. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  2008. )
  2009. local ignore = Character
  2010. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2011. if hit then
  2012. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  2013.  
  2014. if not humanoid then
  2015. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2016. end
  2017. if humanoid then
  2018. if humanoid.Parent:IsA"Model" then
  2019. Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1)
  2020. end
  2021. end
  2022. end
  2023. a.BottomSurface = 10
  2024. a.TopSurface = 10
  2025. local distance = (sorb.CFrame.p - position).magnitude
  2026. a.Size = Vector3.new(0.85, 0.85, distance)
  2027. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  2028. game:GetService("Debris"):AddItem(a, 10)
  2029. game:GetService("Debris"):AddItem(hitbox, 1)
  2030. local newmesh = Instance.new("BlockMesh",a)
  2031. so("rbxassetid://553712898",sorb,1,2.5)
  2032. so("rbxassetid://553712898",sorb,1,2)
  2033. MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  2034. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  2035. attack = false
  2036. for i = 0, 19 do
  2037. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
  2038. a.Transparency = a.Transparency + 0.05
  2039. swait()
  2040. end
  2041. end
  2042.  
  2043. function weaklaser2()
  2044. attack = true
  2045. for i = 0,1,0.1 do
  2046. swait()
  2047. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  2048. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3)
  2049. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
  2050. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  2051. end
  2052. local a = Instance.new("Part",Character)
  2053. a.BrickColor = maincolor
  2054. a.Name = "Lazer"
  2055. a.Anchored = true
  2056. a.Material = "Neon"
  2057. a.CanCollide = false
  2058. local hitbox = Instance.new("Part",char)
  2059. hitbox.Size = Vector3.new(5,5,5)
  2060. hitbox.CFrame = mouse.hit
  2061. hitbox.Anchored = true
  2062. hitbox.Transparency = 1
  2063. hitbox.CanCollide = false
  2064. local ray = Ray.new(
  2065. sorb2.CFrame.p, -- origin
  2066. (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
  2067. )
  2068. local ignore = Character
  2069. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2070. if hit then
  2071. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  2072.  
  2073. if not humanoid then
  2074. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2075. end
  2076. if humanoid then
  2077. if humanoid.Parent:IsA"Model" then
  2078. Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1)
  2079. end
  2080. end
  2081. end
  2082. a.BottomSurface = 10
  2083. a.TopSurface = 10
  2084. local distance = (sorb2.CFrame.p - position).magnitude
  2085. a.Size = Vector3.new(0.85, 0.85, distance)
  2086. a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  2087. game:GetService("Debris"):AddItem(a, 10)
  2088. game:GetService("Debris"):AddItem(hitbox, 1)
  2089. local newmesh = Instance.new("BlockMesh",a)
  2090. so("rbxassetid://553712898",sorb2,1,2.5)
  2091. so("rbxassetid://553712898",sorb2,1,2)
  2092. MagicBlock(maincolor,sorb2.CFrame,1,1,1,1.5,1.25,1.25,0.15)
  2093. MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05)
  2094. attack = false
  2095. for i = 0, 19 do
  2096. newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0)
  2097. a.Transparency = a.Transparency + 0.05
  2098. swait()
  2099. end
  2100. end
  2101.  
  2102. local smeshmoveenabled = false
  2103.  
  2104. function groundwave()
  2105. attack = true
  2106. smeshmoveenabled = true
  2107. so("rbxassetid://255679384",sorb2,2,0.98)
  2108. for i = 0,10,0.1 do
  2109. swait()
  2110. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2111. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2112. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
  2113. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
  2114. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-90)),.1)
  2115. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.1)
  2116. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.1)
  2117. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
  2118. end
  2119. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,1)
  2120. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,2)
  2121. for i = 0,2,0.1 do
  2122. swait()
  2123. MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
  2124. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2125. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2126. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
  2127. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.3)
  2128. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(70),math.rad(0),math.rad(-90)),.3)
  2129. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.3)
  2130. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(120)), 0.3)
  2131. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  2132. end
  2133. attack = false
  2134. smeshmoveenabled = false
  2135. so("rbxassetid://233091205",sorb2,2.25,0.95)
  2136. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,1)
  2137. MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,2)
  2138. for i = 0, 9 do
  2139. MagicBlock(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,1,1,1,-0.025,10,-0.025,0.065)
  2140. end
  2141. local faceam = 5
  2142. for i = 0, 9 do
  2143. faceam = faceam + 10
  2144. local hitbox = Instance.new("Part",char)
  2145. so("rbxassetid://233091205",hitbox,1,2)
  2146. hitbox.Size = Vector3.new(15,15,15)
  2147. hitbox.Material = "Neon"
  2148. hitbox.BrickColor = maincolor
  2149. hitbox.CFrame = char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*faceam
  2150. hitbox.Anchored = true
  2151. hitbox.Transparency = 1
  2152. hitbox.CanCollide = false
  2153. MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,15,15,-4.5,0.15,math.random(1,2))
  2154. MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,1.5,1.5,0,0.05,math.random(1,2))
  2155. game:GetService("Debris"):AddItem(hitbox, 1)
  2156. hitbox.Touched:connect(function(hit)
  2157. Damagefunc(hit,10,11,math.random(10,20),"Normal",RootPart,.2,1)
  2158. end)
  2159. wait(0.1)
  2160. end
  2161. end
  2162.  
  2163. function smesh()
  2164. attack = true
  2165. smeshmoveenabled = true
  2166. hum.WalkSpeed = 8
  2167. so("rbxassetid://255679384",sorb2,2,0.98)
  2168. for i = 0,10,0.1 do
  2169. swait()
  2170. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2171. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2172. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1)
  2173. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1)
  2174. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-50)),.1)
  2175. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(50)),.1)
  2176. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.1)
  2177. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1)
  2178. end
  2179. for i = 0,2,0.1 do
  2180. swait()
  2181. MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1)
  2182. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2183. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2184. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3)
  2185. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(25 + 5 * math.cos(sine / 32))),.3)
  2186. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(-80)),.3)
  2187. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(35),math.rad(0),math.rad(80)),.3)
  2188. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(35)), 0.3)
  2189. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-170)), 0.3)
  2190. end
  2191. so("rbxassetid://165969964",sorb2,1.5,0.98)
  2192. local hitbox = Instance.new("Part",char)
  2193. hitbox.Size = Vector3.new(20,20,20)
  2194. hitbox.Material = "Neon"
  2195. hitbox.BrickColor = maincolor
  2196. hitbox.CFrame = sorb2.CFrame
  2197. hitbox.Anchored = true
  2198. hitbox.Transparency = 1
  2199. hitbox.CanCollide = false
  2200. game:GetService("Debris"):AddItem(hitbox, 1)
  2201. hitbox.Touched:connect(function(hit)
  2202. Damagefunc(hit,9,18,math.random(10,20),"Normal",RootPart,.2,1)
  2203. end)
  2204. MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.25,1.25,1.25,0.015)
  2205. MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.5,1.5,1.5,0.025)
  2206. MagicBlock(maincolor,sorb2.CFrame,10,10,10,5.5,5.5,5.5,0.15)
  2207. for i = 0, 9 do
  2208. MagicBlock(maincolor,sorb2.CFrame,1,1,1,-0.025,10,-0.025,0.065)
  2209. end
  2210. hum.WalkSpeed = 16
  2211. smeshmoveenabled = false
  2212. attack = false
  2213. end
  2214.  
  2215. local begonemoveenabled = false
  2216.  
  2217. function BEGONETHOT()
  2218. smeshmoveenabled = true
  2219. begonemoveenabled = true
  2220. hum.WalkSpeed = 8
  2221. so("rbxassetid://854345294",sorb2,2.5,1)
  2222. wait(2)
  2223. attack = true
  2224. for i = 0,8,0.1 do
  2225. swait()
  2226. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2227. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2228. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.1)
  2229. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.1)
  2230. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,5 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
  2231. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  2232. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.1)
  2233. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.1)
  2234. end
  2235. for i = 0,2,0.1 do
  2236. swait()
  2237. MagicBlock(maincolor,sorb2.CFrame,1,1,1,2.5,2.5,2.5,0.1)
  2238. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2239. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2240. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3)
  2241. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.3)
  2242. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(0)),.3)
  2243. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2244. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.3)
  2245. LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.3)
  2246. end
  2247. so("rbxassetid://165969964",sorb2,3.5,0.98)
  2248. local hitbox = Instance.new("Part",char)
  2249. hitbox.Size = Vector3.new(75,75,75)
  2250. hitbox.Material = "Neon"
  2251. hitbox.BrickColor = maincolor
  2252. hitbox.CFrame = sorb2.CFrame
  2253. hitbox.Anchored = true
  2254. hitbox.Transparency = 1
  2255. hitbox.CanCollide = false
  2256. game:GetService("Debris"):AddItem(hitbox, 1)
  2257. hitbox.Touched:connect(function(hit)
  2258. Damagefunc(hit,888,1337,math.random(10,20),"Normal",RootPart,.2,1)
  2259. end)
  2260. MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015)
  2261. MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025)
  2262. MagicBlock(maincolor,sorb2.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15)
  2263. for i = 0, 9 do
  2264. MagicBlock(maincolor,sorb2.CFrame,1*2.5,1*2.5,1*2.5,-0.025*2.5,10*2.5,-0.025*2.5,0.065)
  2265. end
  2266. hum.WalkSpeed = 16
  2267. begonemoveenabled = false
  2268. smeshmoveenabled = false
  2269. attack = false
  2270. end
  2271.  
  2272. function doomsdaylaser()
  2273. attack = true
  2274. for i = 0,1,0.1 do
  2275. swait()
  2276. MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1)
  2277. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2278. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3)
  2279. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  2280. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  2281. end
  2282. local a = Instance.new("Part",Character)
  2283. a.BrickColor = maincolor
  2284. a.Name = "Lazer"
  2285. a.Anchored = true
  2286. a.Transparency = 1
  2287. a.Material = "Neon"
  2288. a.CanCollide = false
  2289. local hitbox = Instance.new("Part",char)
  2290. hitbox.Size = Vector3.new(10,10,10)
  2291. hitbox.Material = "Neon"
  2292. hitbox.BrickColor = maincolor
  2293. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  2294. hitbox.Anchored = true
  2295. hitbox.Transparency = 1
  2296. hitbox.CanCollide = false
  2297. local hmesh = CreateMesh(hitbox,"Sphere",1,1,1)
  2298. so("rbxassetid://136007472",sorb,1,0.7)
  2299. for i = 0, 19 do
  2300. swait()
  2301. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  2302. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2303. MagicBlock(maincolor,hitbox.CFrame,10,10,10,1.15,1.15,1.15,0.15)
  2304. hitbox.Transparency = hitbox.Transparency - 0.05
  2305. end
  2306. for i = 0, 49 do
  2307. swait()
  2308. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  2309. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2310. end
  2311. a.Transparency = 0
  2312. local ray = Ray.new(
  2313. hitbox.CFrame.p, -- origin
  2314. (mouse.Hit.p - hitbox.CFrame.p).unit * 500 -- direction
  2315. )
  2316. local ignore = Character
  2317. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2318. if hit then
  2319. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  2320.  
  2321. if not humanoid then
  2322. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2323. end
  2324. if humanoid then
  2325. if humanoid.Parent:IsA"Model" then
  2326. Damagefunc(hit,25,35,math.random(10,20),"Normal",RootPart,.2,1)
  2327. end
  2328. end
  2329. end
  2330. a.BottomSurface = 10
  2331. a.TopSurface = 10
  2332. local distance = (sorb.CFrame.p - position).magnitude
  2333. a.Size = Vector3.new(1, 1, distance)
  2334. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  2335. game:GetService("Debris"):AddItem(a, 15)
  2336. game:GetService("Debris"):AddItem(hitbox, 15)
  2337. local newmesh = Instance.new("BlockMesh",a)
  2338. so("rbxassetid://553712898",sorb,3.5,1)
  2339. so("rbxassetid://553712898",sorb,0.5,0.5)
  2340. so("rbxassetid://588737825",sorb,2.75,1)
  2341. MagicBlock(maincolor,sorb.CFrame,1,1,1,5,5,5,0.15)
  2342. MagicBlock(maincolor,mouse.Hit,1,1,1,2.5,2.5,2.5,0.05)
  2343. MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15)
  2344. local beamscale = 1.5
  2345. local sizemax = 1*10
  2346. for i = 0, 99 do
  2347. hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0)
  2348. sizemax = sizemax - 0.01*10
  2349. beamscale = beamscale - 0.01
  2350. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
  2351. so("rbxassetid://553712898",sorb,0.5,2.5)
  2352. ray = Ray.new(
  2353. hitbox.CFrame.p, -- origin
  2354. (mouse.Hit.p - hitbox.CFrame.p).unit * 2000 -- direction
  2355. )
  2356. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2357. distance = (hitbox.CFrame.p - position).magnitude
  2358. if hit then
  2359. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  2360.  
  2361. if not humanoid then
  2362. humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  2363. end
  2364. if humanoid then
  2365. if humanoid.Parent:IsA"Model" then
  2366. Damagefunc(hit,15,17,math.random(10,20),"Normal",RootPart,.2,1)
  2367. end
  2368. end
  2369. end
  2370. a.Size = Vector3.new(5, 5, distance)
  2371. hmesh.Scale = hmesh.Scale - Vector3.new(0.01,0.01,0.01)
  2372. a.CFrame = CFrame.new(hitbox.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  2373. newmesh.Scale = newmesh.Scale + Vector3.new(-0.01,-0.01,0)
  2374. MagicBlock(maincolor,mouse.Hit,sizemax,sizemax,sizemax,beamscale,beamscale,beamscale,0.05)
  2375. swait()
  2376. end
  2377. attack = false
  2378. end
  2379. local attacktype = 0
  2380. mouse.Button1Down:connect(function()
  2381. if attack == false and attacktype == 0 and begonemoveenabled == false then
  2382. attacktype = 1
  2383. weaklaser1()
  2384. elseif attack == false and attacktype == 1 and begonemoveenabled == false then
  2385. attacktype = 0
  2386. weaklaser2()
  2387. end
  2388. end)
  2389.  
  2390. mouse.KeyDown:connect(function(k)
  2391. if k == "z" and attack == false and begonemoveenabled == false then
  2392. laser()
  2393. end
  2394. if k == "x" and attack == false and begonemoveenabled == false then
  2395. groundwave()
  2396. end
  2397. if k == "g" and attack == false and begonemoveenabled == false then
  2398. EndTheWorldBaby()
  2399. end
  2400. if k == "c" and attack == false and begonemoveenabled == false then
  2401. smesh()
  2402. end
  2403. if k == "v" and attack == false and begonemoveenabled == false then
  2404. doomsdaylaser()
  2405. end
  2406. if k == "p" and attack == false and begonemoveenabled == false then
  2407. BEGONETHOT()
  2408. end
  2409. end)
  2410.  
  2411. Humanoid.Animator.Parent = nil
  2412.  
  2413. attack = true
  2414. hum.WalkSpeed = 0
  2415. hum.MaxHealth = math.huge
  2416. hum.Health = math.huge
  2417. for i = 0,10,0.05 do
  2418. swait()
  2419. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2420. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2421. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.025)
  2422. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.025)
  2423. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(-30),math.rad(0),math.rad(0)),.025)
  2424. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.025)
  2425. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.025)
  2426. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.025)
  2427. end
  2428. MagicBlock(maincolor,t.CFrame,10,10,10,1.5,1.5,1.5,0.025)
  2429. MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.015)
  2430. MagicBlock(maincolor,t.CFrame,10,10,10,1.75,1.75,1.75,0.05)
  2431. MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.076)
  2432. so("rbxassetid://588737825",t,0.5,1)
  2433. so("rbxassetid://588737825",t,0.5,1)
  2434. so("rbxassetid://588698460",t,1,0.5)
  2435. so("rbxassetid://440794203",t,1,1)
  2436. so("rbxassetid://553712898",t,1,0.85)
  2437. so("rbxassetid://553712898",t,1.5,0.5)
  2438. so("rbxassetid://553712898",t,1.5,0.25)
  2439. so("rbxassetid://553712898",t,1.5,0.15)
  2440. for i = 0,10,0.05 do
  2441. swait()
  2442. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2443. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2444. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.125)
  2445. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.025)
  2446. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(20),math.rad(0),math.rad(0)),.125)
  2447. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.125)
  2448. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(85)), 0.125)
  2449. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-85)), 0.125)
  2450. end
  2451. attack = false
  2452. hum.WalkSpeed = 16
  2453. hum.MaxHealth = 250
  2454. hum.Health = 250
  2455.  
  2456. idleanim=.4
  2457. while true do
  2458. swait()
  2459. sine = sine + change
  2460. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2461. local velderp=RootPart.Velocity.y
  2462. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2463. if equipped==true or equipped==false then
  2464. if attack==false then
  2465. idle=idle+1
  2466. else
  2467. idle=0
  2468. end
  2469. if idle>=500 then
  2470. if attack==false then
  2471. --Sheath()
  2472. end
  2473. end
  2474. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2475. Anim="Jump"
  2476. if attack==false then
  2477. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2478. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2479. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2480. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2481. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2482. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  2483. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2484. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2485. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2486. end
  2487. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2488. Anim="Fall"
  2489. if attack==false then
  2490. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  2491. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2492. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2493. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  2494. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2495. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  2496. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2497. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2498. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2499. end
  2500. elseif torvel<1 and hitfloor~=nil then
  2501. Anim="Idle"
  2502. if smeshmoveenabled == false then
  2503. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  2504. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3)
  2505. MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2506. MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15)
  2507. end
  2508. if attack==false then
  2509. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(-5),math.rad(-35)),.3)
  2510. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(5),math.rad(35)),.3)
  2511. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
  2512. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
  2513. end
  2514. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  2515. Anim="Walk"
  2516. if smeshmoveenabled == false then
  2517. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
  2518. LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3)
  2519. MagicBlock(maincolor,llegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
  2520. MagicBlock(maincolor,rlegw.CFrame,1,1,1,0.25,0.25,0.25,0.5)
  2521. MagicBlock(maincolor,llegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
  2522. MagicBlock(maincolor,rlegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15)
  2523. end
  2524. if attack==false then
  2525. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  2526. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2527. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3)
  2528. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3)
  2529. end
  2530. elseif torvel>=22 and hitfloor~=nil then
  2531. Anim="Run"
  2532. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2533. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  2534. if attack==false then
  2535. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  2536. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  2537. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  2538. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  2539. end
  2540. end
  2541. end
  2542. end
Add Comment
Please, Sign In to add comment