Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.07 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. warn'Lunarist Loaded.'
  153. warn'Do not leak this, or else.'
  154. --- its obs smooth af do not touch
  155. plr = game.Players.LocalPlayer
  156. char = plr.Character
  157. hum = char.Humanoid
  158. local cam = game.Workspace.CurrentCamera
  159. t = char.Torso
  160. h = char.Head
  161. ra = char["Right Arm"]
  162. la = char["Left Arm"]
  163. rl = char["Right Leg"]
  164. ll = char["Left Leg"]
  165. tors = char.Torso
  166. lleg = char["Left Leg"]
  167. root = char.HumanoidRootPart
  168. hed = char.Head
  169. rleg = char["Right Leg"]
  170. rarm = char["Right Arm"]
  171. larm = char["Left Arm"]
  172. vt = Vector3.new
  173. bc = BrickColor.new
  174. br = BrickColor.random
  175. it = Instance.new
  176. cf = CFrame.new
  177.  
  178. local sick = Instance.new("Sound",Character)
  179. sick.SoundId = "rbxassetid://1351017179"
  180. sick.Looped = true
  181. sick.Pitch = 1
  182. sick.Volume = 1
  183. sick:Play()
  184.  
  185. function CameraShake(Times, Power)
  186. coroutine.resume(coroutine.create(function()
  187. FV = Instance.new("BoolValue", Character)
  188. FV.Name = "CameraShake"
  189. for ShakeNum=1,Times do
  190. swait()
  191. local ef=Power
  192. if ef>=1 then
  193. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  194. else
  195. ef=Power*10
  196. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  197. end
  198. end
  199. Humanoid.CameraOffset = Vector3.new(0,0,0)
  200. FV:Destroy()
  201. end))
  202. end
  203.  
  204. CamShake=function(Part,Distan,Power,Times)
  205. local de=Part.Position
  206. for i,v in pairs(workspace:children()) do
  207. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  208. for _,c in pairs(v:children()) do
  209. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  210. local Noob=v.Humanoid
  211. if Noob~=nil then
  212. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  213. --[[local ss=script.CamShake:clone()
  214. ss.Parent=Noob
  215. ss.Power.Value=Power
  216. ss.Times.Value=Times
  217. ss.Disabled=false]]
  218. CameraShake(Times, Power)
  219. end
  220. end
  221. end
  222. end
  223. end
  224. end
  225. end
  226.  
  227. function chatfunc(text,color)
  228. local chat = coroutine.wrap(function()
  229. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  230. Character:FindFirstChild("TalkingBillBoard"):destroy()
  231. end
  232. local naeeym2 = Instance.new("BillboardGui",Character)
  233. naeeym2.Size = UDim2.new(0,100,0,40)
  234. naeeym2.StudsOffset = Vector3.new(0,3,0)
  235. naeeym2.Adornee = Character.Head
  236. naeeym2.Name = "TalkingBillBoard"
  237. local tecks2 = Instance.new("TextLabel",naeeym2)
  238. tecks2.BackgroundTransparency = 1
  239. tecks2.BorderSizePixel = 0
  240. tecks2.Text = ""
  241. tecks2.Font = "SciFi"
  242. tecks2.TextSize = 30
  243. tecks2.TextStrokeTransparency = 0
  244. tecks2.TextColor3 = color
  245. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  246. tecks2.Size = UDim2.new(1,0,0.5,0)
  247. local tecks3 = Instance.new("TextLabel",naeeym2)
  248. tecks3.BackgroundTransparency = 1
  249. tecks3.BorderSizePixel = 0
  250. tecks3.Text = ""
  251. tecks3.Font = "SciFi"
  252. tecks3.TextSize = 30
  253. tecks3.TextStrokeTransparency = 0
  254. tecks3.TextColor3 = Color3.new(0,0,0)
  255. tecks3.TextStrokeColor3 = color
  256. tecks3.Size = UDim2.new(1,0,0.5,0)
  257. for i = 1,string.len(text),1 do
  258. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  259. tecks2.Text = string.sub(text,1,i)
  260. tecks3.Text = string.sub(text,1,i)
  261. wait(0.01)
  262. end
  263. wait(1)
  264. local randomrot = math.random(1,2)
  265. if randomrot == 1 then
  266. for i = 1, 50 do
  267. swait()
  268. tecks2.Rotation = tecks2.Rotation - .75
  269. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  270. tecks2.TextTransparency = tecks2.TextTransparency + .04
  271. tecks3.Rotation = tecks2.Rotation + .75
  272. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  273. tecks3.TextTransparency = tecks2.TextTransparency + .04
  274. end
  275. elseif randomrot == 2 then
  276. for i = 1, 50 do
  277. swait()
  278. tecks2.Rotation = tecks2.Rotation + .75
  279. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  280. tecks2.TextTransparency = tecks2.TextTransparency + .04
  281. tecks3.Rotation = tecks2.Rotation - .75
  282. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  283. tecks3.TextTransparency = tecks2.TextTransparency + .04
  284. end
  285. end
  286. naeeym2:Destroy()
  287. end)
  288. chat()
  289. end
  290.  
  291.  
  292. local Create = LoadLibrary("RbxUtility").Create
  293.  
  294. CFuncs = {
  295. ["Part"] = {
  296. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  297. local Part = Create("Part"){
  298. Parent = Parent,
  299. Reflectance = Reflectance,
  300. Transparency = Transparency,
  301. CanCollide = false,
  302. Locked = true,
  303. BrickColor = BrickColor.new(tostring(BColor)),
  304. Name = Name,
  305. Size = Size,
  306. Material = Material,
  307. }
  308. RemoveOutlines(Part)
  309. return Part
  310. end;
  311. };
  312.  
  313. ["Mesh"] = {
  314. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  315. local Msh = Create(Mesh){
  316. Parent = Part,
  317. Offset = OffSet,
  318. Scale = Scale,
  319. }
  320. if Mesh == "SpecialMesh" then
  321. Msh.MeshType = MeshType
  322. Msh.MeshId = MeshId
  323. end
  324. return Msh
  325. end;
  326. };
  327.  
  328. ["Mesh"] = {
  329. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  330. local Msh = Create(Mesh){
  331. Parent = Part,
  332. Offset = OffSet,
  333. Scale = Scale,
  334. }
  335. if Mesh == "SpecialMesh" then
  336. Msh.MeshType = MeshType
  337. Msh.MeshId = MeshId
  338. end
  339. return Msh
  340. end;
  341. };
  342.  
  343. ["Weld"] = {
  344. Create = function(Parent, Part0, Part1, C0, C1)
  345. local Weld = Create("Weld"){
  346. Parent = Parent,
  347. Part0 = Part0,
  348. Part1 = Part1,
  349. C0 = C0,
  350. C1 = C1,
  351. }
  352. return Weld
  353. end;
  354. };
  355.  
  356. ["Sound"] = {
  357. Create = function(id, par, vol, pit)
  358. coroutine.resume(coroutine.create(function()
  359. local S = Create("Sound"){
  360. Volume = vol,
  361. Pitch = pit or 1,
  362. SoundId = id,
  363. Parent = par or workspace,
  364. }
  365. wait()
  366. S:play()
  367. game:GetService("Debris"):AddItem(S, 10)
  368. end))
  369. end;
  370. };
  371.  
  372. ["LongSound"] = {
  373. Create = function(id, par, vol, pit)
  374. coroutine.resume(coroutine.create(function()
  375. local S = Create("Sound"){
  376. Volume = vol,
  377. Pitch = pit or 1,
  378. SoundId = id,
  379. Parent = par or workspace,
  380. }
  381. wait()
  382. S:play()
  383. game:GetService("Debris"):AddItem(S, 30)
  384. end))
  385. end;
  386. };
  387.  
  388. ["ParticleEmitter"] = {
  389. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  390. local fp = Create("ParticleEmitter"){
  391. Parent = Parent,
  392. Color = ColorSequence.new(Color1, Color2),
  393. LightEmission = LightEmission,
  394. Size = Size,
  395. Texture = Texture,
  396. Transparency = Transparency,
  397. ZOffset = ZOffset,
  398. Acceleration = Accel,
  399. Drag = Drag,
  400. LockedToPart = LockedToPart,
  401. VelocityInheritance = VelocityInheritance,
  402. EmissionDirection = EmissionDirection,
  403. Enabled = Enabled,
  404. Lifetime = LifeTime,
  405. Rate = Rate,
  406. Rotation = Rotation,
  407. RotSpeed = RotSpeed,
  408. Speed = Speed,
  409. VelocitySpread = VelocitySpread,
  410. }
  411. return fp
  412. end;
  413. };
  414.  
  415. CreateTemplate = {
  416.  
  417. };
  418. }
  419.  
  420.  
  421.  
  422. New = function(Object, Parent, Name, Data)
  423. local Object = Instance.new(Object)
  424. for Index, Value in pairs(Data or {}) do
  425. Object[Index] = Value
  426. end
  427. Object.Parent = Parent
  428. Object.Name = Name
  429. return Object
  430. end
  431. local halocolor = BrickColor.new("Pastel light blue")
  432. local halocolor2 = BrickColor.new("Cool yellow")
  433. local starcolor = BrickColor.new("Bright yellow")
  434. local lunacolor = BrickColor.new("Navy blue")
  435. local lunacolor2 = BrickColor.new("Bright blue")
  436. local wepcolor = BrickColor.new("Really black")
  437. local m = Instance.new("Model",char)
  438.  
  439. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  440. local p = Instance.new("Part")
  441. p.TopSurface = 0
  442. p.BottomSurface = 0
  443. p.Parent = parent
  444. p.Size = Vector3.new(1,1,1)
  445. p.Transparency = transparency
  446. p.Reflectance = reflectance
  447. p.CanCollide = false
  448. p.Locked = true
  449. p.BrickColor = brickcolor
  450. p.Material = material
  451. return p
  452. end
  453.  
  454. function CreateMesh(parent,meshtype,x1,y1,z1)
  455. local mesh = Instance.new("SpecialMesh",parent)
  456. mesh.MeshType = meshtype
  457. mesh.Scale = Vector3.new(x1,y1,z1)
  458. return mesh
  459. end
  460.  
  461. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  462. local mesh = Instance.new("SpecialMesh",parent)
  463. mesh.MeshType = "FileMesh"
  464. mesh.MeshId = meshid
  465. mesh.Scale = Vector3.new(x1,y1,z1)
  466. return mesh
  467. end
  468.  
  469.  
  470. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  471. local mesh = Instance.new("SpecialMesh",parent)
  472. mesh.MeshType = "FileMesh"
  473. mesh.MeshId = meshid
  474. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  475. mesh.Scale = Vector3.new(x1,y1,z1)
  476. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  477. return mesh
  478. end
  479.  
  480. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  481. local weld = Instance.new("Weld")
  482. weld.Parent = parent
  483. weld.Part0 = part0
  484. weld.Part1 = part1
  485. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  486. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  487. return weld
  488. end
  489.  
  490.  
  491. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  492. CreateWeld(sorb,rarm,sorb,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  493. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  494. CreateWeld(sorb2,larm,sorb2,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  495.  
  496. local ga = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  497. CreateMesh(ga,"Brick",1.05,1.55,1.05)
  498. CreateWeld(ga,rarm,ga,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  499.  
  500. gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  501. CreateMesh(gal,"Brick",1.075,1.575,0.75)
  502. CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  503.  
  504. gal = CreateParta(m,0,0,"Neon",halocolor)
  505. CreateMesh(gal,"Brick",1.0725,1.6,0.775)
  506. CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  507.  
  508. gal = CreateParta(m,0,0,"Neon",halocolor)
  509. CreateMesh(gal,"Brick",0.1,1.25,0.1)
  510. CreateWeld(gal,rarm,gal,-0.495,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  511.  
  512. local gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  513. CreateMesh(gal,"Brick",1.07,1.625,0.8)
  514. CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  515.  
  516.  
  517. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  518. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  519. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  520.  
  521. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  522. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  523. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  524.  
  525.  
  526.  
  527. gan = CreateParta(m,0,0,"Neon",halocolor2)
  528. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  529. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  530.  
  531. gan = CreateParta(m,0,0,"Neon",halocolor2)
  532. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  533. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  534.  
  535. local gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2)
  536. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  537. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  538.  
  539. local star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  540. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  541. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  542. local starl = CreateParta(m,0,0,"SmoothPlastic",starcolor)
  543. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  544. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  545.  
  546. local stara = CreateParta(m,0,0,"SmoothPlastic",starcolor)
  547. CreateSpecialMesh(stara,"http://www.roblox.com/asset/?id=45428961",1.5,2.45,1.5)
  548. CreateWeld(stara,rarm,stara,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  549. local stara1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  550. CreateSpecialMesh(stara1,"http://www.roblox.com/asset/?id=45428961",1.65,2.425,1.65)
  551. CreateWeld(stara1,rarm,stara1,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  552.  
  553. local starb = CreateParta(m,0,0,"SmoothPlastic",starcolor)
  554. CreateSpecialMesh(starb,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25)
  555. CreateWeld(starb,rarm,starb,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  556. local starb1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  557. CreateSpecialMesh(starb1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5)
  558. CreateWeld(starb1,rarm,starb1,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  559.  
  560. local starc = CreateParta(m,0,0,"SmoothPlastic",starcolor)
  561. CreateSpecialMesh(starc,"http://www.roblox.com/asset/?id=45428961",1,2.45,1)
  562. CreateWeld(starc,rarm,starc,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  563. local starc1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  564. CreateSpecialMesh(starc1,"http://www.roblox.com/asset/?id=45428961",1.15,2.425,1.15)
  565. CreateWeld(starc1,rarm,starc1,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  566.  
  567.  
  568. -- First
  569. dot = CreateParta(m,0,0,"Neon",halocolor)
  570. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  571. CreateWeld(dot,rarm,dot,-0.495,0,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  572.  
  573.  
  574. dot = CreateParta(m,0,0,"Neon",halocolor)
  575. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  576. CreateWeld(dot,rarm,dot,-0.495,0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  577.  
  578.  
  579. dot = CreateParta(m,0,0,"Neon",halocolor)
  580. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  581. CreateWeld(dot,rarm,dot,-0.495,0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  582.  
  583. dot = CreateParta(m,0,0,"Neon",halocolor)
  584. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  585. CreateWeld(dot,rarm,dot,-0.495,-0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  586. dot = CreateParta(m,0,0,"Neon",halocolor)
  587. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  588. CreateWeld(dot,rarm,dot,-0.495,-0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  589. dot = CreateParta(m,0,0,"Neon",halocolor)
  590. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  591. CreateWeld(dot,rarm,dot,-0.495,-0.6,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  592. dot = CreateParta(m,0,0,"Neon",halocolor)
  593. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  594. CreateWeld(dot,rarm,dot,-0.495,-0.8,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  595. dot = CreateParta(m,0,0,"Neon",halocolor)
  596. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  597. CreateWeld(dot,rarm,dot,-0.495,-1,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  598.  
  599. --- Second
  600.  
  601. dot = CreateParta(m,0,0,"Neon",halocolor)
  602. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  603. CreateWeld(dot,rarm,dot,-0.495,0,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  604.  
  605.  
  606. dot = CreateParta(m,0,0,"Neon",halocolor)
  607. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  608. CreateWeld(dot,rarm,dot,-0.495,0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  609.  
  610.  
  611. dot = CreateParta(m,0,0,"Neon",halocolor)
  612. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  613. CreateWeld(dot,rarm,dot,-0.495,0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  614.  
  615. dot = CreateParta(m,0,0,"Neon",halocolor)
  616. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  617. CreateWeld(dot,rarm,dot,-0.495,-0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  618. dot = CreateParta(m,0,0,"Neon",halocolor)
  619. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  620. CreateWeld(dot,rarm,dot,-0.495,-0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  621. dot = CreateParta(m,0,0,"Neon",halocolor)
  622. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  623. CreateWeld(dot,rarm,dot,-0.495,-0.6,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  624. dot = CreateParta(m,0,0,"Neon",halocolor)
  625. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  626. CreateWeld(dot,rarm,dot,-0.495,-0.8,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  627. dot = CreateParta(m,0,0,"Neon",halocolor)
  628. CreateMesh(dot,"Sphere",0.1,0.1,0.1)
  629. CreateWeld(dot,rarm,dot,-0.495,-1,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  630.  
  631. -- Third section A
  632.  
  633. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  634. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  635. CreateWeld(dotsec,rarm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  636. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  637. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  638. CreateWeld(dotseca,rarm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  639. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  640. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  641. CreateWeld(dotsecb,rarm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  642.  
  643. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  644. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  645. CreateWeld(dotsec,rarm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  646. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  647. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  648. CreateWeld(dotseca,rarm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  649. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  650. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  651. CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  652.  
  653. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  654. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  655. CreateWeld(dotsec,rarm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  656. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  657. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  658. CreateWeld(dotseca,rarm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  659. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  660. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  661. CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  662.  
  663. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  664. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  665. CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  666. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  667. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  668. CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  669. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  670. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  671. CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  672.  
  673. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  674. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  675. CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  676. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  677. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  678. CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  679. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  680. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  681. CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  682.  
  683. -- Third section B
  684.  
  685. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  686. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  687. CreateWeld(dotsec,rarm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  688. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  689. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  690. CreateWeld(dotseca,rarm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  692. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  693. CreateWeld(dotsecb,rarm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  694.  
  695. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  696. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  697. CreateWeld(dotsec,rarm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  698. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  699. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  700. CreateWeld(dotseca,rarm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  701. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  702. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  703. CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  704.  
  705. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  706. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  707. CreateWeld(dotsec,rarm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  708. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  709. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  710. CreateWeld(dotseca,rarm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  711. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  712. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  713. CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  714.  
  715. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  716. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  717. CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  718. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  719. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  720. CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  721. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  722. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  723. CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  724.  
  725. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  726. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  727. CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  728. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  729. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  730. CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  731. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  732. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  733. CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  734.  
  735.  
  736.  
  737. ---Lines
  738.  
  739.  
  740. gal = CreateParta(m,0,0,"Neon",halocolor)
  741. CreateMesh(gal,"Brick",0.05,0.95,0.075)
  742. CreateWeld(gal,rarm,gal,0,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  743.  
  744. gal = CreateParta(m,0,0,"Neon",halocolor)
  745. CreateMesh(gal,"Brick",0.05,0.95,0.075)
  746. CreateWeld(gal,rarm,gal,0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  747.  
  748. gal = CreateParta(m,0,0,"Neon",halocolor)
  749. CreateMesh(gal,"Brick",0.05,0.95,0.075)
  750. CreateWeld(gal,rarm,gal,-0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  751.  
  752. gala = CreateParta(m,0,0,"Neon",halocolor)
  753. CreateMesh(gala,"Brick",0.65,0.65,0.075)
  754. CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  755.  
  756. gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  757. CreateMesh(gala,"Brick",0.595,0.595,0.095)
  758. CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  759.  
  760.  
  761. starz = CreateParta(m,0,0,"SmoothPlastic",starcolor)
  762. CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25)
  763. CreateWeld(starz,rarm,starz,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  764. starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  765. CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5)
  766. CreateWeld(starz1,rarm,starz1,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  767.  
  768. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  769. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  770. CreateWeld(dotbo,rarm,dotbo,0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  771.  
  772. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  773. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  774. CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  775.  
  776. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  777. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  778. CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  779.  
  780. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  781. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  782. CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  783.  
  784. -----------
  785.  
  786. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  787. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  788. CreateWeld(dotbo,rarm,dotbo,-0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  789.  
  790. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  791. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  792. CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  793.  
  794. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  795. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  796. CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  797.  
  798. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  799. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  800. CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  801.  
  802. -- Second Lines
  803.  
  804.  
  805.  
  806. gal = CreateParta(m,0,0,"Neon",halocolor)
  807. CreateMesh(gal,"Brick",0.05,0.95,0.075)
  808. CreateWeld(gal,rarm,gal,0,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  809.  
  810. gal = CreateParta(m,0,0,"Neon",halocolor)
  811. CreateMesh(gal,"Brick",0.05,0.95,0.075)
  812. CreateWeld(gal,rarm,gal,0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  813.  
  814. gal = CreateParta(m,0,0,"Neon",halocolor)
  815. CreateMesh(gal,"Brick",0.05,0.95,0.075)
  816. CreateWeld(gal,rarm,gal,-0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  817.  
  818. gala = CreateParta(m,0,0,"Neon",halocolor)
  819. CreateMesh(gala,"Brick",0.65,0.65,0.075)
  820. CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  821.  
  822. gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  823. CreateMesh(gala,"Brick",0.595,0.595,0.095)
  824. CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  825.  
  826. starz = CreateParta(m,0,0,"SmoothPlastic",starcolor)
  827. CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25)
  828. CreateWeld(starz,rarm,starz,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  829. starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  830. CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5)
  831. CreateWeld(starz1,rarm,starz1,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  832.  
  833.  
  834. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  835. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  836. CreateWeld(dotbo,rarm,dotbo,0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  837.  
  838. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  839. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  840. CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  841.  
  842. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  843. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  844. CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  845.  
  846. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  847. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  848. CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  849.  
  850. -----------
  851.  
  852. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  853. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  854. CreateWeld(dotbo,rarm,dotbo,-0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  855.  
  856. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  857. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  858. CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859.  
  860. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  861. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  862. CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  863.  
  864. dotbo = CreateParta(m,0,0,"Neon",halocolor)
  865. CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
  866. CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  867.  
  868.  
  869.  
  870. ---- HERES THE RING
  871.  
  872. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  873. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  874. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  875.  
  876. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  877. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  878. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  879.  
  880.  
  881.  
  882. gan = CreateParta(m,0,0,"Neon",halocolor2)
  883. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  884. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  885.  
  886. gan = CreateParta(m,0,0,"Neon",halocolor2)
  887. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  888. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  889.  
  890. gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2)
  891. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  892. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  893.  
  894. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  895. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  896. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  897. starl = CreateParta(m,0,0,"SmoothPlastic",starcolor)
  898. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  899. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  900.  
  901. -- S section A
  902.  
  903. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  904. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  905. CreateWeld(dotsec,larm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  906. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  907. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  908. CreateWeld(dotseca,larm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  910. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  911. CreateWeld(dotsecb,larm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  912.  
  913. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  914. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  915. CreateWeld(dotsec,larm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  916. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  917. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  918. CreateWeld(dotseca,larm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  919. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  920. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  921. CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  922.  
  923. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  924. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  925. CreateWeld(dotsec,larm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  926. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  927. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  928. CreateWeld(dotseca,larm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  929. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  930. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  931. CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  932.  
  933. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  934. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  935. CreateWeld(dotsec,larm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  936. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  937. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  938. CreateWeld(dotseca,larm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  939. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  940. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  941. CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  942.  
  943. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  944. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  945. CreateWeld(dotsec,larm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  946. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  947. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  948. CreateWeld(dotseca,larm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  949. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  950. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  951. CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  952.  
  953. -- S section B
  954.  
  955. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  956. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  957. CreateWeld(dotsec,larm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  958. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  959. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  960. CreateWeld(dotseca,larm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  961. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  962. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  963. CreateWeld(dotsecb,larm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  964.  
  965. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  966. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  967. CreateWeld(dotsec,larm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  968. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  969. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  970. CreateWeld(dotseca,larm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  971. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  972. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  973. CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  974.  
  975. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  976. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  977. CreateWeld(dotsec,larm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  978. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  979. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  980. CreateWeld(dotseca,larm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  981. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  982. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  983. CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  984.  
  985. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  986. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  987. CreateWeld(dotsec,larm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  988. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  989. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  990. CreateWeld(dotseca,larm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  991. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  992. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  993. CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  994.  
  995. dotsec = CreateParta(m,0,0,"Neon",halocolor)
  996. CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
  997. CreateWeld(dotsec,larm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  998. dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  999. CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
  1000. CreateWeld(dotseca,larm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1001. dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
  1002. CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
  1003. CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1004.  
  1005. ------
  1006.  
  1007.  
  1008. function RemoveOutlines(part)
  1009. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1010. end
  1011. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1012. local Part = Create("Part")({
  1013. Parent = Parent,
  1014. Reflectance = Reflectance,
  1015. Transparency = Transparency,
  1016. CanCollide = false,
  1017. Locked = true,
  1018. BrickColor = BrickColor.new(tostring(BColor)),
  1019. Name = Name,
  1020. Size = Size,
  1021. Material = Material
  1022. })
  1023. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1024. RemoveOutlines(Part)
  1025. return Part
  1026. end
  1027. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1028. local Msh = Create(Mesh)({
  1029. Parent = Part,
  1030. Offset = OffSet,
  1031. Scale = Scale
  1032. })
  1033. if Mesh == "SpecialMesh" then
  1034. Msh.MeshType = MeshType
  1035. Msh.MeshId = MeshId
  1036. end
  1037. return Msh
  1038. end
  1039. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1040. local Weld = Create("Weld")({
  1041. Parent = Parent,
  1042. Part0 = Part0,
  1043. Part1 = Part1,
  1044. C0 = C0,
  1045. C1 = C1
  1046. })
  1047. return Weld
  1048. end
  1049.  
  1050. Player=game:GetService("Players").LocalPlayer
  1051. Character=Player.Character
  1052. PlayerGui=Player.PlayerGui
  1053. Backpack=Player.Backpack
  1054. Torso=Character.Torso
  1055. Head=Character.Head
  1056. Humanoid=Character.Humanoid
  1057. m=Instance.new('Model',Character)
  1058. LeftArm=Character["Left Arm"]
  1059. LeftLeg=Character["Left Leg"]
  1060. RightArm=Character["Right Arm"]
  1061. RightLeg=Character["Right Leg"]
  1062. LS=Torso["Left Shoulder"]
  1063. LH=Torso["Left Hip"]
  1064. RS=Torso["Right Shoulder"]
  1065. RH=Torso["Right Hip"]
  1066. Face = Head.face
  1067. Neck=Torso.Neck
  1068. it=Instance.new
  1069. attacktype=1
  1070. vt=Vector3.new
  1071. cf=CFrame.new
  1072. euler=CFrame.fromEulerAnglesXYZ
  1073. angles=CFrame.Angles
  1074. cloaked=false
  1075. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1076. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1077. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1078. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1079. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1080. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1081. RootPart=Character.HumanoidRootPart
  1082. RootJoint=RootPart.RootJoint
  1083. RootCF=euler(-1.57,0,3.14)
  1084. attack = false
  1085. attackdebounce = false
  1086. deb=false
  1087. equipped=true
  1088. hand=false
  1089. MMouse=nil
  1090. combo=0
  1091. mana=0
  1092. trispeed=.2
  1093. attackmode='none'
  1094. local idle=0
  1095. local Anim="Idle"
  1096. local Effects={}
  1097. local gun=false
  1098. local shoot=false
  1099. local sine = 0
  1100. local change = 1
  1101. player=nil
  1102.  
  1103. mouse=Player:GetMouse()
  1104. --save shoulders
  1105. RSH, LSH=nil, nil
  1106. --welds
  1107. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1108. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1109. LH=Torso["Left Hip"]
  1110. RH=Torso["Right Hip"]
  1111. TorsoColor=Torso.BrickColor
  1112. function NoOutline(Part)
  1113. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1114. end
  1115. player=Player
  1116. ch=Character
  1117. RSH=ch.Torso["Right Shoulder"]
  1118. LSH=ch.Torso["Left Shoulder"]
  1119. --
  1120. RSH.Parent=nil
  1121. LSH.Parent=nil
  1122. --
  1123. RW.Name="Right Shoulder"
  1124. RW.Part0=ch.Torso
  1125. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1126. RW.C1=cf(0, 0.5, 0)
  1127. RW.Part1=ch["Right Arm"]
  1128. RW.Parent=ch.Torso
  1129. --
  1130. LW.Name="Left Shoulder"
  1131. LW.Part0=ch.Torso
  1132. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1133. LW.C1=cf(0, 0.5, 0)
  1134. LW.Part1=ch["Left Arm"]
  1135. LW.Parent=ch.Torso
  1136.  
  1137. local Stats=Instance.new("BoolValue")
  1138. Stats.Name="Stats"
  1139. Stats.Parent=Character
  1140. local Atk=Instance.new("NumberValue")
  1141. Atk.Name="Damage"
  1142. Atk.Parent=Stats
  1143. Atk.Value=1
  1144. local Def=Instance.new("NumberValue")
  1145. Def.Name="Defense"
  1146. Def.Parent=Stats
  1147. Def.Value=1
  1148. local Speed=Instance.new("NumberValue")
  1149. Speed.Name="Speed"
  1150. Speed.Parent=Stats
  1151. Speed.Value=1
  1152. local Mvmt=Instance.new("NumberValue")
  1153. Mvmt.Name="Movement"
  1154. Mvmt.Parent=Stats
  1155. Mvmt.Value=1
  1156.  
  1157. local donum=0
  1158.  
  1159.  
  1160. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1161. local fp=it("Part")
  1162. fp.formFactor=formfactor
  1163. fp.Parent=parent
  1164. fp.Reflectance=reflectance
  1165. fp.Transparency=transparency
  1166. fp.CanCollide=false
  1167. fp.Locked=true
  1168. fp.BrickColor=brickcolor
  1169. fp.Name=name
  1170. fp.Size=size
  1171. fp.Position=Torso.Position
  1172. NoOutline(fp)
  1173. fp.Material="SmoothPlastic"
  1174. fp:BreakJoints()
  1175. return fp
  1176. end
  1177.  
  1178. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1179. local mesh=it(Mesh)
  1180. mesh.Parent=part
  1181. if Mesh=="SpecialMesh" then
  1182. mesh.MeshType=meshtype
  1183. if meshid~="nil" then
  1184. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1185. end
  1186. end
  1187. mesh.Offset=offset
  1188. mesh.Scale=scale
  1189. return mesh
  1190. end
  1191.  
  1192. function weld(parent,part0,part1,c0)
  1193. local weld=it("Weld")
  1194. weld.Parent=parent
  1195. weld.Part0=part0
  1196. weld.Part1=part1
  1197. weld.C0=c0
  1198. return weld
  1199. end
  1200.  
  1201. local Color1=Torso.BrickColor
  1202.  
  1203. local bodvel=Instance.new("BodyVelocity")
  1204. local bg=Instance.new("BodyGyro")
  1205.  
  1206. function swait(num)
  1207. if num==0 or num==nil then
  1208. game:service'RunService'.Stepped:wait(0)
  1209. else
  1210. for i=0,num do
  1211. game:service'RunService'.Stepped:wait(0)
  1212. end
  1213. end
  1214. end
  1215.  
  1216.  
  1217. so = function(id,par,vol,pit)
  1218. coroutine.resume(coroutine.create(function()
  1219. local sou = Instance.new("Sound",par or workspace)
  1220. sou.Volume=vol
  1221. sou.Pitch=pit or 1
  1222. sou.SoundId=id
  1223. swait()
  1224. sou:play()
  1225. game:GetService("Debris"):AddItem(sou,6)
  1226. end))
  1227. end
  1228.  
  1229. function clerp(a,b,t)
  1230. local qa = {QuaternionFromCFrame(a)}
  1231. local qb = {QuaternionFromCFrame(b)}
  1232. local ax, ay, az = a.x, a.y, a.z
  1233. local bx, by, bz = b.x, b.y, b.z
  1234. local _t = 1-t
  1235. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1236. end
  1237.  
  1238. function QuaternionFromCFrame(cf)
  1239. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1240. local trace = m00 + m11 + m22
  1241. if trace > 0 then
  1242. local s = math.sqrt(1 + trace)
  1243. local recip = 0.5/s
  1244. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1245. else
  1246. local i = 0
  1247. if m11 > m00 then
  1248. i = 1
  1249. end
  1250. if m22 > (i == 0 and m00 or m11) then
  1251. i = 2
  1252. end
  1253. if i == 0 then
  1254. local s = math.sqrt(m00-m11-m22+1)
  1255. local recip = 0.5/s
  1256. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1257. elseif i == 1 then
  1258. local s = math.sqrt(m11-m22-m00+1)
  1259. local recip = 0.5/s
  1260. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1261. elseif i == 2 then
  1262. local s = math.sqrt(m22-m00-m11+1)
  1263. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1264. end
  1265. end
  1266. end
  1267.  
  1268. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1269. local xs, ys, zs = x + x, y + y, z + z
  1270. local wx, wy, wz = w*xs, w*ys, w*zs
  1271. local xx = x*xs
  1272. local xy = x*ys
  1273. local xz = x*zs
  1274. local yy = y*ys
  1275. local yz = y*zs
  1276. local zz = z*zs
  1277. 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))
  1278. end
  1279.  
  1280. function QuaternionSlerp(a, b, t)
  1281. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1282. local startInterp, finishInterp;
  1283. if cosTheta >= 0.0001 then
  1284. if (1 - cosTheta) > 0.0001 then
  1285. local theta = math.acos(cosTheta)
  1286. local invSinTheta = 1/math.sin(theta)
  1287. startInterp = math.sin((1-t)*theta)*invSinTheta
  1288. finishInterp = math.sin(t*theta)*invSinTheta
  1289. else
  1290. startInterp = 1-t
  1291. finishInterp = t
  1292. end
  1293. else
  1294. if (1+cosTheta) > 0.0001 then
  1295. local theta = math.acos(-cosTheta)
  1296. local invSinTheta = 1/math.sin(theta)
  1297. startInterp = math.sin((t-1)*theta)*invSinTheta
  1298. finishInterp = math.sin(t*theta)*invSinTheta
  1299. else
  1300. startInterp = t-1
  1301. finishInterp = t
  1302. end
  1303. end
  1304. 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
  1305. end
  1306.  
  1307. local function CFrameFromTopBack(at, top, back)
  1308. local right = top:Cross(back)
  1309. return CFrame.new(at.x, at.y, at.z,
  1310. right.x, top.x, back.x,
  1311. right.y, top.y, back.y,
  1312. right.z, top.z, back.z)
  1313. end
  1314.  
  1315. function Triangle(a, b, c)
  1316. local edg1 = (c-a):Dot((b-a).unit)
  1317. local edg2 = (a-b):Dot((c-b).unit)
  1318. local edg3 = (b-c):Dot((a-c).unit)
  1319. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1320. a, b, c = a, b, c
  1321. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1322. a, b, c = b, c, a
  1323. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1324. a, b, c = c, a, b
  1325. else
  1326. assert(false, "unreachable")
  1327. end
  1328.  
  1329. local len1 = (c-a):Dot((b-a).unit)
  1330. local len2 = (b-a).magnitude - len1
  1331. local width = (a + (b-a).unit*len1 - c).magnitude
  1332.  
  1333. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1334.  
  1335. local list = {}
  1336.  
  1337. if len1 > 0.01 then
  1338. local w1 = Instance.new('WedgePart', m)
  1339. game:GetService("Debris"):AddItem(w1,5)
  1340. w1.Material = "SmoothPlastic"
  1341. w1.FormFactor = 'Custom'
  1342. w1.BrickColor = BrickColor.new("Really red")
  1343. w1.Transparency = 0
  1344. w1.Reflectance = 0
  1345. w1.Material = "SmoothPlastic"
  1346. w1.CanCollide = false
  1347. local l1 = Instance.new("PointLight",w1)
  1348. l1.Color = Color3.new(170,0,0)
  1349. NoOutline(w1)
  1350. local sz = Vector3.new(0.2, width, len1)
  1351. w1.Size = sz
  1352. local sp = Instance.new("SpecialMesh",w1)
  1353. sp.MeshType = "Wedge"
  1354. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1355. w1:BreakJoints()
  1356. w1.Anchored = true
  1357. w1.Parent = workspace
  1358. w1.Transparency = 0.7
  1359. table.insert(Effects,{w1,"Disappear",.01})
  1360. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1361. table.insert(list,w1)
  1362. end
  1363.  
  1364. if len2 > 0.01 then
  1365. local w2 = Instance.new('WedgePart', m)
  1366. game:GetService("Debris"):AddItem(w2,5)
  1367. w2.Material = "SmoothPlastic"
  1368. w2.FormFactor = 'Custom'
  1369. w2.BrickColor = BrickColor.new("Really red")
  1370. w2.Transparency = 0
  1371. w2.Reflectance = 0
  1372. w2.Material = "SmoothPlastic"
  1373. w2.CanCollide = false
  1374. local l2 = Instance.new("PointLight",w2)
  1375. l2.Color = Color3.new(170,0,0)
  1376. NoOutline(w2)
  1377. local sz = Vector3.new(0.2, width, len2)
  1378. w2.Size = sz
  1379. local sp = Instance.new("SpecialMesh",w2)
  1380. sp.MeshType = "Wedge"
  1381. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1382. w2:BreakJoints()
  1383. w2.Anchored = true
  1384. w2.Parent = workspace
  1385. w2.Transparency = 0.7
  1386. table.insert(Effects,{w2,"Disappear",.01})
  1387. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1388. table.insert(list,w2)
  1389. end
  1390. return unpack(list)
  1391. end
  1392.  
  1393.  
  1394. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1395. if hit.Parent == nil then
  1396. return
  1397. end
  1398. local h = hit.Parent:FindFirstChild("Humanoid")
  1399. for _, v in pairs(hit.Parent:children()) do
  1400. if v:IsA("Humanoid") then
  1401. h = v
  1402. end
  1403. end
  1404. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1405. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1406. return
  1407. end
  1408. local c = Create("ObjectValue")({
  1409. Name = "creator",
  1410. Value = game:service("Players").LocalPlayer,
  1411. Parent = h
  1412. })
  1413. game:GetService("Debris"):AddItem(c, 0.5)
  1414. if HitSound ~= nil and HitPitch ~= nil then
  1415. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1416. end
  1417. local Damage = math.random(minim, maxim)
  1418. local blocked = false
  1419. local block = hit.Parent:findFirstChild("Block")
  1420. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1421. blocked = true
  1422. block.Value = block.Value - 1
  1423. print(block.Value)
  1424. end
  1425. if blocked == false then
  1426. HitHealth = h.Health
  1427. h.Health = h.Health - Damage
  1428. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1429. print("gained kill")
  1430. end
  1431. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1432. else
  1433. h.Health = h.Health - Damage / 2
  1434. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1435. end
  1436. if Type == "Knockdown" then
  1437. local hum = hit.Parent.Humanoid
  1438. hum.PlatformStand = true
  1439. coroutine.resume(coroutine.create(function(HHumanoid)
  1440. swait(1)
  1441. HHumanoid.PlatformStand = false
  1442. end), hum)
  1443. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1444. local bodvol = Create("BodyVelocity")({
  1445. velocity = angle * knockback,
  1446. P = 5000,
  1447. maxForce = Vector3.new(8000, 8000, 8000),
  1448. Parent = hit
  1449. })
  1450. local rl = Create("BodyAngularVelocity")({
  1451. P = 3000,
  1452. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1453. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1454. Parent = hit
  1455. })
  1456. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1457. game:GetService("Debris"):AddItem(rl, 0.5)
  1458. elseif Type == "Normal" then
  1459. local vp = Create("BodyVelocity")({
  1460. P = 500,
  1461. maxForce = Vector3.new(math.huge, 0, math.huge),
  1462. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1463. })
  1464. if knockback > 0 then
  1465. vp.Parent = hit.Parent.Torso
  1466. end
  1467. game:GetService("Debris"):AddItem(vp, 0.5)
  1468. elseif Type == "Up" then
  1469. local bodyVelocity = Create("BodyVelocity")({
  1470. velocity = Vector3.new(0, 20, 0),
  1471. P = 5000,
  1472. maxForce = Vector3.new(8000, 8000, 8000),
  1473. Parent = hit
  1474. })
  1475. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1476. local bodyVelocity = Create("BodyVelocity")({
  1477. velocity = Vector3.new(0, 20, 0),
  1478. P = 5000,
  1479. maxForce = Vector3.new(8000, 8000, 8000),
  1480. Parent = hit
  1481. })
  1482. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1483. elseif Type == "Leech" then
  1484. local hum = hit.Parent.Humanoid
  1485. if hum ~= nil then
  1486. for i = 0, 2 do
  1487. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1488. end
  1489. Humanoid.Health = Humanoid.Health + 10
  1490. end
  1491. elseif Type == "UpKnock" then
  1492. local hum = hit.Parent.Humanoid
  1493. hum.PlatformStand = true
  1494. if hum ~= nil then
  1495. hitr = true
  1496. end
  1497. coroutine.resume(coroutine.create(function(HHumanoid)
  1498. swait(5)
  1499. HHumanoid.PlatformStand = false
  1500. hitr = false
  1501. end), hum)
  1502. local bodyVelocity = Create("BodyVelocity")({
  1503. velocity = Vector3.new(0, 20, 0),
  1504. P = 5000,
  1505. maxForce = Vector3.new(8000, 8000, 8000),
  1506. Parent = hit
  1507. })
  1508. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1509. local bodyVelocity = Create("BodyVelocity")({
  1510. velocity = Vector3.new(0, 20, 0),
  1511. P = 5000,
  1512. maxForce = Vector3.new(8000, 8000, 8000),
  1513. Parent = hit
  1514. })
  1515. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1516. elseif Type == "Snare" then
  1517. local bp = Create("BodyPosition")({
  1518. P = 2000,
  1519. D = 100,
  1520. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1521. position = hit.Parent.Torso.Position,
  1522. Parent = hit.Parent.Torso
  1523. })
  1524. game:GetService("Debris"):AddItem(bp, 1)
  1525. elseif Type == "Slashnare" then
  1526. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1527. for i = 1, math.random(4, 5) do
  1528. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1529. end
  1530. local bp = Create("BodyPosition")({
  1531. P = 2000,
  1532. D = 100,
  1533. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1534. position = hit.Parent.Torso.Position,
  1535. Parent = hit.Parent.Torso
  1536. })
  1537. game:GetService("Debris"):AddItem(bp, 1)
  1538. elseif Type == "Spike" then
  1539. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1540. local bp = Create("BodyPosition")({
  1541. P = 2000,
  1542. D = 100,
  1543. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1544. position = hit.Parent.Torso.Position,
  1545. Parent = hit.Parent.Torso
  1546. })
  1547. game:GetService("Debris"):AddItem(bp, 1)
  1548. elseif Type == "Freeze" then
  1549. local BodPos = Create("BodyPosition")({
  1550. P = 50000,
  1551. D = 1000,
  1552. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1553. position = hit.Parent.Torso.Position,
  1554. Parent = hit.Parent.Torso
  1555. })
  1556. local BodGy = Create("BodyGyro")({
  1557. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1558. P = 20000,
  1559. Parent = hit.Parent.Torso,
  1560. cframe = hit.Parent.Torso.CFrame
  1561. })
  1562. hit.Parent.Torso.Anchored = true
  1563. coroutine.resume(coroutine.create(function(Part)
  1564. swait(1.5)
  1565. Part.Anchored = false
  1566. end), hit.Parent.Torso)
  1567. game:GetService("Debris"):AddItem(BodPos, 3)
  1568. game:GetService("Debris"):AddItem(BodGy, 3)
  1569. end
  1570. local debounce = Create("BoolValue")({
  1571. Name = "DebounceHit",
  1572. Parent = hit.Parent,
  1573. Value = true
  1574. })
  1575. game:GetService("Debris"):AddItem(debounce, Delay)
  1576. c = Instance.new("ObjectValue")
  1577. c.Name = "creator"
  1578. c.Value = Player
  1579. c.Parent = h
  1580. game:GetService("Debris"):AddItem(c, 0.5)
  1581. end
  1582. end
  1583. function ShowDamage(Pos, Text, Time, Color)
  1584. local Rate = 0.03333333333333333
  1585. local Pos = Pos or Vector3.new(0, 0, 0)
  1586. local Text = Text or ""
  1587. local Time = Time or 2
  1588. local Color = Color or Color3.new(1, 0, 1)
  1589. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1590. EffectPart.Anchored = true
  1591. local BillboardGui = Create("BillboardGui")({
  1592. Size = UDim2.new(3, 0, 3, 0),
  1593. Adornee = EffectPart,
  1594. Parent = EffectPart
  1595. })
  1596. local TextLabel = Create("TextLabel")({
  1597. BackgroundTransparency = 1,
  1598. Size = UDim2.new(1, 0, 1, 0),
  1599. Text = Text,
  1600. TextColor3 = Color,
  1601. TextScaled = true,
  1602. Font = Enum.Font.ArialBold,
  1603. Parent = BillboardGui
  1604. })
  1605. game.Debris:AddItem(EffectPart, Time + 0.1)
  1606. EffectPart.Parent = game:GetService("Workspace")
  1607. delay(0, function()
  1608. local Frames = Time / Rate
  1609. for Frame = 1, Frames do
  1610. wait(Rate)
  1611. local Percent = Frame / Frames
  1612. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1613. TextLabel.TextTransparency = Percent
  1614. end
  1615. if EffectPart and EffectPart.Parent then
  1616. EffectPart:Destroy()
  1617. end
  1618. end)
  1619. end
  1620. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1621. for _, c in pairs(workspace:children()) do
  1622. local hum = c:findFirstChild("Humanoid")
  1623. if hum ~= nil then
  1624. local head = c:findFirstChild("Torso")
  1625. if head ~= nil then
  1626. local targ = head.Position - Part.Position
  1627. local mag = targ.magnitude
  1628. if magni >= mag and c.Name ~= Player.Name then
  1629. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1630. end
  1631. end
  1632. end
  1633. end
  1634. end
  1635.  
  1636. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1637. for _, c in pairs(workspace:children()) do
  1638. local hum = c:findFirstChild("Humanoid")
  1639. if hum ~= nil then
  1640. local head = c:findFirstChild("Torso")
  1641. if head ~= nil then
  1642. local targ = head.Position - Part.Position
  1643. local mag = targ.magnitude
  1644. if magni >= mag and c.Name ~= Player.Name then
  1645. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1646. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1647. end
  1648. end
  1649. end
  1650. end
  1651. end
  1652.  
  1653. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1654. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1655. end
  1656.  
  1657. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1658. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1659. prt.Anchored=true
  1660. prt.CFrame=cframe
  1661. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1662. --http://www.roblox.com/asset/?id=4770560
  1663. game:GetService("Debris"):AddItem(prt,2)
  1664. CF=prt.CFrame
  1665. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1666. for i=0,1,0.2 do
  1667. wait()
  1668. Part.CFrame=CF*cf(0,0,-0.4)
  1669. end
  1670. for i=0,1,delay do
  1671. wait()
  1672. --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)
  1673. Mesh.Scale=Mesh.Scale
  1674. end
  1675. for i=0,1,0.1 do
  1676. wait()
  1677. Part.Transparency=i
  1678. end
  1679. Part.Parent=nil
  1680. end),prt,msh,CF)
  1681. end
  1682.  
  1683. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1684. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1685. prt.Anchored=true
  1686. prt.Material = "Neon"
  1687. prt.CFrame=cframe
  1688. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1689. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1690. game:GetService("Debris"):AddItem(prt,5)
  1691. coroutine.resume(coroutine.create(function(Part,Mesh)
  1692. for i=0,1,delay do
  1693. swait()
  1694. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1695. Part.Transparency=i
  1696. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1697. end
  1698. Part.Parent=nil
  1699. end),prt,msh)
  1700. end
  1701.  
  1702. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1703. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1704. prt.Anchored=true
  1705. prt.Material = "Neon"
  1706. prt.CFrame=cframe
  1707. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1708. game:GetService("Debris"):AddItem(prt,5)
  1709. coroutine.resume(coroutine.create(function(Part,Mesh)
  1710. local rtype = rottype
  1711. for i=0,1,delay do
  1712. swait()
  1713. if rtype == 1 then
  1714. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1715. elseif rtype == 2 then
  1716. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1717. end
  1718. Part.Transparency=i
  1719. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1720. end
  1721. Part.Parent=nil
  1722. end),prt,msh)
  1723. end
  1724.  
  1725. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1726. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1727. prt.Anchored=true
  1728. prt.CFrame=cframe
  1729. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1730. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1731. game:GetService("Debris"):AddItem(prt,5)
  1732. coroutine.resume(coroutine.create(function(Part,Mesh)
  1733. for i=0,1,delay do
  1734. wait()
  1735. Part.Transparency=i
  1736. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1737. end
  1738. Part.Parent=nil
  1739. end),prt,msh)
  1740. end
  1741.  
  1742. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1743. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1744. prt.Anchored=true
  1745. prt.Material = "Neon"
  1746. prt.CFrame=cframe
  1747. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1748. game:GetService("Debris"):AddItem(prt,5)
  1749. coroutine.resume(coroutine.create(function(Part,Mesh)
  1750. local rtype = rottype
  1751. for i=0,1,delay do
  1752. swait()
  1753. if rtype == 1 then
  1754. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1755. elseif rtype == 2 then
  1756. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1757. end
  1758. Part.Transparency=i
  1759. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1760. end
  1761. Part.Parent=nil
  1762. end),prt,msh)
  1763. end
  1764.  
  1765. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1766. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1767. prt.Anchored=true
  1768. prt.Material = "Neon"
  1769. prt.CFrame=cframe
  1770. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1771. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1772. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1773. game:GetService("Debris"):AddItem(prt,5)
  1774. coroutine.resume(coroutine.create(function(Part,Mesh)
  1775. local rtype = rottype
  1776. for i=0,1,delay do
  1777. swait()
  1778. if rtype == 1 then
  1779. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1780. elseif rtype == 2 then
  1781. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1782. end
  1783. dec.Transparency=i
  1784. dec2.Transparency=i
  1785. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1786. end
  1787. Part.Parent=nil
  1788. end),prt,msh)
  1789. end
  1790.  
  1791. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1792. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1793. prt.Anchored=true
  1794. prt.Material = "Neon"
  1795. prt.CFrame=cframe
  1796. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1797. game:GetService("Debris"):AddItem(prt,5)
  1798. coroutine.resume(coroutine.create(function(Part,Mesh)
  1799. local rtype = rottype
  1800. for i=0,1,delay do
  1801. swait()
  1802. if rtype == 1 then
  1803. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1804. elseif rtype == 2 then
  1805. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1806. end
  1807. prt.Transparency=i
  1808. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1809. end
  1810. Part.Parent=nil
  1811. end),prt,msh)
  1812. end
  1813.  
  1814. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1815. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1816. prt.Anchored=true
  1817. prt.Material = "Neon"
  1818. prt.CFrame=cframe
  1819. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1820. game:GetService("Debris"):AddItem(prt,5)
  1821. coroutine.resume(coroutine.create(function(Part,Mesh)
  1822. local rtype = rottype
  1823. for i=0,1,delay do
  1824. swait()
  1825. if rtype == 1 then
  1826. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1827. elseif rtype == 2 then
  1828. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1829. end
  1830. prt.Transparency=i
  1831. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1832. end
  1833. Part.Parent=nil
  1834. end),prt,msh)
  1835. end
  1836.  
  1837. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1838. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1839. prt.Anchored=true
  1840. prt.Material = "Neon"
  1841. prt.CFrame=cframe
  1842. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1843. game:GetService("Debris"):AddItem(prt,5)
  1844. coroutine.resume(coroutine.create(function(Part,Mesh)
  1845. local rtype = rottype
  1846. for i=0,1,delay do
  1847. swait()
  1848. if rtype == 1 then
  1849. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1850. elseif rtype == 2 then
  1851. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1852. end
  1853. prt.Transparency=i
  1854. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1855. end
  1856. Part.Parent=nil
  1857. end),prt,msh)
  1858. end
  1859.  
  1860. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1861. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1862. prt.Anchored=true
  1863. prt.Material = "Neon"
  1864. prt.CFrame=cframe
  1865. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1866. game:GetService("Debris"):AddItem(prt,5)
  1867. coroutine.resume(coroutine.create(function(Part,Mesh)
  1868. local rtype = rottype
  1869. for i=0,1,delay do
  1870. swait()
  1871. if rtype == 1 then
  1872. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1873. elseif rtype == 2 then
  1874. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1875. end
  1876. prt.Transparency=i
  1877. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1878. end
  1879. Part.Parent=nil
  1880. end),prt,msh)
  1881. end
  1882.  
  1883. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1884. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1885. prt.Anchored=false
  1886. prt.CFrame=cframe
  1887. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1888. local wld=weld(prt,prt,Parent,cframe)
  1889. game:GetService("Debris"):AddItem(prt,5)
  1890. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1891. for i=0,1,delay do
  1892. wait()
  1893. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1894. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1895. Part.Transparency=i
  1896. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1897. end
  1898. Part.Parent=nil
  1899. end),prt,msh,wld)
  1900. end
  1901.  
  1902. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1903. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1904. prt.Anchored=false
  1905. prt.CFrame=cframe
  1906. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1907. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1908. game:GetService("Debris"):AddItem(prt,5)
  1909. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1910. for i=0,1,delay do
  1911. wait()
  1912. Weld.C0=euler(i*20,0,0)
  1913. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1914. Part.Transparency=i
  1915. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1916. end
  1917. Part.Parent=nil
  1918. end),prt,msh,wld)
  1919. end
  1920.  
  1921. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1922. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1923. prt.Anchored=true
  1924. prt.CFrame=cframe
  1925. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1926. game:GetService("Debris"):AddItem(prt,2)
  1927. coroutine.resume(coroutine.create(function(Part,Mesh)
  1928. for i=0,1,delay do
  1929. wait()
  1930. Part.CFrame=Part.CFrame
  1931. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1932. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1933. prt2.Anchored=true
  1934. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1935. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1936. game:GetService("Debris"):AddItem(prt2,2)
  1937. coroutine.resume(coroutine.create(function(Part,Mesh)
  1938. for i=0,1,0.1 do
  1939. wait()
  1940. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1941. end
  1942. Part.Parent=nil
  1943. end),prt2,msh2)
  1944. end
  1945. for i=0,1,delay*2 do
  1946. wait()
  1947. Part.CFrame=Part.CFrame
  1948. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1949. end
  1950. Part.Parent=nil
  1951. end),prt,msh)
  1952. end
  1953.  
  1954. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1955. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1956. prt.Anchored=true
  1957. prt.CFrame=cframe
  1958. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1959. game:GetService("Debris"):AddItem(prt,2)
  1960. coroutine.resume(coroutine.create(function(Part,Mesh)
  1961. for i=0,1,delay do
  1962. wait()
  1963. Part.CFrame=Part.CFrame
  1964. Part.Transparency=i
  1965. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1966. end
  1967. Part.Parent=nil
  1968. end),prt,msh)
  1969. end
  1970.  
  1971. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1972. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1973. prt.Anchored=true
  1974. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1975. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1976. game:GetService("Debris"):AddItem(prt,2)
  1977. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1978. CF=Part.CFrame
  1979. Numbb=0
  1980. randnumb=math.random()/10
  1981. rand1=math.random()/10
  1982. for i=0,1,rand1 do
  1983. wait()
  1984. CF=CF*cf(0,math.random()/2,0)
  1985. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1986. Part.CFrame=CF*euler(Numbb,0,0)
  1987. Part.Transparency=i
  1988. Numbb=Numbb+randnumb
  1989. end
  1990. Part.Parent=nil
  1991. end),prt,CF,Numbb,randnumb)
  1992. end
  1993.  
  1994. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1995. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1996. prt.Anchored=true
  1997. prt.CFrame=cframe
  1998. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1999. game:GetService("Debris"):AddItem(prt,5)
  2000. coroutine.resume(coroutine.create(function(Part,Mesh)
  2001. for i=0,1,delay do
  2002. wait()
  2003. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2004. Part.Transparency=i
  2005. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2006. end
  2007. Part.Parent=nil
  2008. end),prt,msh)
  2009. end
  2010.  
  2011. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2012. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2013. prt.Anchored=true
  2014. prt.CFrame=cframe
  2015. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2016. game:GetService("Debris"):AddItem(prt,2)
  2017. coroutine.resume(coroutine.create(function(Part,Mesh)
  2018. for i=0,1,delay do
  2019. wait()
  2020. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2021. Part.Transparency=i
  2022. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2023. end
  2024. Part.Parent=nil
  2025. end),prt,msh)
  2026. end
  2027.  
  2028. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2029. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2030. prt.Anchored=true
  2031. prt.CFrame=cframe*cf(x,y,z)
  2032. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2033. game:GetService("Debris"):AddItem(prt,5)
  2034. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2035. local num=math.random()
  2036. local num2=math.random(-3,2)+math.random()
  2037. local numm=0
  2038. for i=0,1,delay*2 do
  2039. swait()
  2040. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2041. Part.Transparency=i
  2042. numm=numm+0.01
  2043. end
  2044. Part.Parent=nil
  2045. Mesh.Parent=nil
  2046. end),prt,msh,x,y,z)
  2047. end
  2048.  
  2049. function dmgstart(dmg,what)
  2050. hitcon = what.Touched:connect(function(hit)
  2051. local hum = hit.Parent:FindFirstChild("Humanoid")
  2052. if hum and not hum:IsDescendantOf(Character) then
  2053. hum:TakeDamage(dmg)
  2054. end
  2055. end)
  2056. end
  2057.  
  2058. function dmgstop()
  2059. hitcon:disconnect()
  2060. end
  2061.  
  2062. function Cloak()
  2063. Face.Parent=nil
  2064. cloaked=true
  2065. for _,v in pairs(Torso.Parent:children()) do
  2066. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2067. coroutine.resume(coroutine.create(function()
  2068. for i=0,1,0.2 do
  2069. wait()
  2070. v.Transparency=i
  2071. end
  2072. v.Transparency=1
  2073. end))
  2074. end
  2075. if v.className=="Hat" then
  2076. hatp=v.Handle
  2077. coroutine.resume(coroutine.create(function(derp)
  2078. for i=0,1,0.2 do
  2079. wait()
  2080. derp.Transparency=i
  2081. end
  2082. derp.Transparency=1
  2083. end),hatp)
  2084. end
  2085. end
  2086. for _,v in pairs(m:children()) do
  2087. if v.className=="Part" then
  2088. coroutine.resume(coroutine.create(function()
  2089. for i=0,1,0.2 do
  2090. wait()
  2091. v.Transparency=i
  2092. end
  2093. v.Transparency=1
  2094. end))
  2095. end
  2096. end
  2097. end
  2098.  
  2099. function UnCloak()
  2100. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2101. Face.Parent=Head
  2102. cloaked=false
  2103. for _,v in pairs(Torso.Parent:children()) do
  2104. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2105. coroutine.resume(coroutine.create(function()
  2106. for i=0,1,0.1 do
  2107. wait()
  2108. v.Transparency=v.Transparency-0.1
  2109. end
  2110. v.Transparency=0
  2111. end))
  2112. end
  2113. if v.className=="Hat" then
  2114. hatp=v.Handle
  2115. coroutine.resume(coroutine.create(function(derp)
  2116. for i=0,1,0.1 do
  2117. wait()
  2118. derp.Transparency=derp.Transparency-0.1
  2119. end
  2120. derp.Transparency=0
  2121. end),hatp)
  2122. end
  2123. end
  2124. for _,v in pairs(m:children()) do
  2125. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2126. coroutine.resume(coroutine.create(function()
  2127. for i=0,1,0.1 do
  2128. wait()
  2129. v.Transparency=v.Transparency-0.1
  2130. end
  2131. v.Transparency=0
  2132. end))
  2133. v.Transparency=0
  2134. end
  2135. end
  2136. end
  2137.  
  2138. local origcolor = BrickColor.new("Pastel light blue")
  2139. ---- This section of explosions.
  2140. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2141. local expart = Instance.new("Part",char)
  2142. local expart2 = Instance.new("Part",char)
  2143. local rin = Instance.new("Part",char)
  2144. local rin2 = Instance.new("Part",char)
  2145. local partMesh = Instance.new("SpecialMesh",expart)
  2146. partMesh.MeshType = "Sphere"
  2147. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2148. partMesh2.MeshType = "Sphere"
  2149. local partMesh3 = Instance.new("SpecialMesh",rin)
  2150. partMesh3.MeshType = "Brick"
  2151. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2152. partMesh4.MeshType = "Brick"
  2153. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2154. partMesh.Scale = vt(rad,rad,rad)
  2155. expart.Size = vt(1,1,1)
  2156. expart.Transparency = 0
  2157. expart.Anchored = true
  2158. expart.Material = "Neon"
  2159. expart.BrickColor = bc("White")
  2160. expart.CFrame = par.CFrame
  2161. partMesh2.Scale = vt(rad,rad,rad)
  2162. expart2.Size = vt(1.15,1.15,1.15)
  2163. expart2.Transparency = 0.5
  2164. expart2.Anchored = true
  2165. expart2.Material = "Neon"
  2166. expart2.BrickColor = par.BrickColor
  2167. expart2.CFrame = par.CFrame
  2168. rin.Size = vt(1.15,1.15,1.15)
  2169. rin.Transparency = 1
  2170. rin.Anchored = true
  2171. rin.Material = "Neon"
  2172. rin.BrickColor = par.BrickColor
  2173. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2174. rin2.Size = vt(1.15,1.15,1.15)
  2175. rin2.Transparency = 1
  2176. rin2.Anchored = true
  2177. rin2.Material = "Neon"
  2178. rin2.BrickColor = par.BrickColor
  2179. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2180. partMesh3.Scale = vt(0,1,0)
  2181. partMesh4.Scale = vt(0,1,0)
  2182. local dec2 = Instance.new("Decal", rin)
  2183. dec2.Face = "Top"
  2184. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2185. dec2.Parent = rin
  2186. local dec2b = dec2:Clone()
  2187. dec2b.Face = "Bottom"
  2188. dec2b.Parent = rin
  2189.  
  2190. local dec2a = Instance.new("Decal", rin2)
  2191. dec2a.Face = "Top"
  2192. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2193. dec2a.Parent = rin2
  2194. local dec2ab = dec2a:Clone()
  2195. dec2ab.Face = "Bottom"
  2196. dec2ab.Parent = rin2
  2197. expart.CanCollide = false
  2198. expart2.CanCollide = false
  2199. rin.CanCollide = false
  2200. rin2.CanCollide = false
  2201. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2202. local value = 1*rad/6.5
  2203. for i = 0, 199 do
  2204. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2205. expart.CFrame = expart.CFrame
  2206. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2207. expart2.CFrame = expart.CFrame
  2208. value = value - 0.035*rad/30
  2209. if value < 7.5 then
  2210. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2211. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2212. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2213. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2214. end
  2215. if value < 0 then
  2216. dec2.Transparency = dec2.Transparency + 0.025
  2217. dec2a.Transparency = dec2a.Transparency + 0.025
  2218. dec2b.Transparency = dec2b.Transparency + 0.025
  2219. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2220. expart.Transparency = expart.Transparency + 0.025
  2221. expart2.Transparency = expart2.Transparency + 0.025
  2222. rin.Transparency = rin.Transparency + 0.025
  2223. rin2.Transparency = rin2.Transparency + 0.025
  2224. end
  2225. swait()
  2226. end
  2227. game:GetService("Debris"):AddItem(expart, 1)
  2228. game:GetService("Debris"):AddItem(expart2, 1)
  2229. game:GetService("Debris"):AddItem(rin, 1)
  2230. game:GetService("Debris"):AddItem(rin2, 1)
  2231. end
  2232.  
  2233. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2234. local expart = Instance.new("Part",char)
  2235. local expart2 = Instance.new("Part",char)
  2236. local partMesh = Instance.new("SpecialMesh",expart)
  2237. partMesh.MeshType = "Sphere"
  2238. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2239. partMesh2.MeshType = "Sphere"
  2240. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2241. partMesh.Scale = vt(rad,rad,rad)
  2242. expart.Size = vt(1,1,1)
  2243. expart.Transparency = 0
  2244. expart.Anchored = true
  2245. expart.Material = "Neon"
  2246. expart.BrickColor = bc("White")
  2247. expart.CFrame = par.CFrame
  2248. partMesh2.Scale = vt(rad,rad,rad)
  2249. expart2.Size = vt(1.15,1.15,1.15)
  2250. expart2.Transparency = 0.5
  2251. expart2.Anchored = true
  2252. expart2.Material = "Neon"
  2253. expart2.BrickColor = par.BrickColor
  2254. expart2.CFrame = par.CFrame
  2255. expart.CanCollide = false
  2256. expart2.CanCollide = false
  2257. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2258. local value = 1*rad/6.5
  2259. for i = 0, 75 do
  2260. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2261. expart.CFrame = expart.CFrame
  2262. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2263. expart2.CFrame = expart.CFrame
  2264. value = value - 0.035*rad/5
  2265. if value < 0 then
  2266. value = 0
  2267. expart.Transparency = expart.Transparency + 0.05
  2268. expart2.Transparency = expart2.Transparency + 0.05
  2269. end
  2270. swait()
  2271. end
  2272. game:GetService("Debris"):AddItem(expart, 1)
  2273. game:GetService("Debris"):AddItem(expart2, 1)
  2274. end
  2275.  
  2276. function AreaDanger(rad,par,mindam,maxdam)
  2277. local expart = Instance.new("Part",char)
  2278. local partMesh = Instance.new("SpecialMesh",expart)
  2279. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2280. partMesh.MeshType = "Sphere"
  2281. partMesh.Scale = vt(rad,rad,rad)
  2282. expart.Size = vt(1,1,1)
  2283. expart.Transparency = 0.5
  2284. expart.Anchored = true
  2285. expart.Material = "Neon"
  2286. expart.CanCollide = false
  2287. expart.BrickColor = par.BrickColor
  2288. expart.CFrame = par.CFrame
  2289. local value = 1*rad/5
  2290. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2291. for i = 0, 14 do
  2292. wait()
  2293. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2294. expart.CFrame = expart.CFrame
  2295. value = value - 0.035*rad
  2296. if value < 0 then
  2297. value = 0
  2298. end
  2299. end
  2300. wait(0.25)
  2301. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2302. wait(0.5)
  2303. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2304. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2305. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2306. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2307. for i = 0, 14 do
  2308. wait()
  2309. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2310. expart.CFrame = expart.CFrame
  2311. value = value - 0.035*rad/2
  2312. end
  2313. expart.Transparency = 1
  2314. game:GetService("Debris"):AddItem(expart, 5)
  2315. end
  2316.  
  2317. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2318. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2319. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2320. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2321. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2322. MagniDamageWithEffect(par, 253, 533,133, 0, "Normal")
  2323. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2324. for i = 0, 24 do
  2325. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2326. end
  2327. for i = 0, 24 do
  2328. local expart = Instance.new("Part",char)
  2329. expart.Transparency = 1
  2330. expart.Anchored = true
  2331. expart.CanCollide = false
  2332. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2333. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2334. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2335. MagniDamage(expart, rad/2, mindam, maxdam, 20, "Normal")
  2336. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2337. for i = 0, 9 do
  2338. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2339. end
  2340. game:GetService("Debris"):AddItem(expart, 2)
  2341. wait(0.1)
  2342. end
  2343. end
  2344.  
  2345. function EXterPlosion(par)
  2346. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2347. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2348. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2349. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2350. MagniDamageWithEffect(par, 500, 830,933, 0, "Normal")
  2351. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2352. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2353. for i = 0, 24 do
  2354. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2355. end
  2356. for i = 0, 24 do
  2357. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2358. end
  2359. end
  2360. ----
  2361.  
  2362.  
  2363. function ring(type,pos,scale,value)
  2364. local type = type
  2365. local rng = Instance.new("Part", char)
  2366. rng.Anchored = true
  2367. rng.BrickColor = origcolor
  2368. rng.CanCollide = false
  2369. rng.FormFactor = 3
  2370. rng.Name = "Ring"
  2371. rng.Size = Vector3.new(1, 1, 1)
  2372. rng.Transparency = 0
  2373. rng.TopSurface = 0
  2374. rng.BottomSurface = 0
  2375. rng.CFrame = pos
  2376. local rngm = Instance.new("SpecialMesh", rng)
  2377. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2378. rngm.Scale = scale
  2379. local scaler2 = 1
  2380. if type == "Add" then
  2381. scaler2 = 1*value
  2382. elseif type == "Divide" then
  2383. scaler2 = 1/value
  2384. end
  2385. coroutine.resume(coroutine.create(function()
  2386. for i = 0,10,0.1 do
  2387. swait()
  2388. if type == "Add" then
  2389. scaler2 = scaler2 - 0.01*value
  2390. elseif type == "Divide" then
  2391. scaler2 = scaler2 - 0.01/value
  2392. end
  2393. rng.Transparency = rng.Transparency + 0.01
  2394. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2395. end
  2396. rng:Destroy()
  2397. end))
  2398. end
  2399.  
  2400.  
  2401. function wave(type,pos,scale,value)
  2402. local type = type
  2403. local rng = Instance.new("Part", char)
  2404. rng.Anchored = true
  2405. rng.BrickColor = origcolor
  2406. rng.CanCollide = false
  2407. rng.FormFactor = 3
  2408. rng.Name = "Ring"
  2409. rng.Size = Vector3.new(1, 1, 1)
  2410. rng.Transparency = 0
  2411. rng.TopSurface = 0
  2412. rng.BottomSurface = 0
  2413. rng.CFrame = pos
  2414. local rngm = Instance.new("SpecialMesh", rng)
  2415. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2416. rngm.Scale = scale
  2417. local scaler2 = 1
  2418. if type == "Add" then
  2419. scaler2 = 1*value
  2420. elseif type == "Divide" then
  2421. scaler2 = 1/value
  2422. end
  2423. coroutine.resume(coroutine.create(function()
  2424. for i = 0,10,0.1 do
  2425. swait()
  2426. if type == "Add" then
  2427. scaler2 = scaler2 - 0.01*value
  2428. elseif type == "Divide" then
  2429. scaler2 = scaler2 - 0.01/value
  2430. end
  2431. rng.Transparency = rng.Transparency + 0.01
  2432. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2433. end
  2434. rng:Destroy()
  2435. end))
  2436. end
  2437.  
  2438. function wind(type,pos,scale,value,speed)
  2439. local type = type
  2440. local rng = Instance.new("Part", char)
  2441. rng.Anchored = true
  2442. rng.BrickColor = origcolor
  2443. rng.CanCollide = false
  2444. rng.FormFactor = 3
  2445. rng.Name = "Ring"
  2446. rng.Size = Vector3.new(1, 1, 1)
  2447. rng.Transparency = 0
  2448. rng.TopSurface = 0
  2449. rng.BottomSurface = 0
  2450. rng.CFrame = pos
  2451. local rngm = Instance.new("SpecialMesh", rng)
  2452. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2453. rngm.Scale = scale
  2454. local scaler2 = 1
  2455. if type == "Add" then
  2456. scaler2 = 1*value
  2457. elseif type == "Divide" then
  2458. scaler2 = 1/value
  2459. end
  2460. coroutine.resume(coroutine.create(function()
  2461. for i = 0,10,0.1 do
  2462. swait()
  2463. if type == "Add" then
  2464. scaler2 = scaler2 - 0.01*value
  2465. elseif type == "Divide" then
  2466. scaler2 = scaler2 - 0.01/value
  2467. end
  2468. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2469. rng.Transparency = rng.Transparency + 0.01
  2470. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2471. end
  2472. rng:Destroy()
  2473. end))
  2474. end
  2475.  
  2476. function groundwind(type,pos,scale,value,speed)
  2477. local type = type
  2478. local rng = Instance.new("Part", char)
  2479. rng.Anchored = true
  2480. rng.BrickColor = origcolor
  2481. rng.CanCollide = false
  2482. rng.FormFactor = 3
  2483. rng.Name = "Ring"
  2484. rng.Size = Vector3.new(1, 1, 1)
  2485. rng.Transparency = 0
  2486. rng.TopSurface = 0
  2487. rng.BottomSurface = 0
  2488. rng.CFrame = pos
  2489. local rngm = Instance.new("SpecialMesh", rng)
  2490. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2491. rngm.Scale = scale
  2492. local scaler2 = 1
  2493. if type == "Add" then
  2494. scaler2 = 1*value
  2495. elseif type == "Divide" then
  2496. scaler2 = 1/value
  2497. end
  2498. coroutine.resume(coroutine.create(function()
  2499. for i = 0,10,0.1 do
  2500. swait()
  2501. if type == "Add" then
  2502. scaler2 = scaler2 - 0.01*value
  2503. elseif type == "Divide" then
  2504. scaler2 = scaler2 - 0.01/value
  2505. end
  2506. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2507. rng.Transparency = rng.Transparency + 0.01
  2508. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2509. end
  2510. rng:Destroy()
  2511. end))
  2512. end
  2513.  
  2514. function sphere(type,pos,scale,value)
  2515. local type = type
  2516. local rng = Instance.new("Part", char)
  2517. rng.Anchored = true
  2518. rng.BrickColor = origcolor
  2519. rng.CanCollide = false
  2520. rng.FormFactor = 3
  2521. rng.Name = "Ring"
  2522. rng.Material = "Neon"
  2523. rng.Size = Vector3.new(1, 1, 1)
  2524. rng.Transparency = 0
  2525. rng.TopSurface = 0
  2526. rng.BottomSurface = 0
  2527. rng.CFrame = pos
  2528. local rngm = Instance.new("SpecialMesh", rng)
  2529. rngm.MeshType = "Sphere"
  2530. rngm.Scale = scale
  2531. local scaler2 = 1
  2532. if type == "Add" then
  2533. scaler2 = 1*value
  2534. elseif type == "Divide" then
  2535. scaler2 = 1/value
  2536. end
  2537. coroutine.resume(coroutine.create(function()
  2538. for i = 0,10,0.1 do
  2539. swait()
  2540. if type == "Add" then
  2541. scaler2 = scaler2 - 0.01*value
  2542. elseif type == "Divide" then
  2543. scaler2 = scaler2 - 0.01/value
  2544. end
  2545. rng.Transparency = rng.Transparency + 0.01
  2546. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2547. end
  2548. rng:Destroy()
  2549. end))
  2550. end
  2551.  
  2552. function beam(type,pos,scale,value)
  2553. local type = type
  2554. local rng = Instance.new("Part", char)
  2555. rng.Anchored = true
  2556. rng.BrickColor = origcolor
  2557. rng.CanCollide = false
  2558. rng.FormFactor = 3
  2559. rng.Name = "Ring"
  2560. rng.Material = "Neon"
  2561. rng.Size = Vector3.new(1, 1, 1)
  2562. rng.Transparency = 0
  2563. rng.TopSurface = 0
  2564. rng.BottomSurface = 0
  2565. rng.CFrame = pos
  2566. local rngm = Instance.new("SpecialMesh", rng)
  2567. rngm.MeshType = "Sphere"
  2568. rngm.Scale = scale
  2569. rngm.Scale = rngm.Scale + Vector3.new(0,10000,0)
  2570. local scaler2 = 0.5
  2571. if type == "Add" then
  2572. scaler2 = 0.5*value
  2573. elseif type == "Divide" then
  2574. scaler2 = 0.5/value
  2575. end
  2576. coroutine.resume(coroutine.create(function()
  2577. for i = 0,10,0.1 do
  2578. swait()
  2579. if type == "Add" then
  2580. scaler2 = scaler2 - 0.01*value
  2581. elseif type == "Divide" then
  2582. scaler2 = scaler2 - 0.01/value
  2583. end
  2584. rng.Transparency = rng.Transparency + 0.01
  2585. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2586. end
  2587. rng:Destroy()
  2588. end))
  2589. end
  2590.  
  2591. function first()
  2592. attack = true
  2593. for i = 0,3,0.1 do
  2594. swait()
  2595. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(-20)),0.1)
  2596. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(20)),.1)
  2597. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(50)), 0.1)
  2598. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
  2599. end
  2600. sphere("Divide",sorb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),10)
  2601. local lookvalue = 15
  2602. coroutine.resume(coroutine.create(function()
  2603. local rat = Instance.new("Part")
  2604. rat.Parent = char
  2605. rat.CFrame = root.CFrame
  2606. rat.Transparency = 1
  2607. rat.CanCollide = false
  2608. rat.Anchored = true
  2609. for i = 0, 4 do
  2610. local lb = Instance.new("Part")
  2611. CFuncs["Sound"].Create("rbxassetid://142070127", lb, 1, 1)
  2612. CFuncs["Sound"].Create("rbxassetid://255679373", lb, 1, 1)
  2613. lb.Parent = char
  2614. lb.BrickColor = origcolor
  2615. lb.CanCollide = false
  2616. lb.Material = "Neon"
  2617. lb.Anchored = true
  2618. lb.TopSurface = 0
  2619. lb.BottomSurface = 0
  2620. lb.Transparency = 1
  2621. lb.Size = vt(0.5,0.5,0.5)
  2622. lb.CFrame = rat.CFrame + rat.CFrame.lookVector*lookvalue
  2623. lb.CFrame = lb.CFrame + Vector3.new(0,-3,0)
  2624. game:GetService("Debris"):AddItem(lb, 3)
  2625. beam("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),3.5)
  2626. sphere("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),3.5)
  2627. ring("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,10),2.5)
  2628. wave("Divide",lb.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.25,1),3.5)
  2629. lookvalue = lookvalue + 15
  2630. MagniDamage(lb, 153, 7113, 0, "Normal")
  2631. wait(0.25)
  2632. end
  2633. rat:Destroy()
  2634. end))
  2635. for i = 0,1,0.1 do
  2636. swait()
  2637. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  2638. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  2639. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.5)
  2640. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-70)), 0.5)
  2641. end
  2642. attack = false
  2643. end
  2644.  
  2645. local dashing = false
  2646.  
  2647. function dash()
  2648. dashing = true
  2649. attack = true
  2650. local bv = Instance.new("BodyVelocity")
  2651. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2652. bv.velocity = root.CFrame.lookVector*200
  2653. bv.Parent = root
  2654. CFuncs["Sound"].Create("rbxassetid://200632211", root, 1, 0.5)
  2655. ring("Divide",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,1,10),1.5)
  2656. wave("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),2.5)
  2657. for i = 0,1,0.1 do
  2658. swait()
  2659. bv.velocity = root.CFrame.lookVector*200
  2660. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(0)),0.5)
  2661. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  2662. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(50)), 0.5)
  2663. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(-50)), 0.5)
  2664. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  2665. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  2666. end
  2667. bv:Destroy()
  2668. attack = false
  2669. dashing = false
  2670. end
  2671.  
  2672. function Spiraling()
  2673. attack = true
  2674. CFuncs["Sound"].Create("rbxassetid://214876666", root, 1, 1)
  2675. sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5)
  2676. for i = 0,5,0.1 do
  2677. swait()
  2678. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2679. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2680. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1)
  2681. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1)
  2682. end
  2683. CFuncs["Sound"].Create("rbxassetid://138079095", root, 1.5, 0.4)
  2684. CFuncs["Sound"].Create("rbxassetid://154723542", root, 2.5, 1)
  2685. coroutine.resume(coroutine.create(function()
  2686. beam("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),2)
  2687. sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5)
  2688. for i = 0, 4 do
  2689. wait(0.1)
  2690. MagniDamage(root, 603, 113,183, 0, "Normal")
  2691. groundwind("Add",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(2,4),5)
  2692. end
  2693. end))
  2694. for z = 0, 2 do
  2695. for i = 0,1,0.5 do
  2696. swait()
  2697. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
  2698. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2699. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  2700. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  2701. end
  2702. for i = 0,1,0.5 do
  2703. swait()
  2704. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5)
  2705. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2706. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  2707. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  2708. end
  2709. for i = 0,1,0.5 do
  2710. swait()
  2711. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5)
  2712. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2713. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  2714. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  2715. end
  2716. for i = 0,1,0.5 do
  2717. swait()
  2718. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5)
  2719. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2720. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  2721. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  2722. end
  2723. end
  2724. attack = false
  2725. end
  2726.  
  2727. function SkyBeam()
  2728. local currentws = hum.WalkSpeed
  2729. attack = true
  2730. hum.WalkSpeed = 0
  2731. CFuncs["Sound"].Create("rbxassetid://138079095", cahr, 0.5, 0.4)
  2732. sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5)
  2733. for i = 0,3,0.1 do
  2734. swait()
  2735. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2736. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  2737. RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.1)
  2738. LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.1)
  2739. end
  2740. local rng = Instance.new("Part", char)
  2741. CFuncs["Sound"].Create("rbxassetid://343211019", char, 1, 0.6)
  2742. rng.Anchored = true
  2743. rng.BrickColor = origcolor
  2744. rng.CanCollide = false
  2745. rng.FormFactor = 3
  2746. rng.Name = "Ring"
  2747. rng.Material = "Neon"
  2748. rng.Size = Vector3.new(1, 1, 1)
  2749. rng.Transparency = 1
  2750. rng.TopSurface = 0
  2751. rng.BottomSurface = 0
  2752. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  2753. local rngm = Instance.new("SpecialMesh", rng)
  2754. rngm.MeshType = "Brick"
  2755. local dec = Instance.new("Decal",rng)
  2756. dec.Texture = "http://www.roblox.com/asset/?id=852097462"
  2757. dec.Face = "Top"
  2758. local dec2 = dec:Clone()
  2759. dec2.Parent = rng
  2760. dec2.Face = "Bottom"
  2761.  
  2762. local scaler2 = 1
  2763. scaler2 = 1*3
  2764. for i = 0,10,0.1 do
  2765. swait()
  2766. scaler2 = scaler2 - 0.01*3
  2767. rng.Transparency = rng.Transparency + 0.01
  2768. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  2769. end
  2770. groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10))
  2771. wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10))
  2772. CFuncs["Sound"].Create("rbxassetid://136007472", char, 0.5, 0.7)
  2773. for i = 0,14,0.1 do
  2774. swait()
  2775. MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25)
  2776. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2777. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.1)
  2778. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(10)), 0.1)
  2779. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.1)
  2780. end
  2781. for i = 0,2,0.1 do
  2782. swait()
  2783. MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25)
  2784. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.5)
  2785. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2786. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(10)), 0.5)
  2787. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.5)
  2788. end
  2789. MagniDamage(root, 165, 252,452, 0, "Normal")
  2790. CFuncs["Sound"].Create("rbxassetid://157878578", char, 0.5, 0.5)
  2791. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1, 1)
  2792. CFuncs["Sound"].Create("rbxassetid://162271116", char, 0.5, 0.65)
  2793. CFuncs["Sound"].Create("rbxassetid://151304356", char, 0.5, 0.35)
  2794. CFuncs["Sound"].Create("rbxassetid://31762335", char, 0.5, 0.5)
  2795. beam("Add",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),5)
  2796. coroutine.resume(coroutine.create(function()
  2797. for i = 0, 9 do
  2798. wait(0.1)
  2799. groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10))
  2800. wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10))
  2801. end
  2802. end))
  2803. wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),5)
  2804. wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(100,0,100),5)
  2805. ring("Add",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,100),7.5)
  2806. coroutine.resume(coroutine.create(function()
  2807. for i = 0,10,0.1 do
  2808. swait()
  2809. scaler2 = scaler2 - 0.01*3
  2810. rng.Transparency = rng.Transparency + 0.01
  2811. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  2812. end
  2813. rng:Destroy()
  2814. end))
  2815. attack = false
  2816. hum.WalkSpeed = currentws
  2817. end
  2818.  
  2819. --- Above is skillmoves to function.
  2820. --- I swear im watching you.
  2821. --- Dont leak this one...
  2822. -------------- Attack Combo Section -------------
  2823.  
  2824. function attackone()
  2825. attack = true
  2826. for i = 0,2,0.1 do
  2827. swait()
  2828. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
  2829. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.2)
  2830. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  2831. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  2832. end
  2833.  
  2834. local a = Instance.new("Part",Character)
  2835. a.Name = "Direction"
  2836. a.Anchored = true
  2837. a.BrickColor = bc("Bright red")
  2838. a.Material = "Neon"
  2839. a.Transparency = 1
  2840. a.CanCollide = false
  2841. local ray = Ray.new(
  2842. sorb.CFrame.p, -- origin
  2843. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  2844. )
  2845. local ignore = Character
  2846. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2847. a.BottomSurface = 10
  2848. a.TopSurface = 10
  2849. local distance = (root.CFrame.p - position).magnitude
  2850. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2851. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2852. local lb = Instance.new("Part")
  2853. CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
  2854. lb.Parent = char
  2855. lb.BrickColor = origcolor
  2856. lb.CanCollide = false
  2857. lb.Material = "Neon"
  2858. lb.Anchored = true
  2859. lb.TopSurface = 0
  2860. lb.BottomSurface = 0
  2861. lb.Transparency = 0
  2862. lb.Size = vt(2,2,2)
  2863. lb.CFrame = a.CFrame
  2864. lb.Anchored = false
  2865. local thingery = Instance.new("SpecialMesh",lb)
  2866. thingery.MeshType = "Sphere"
  2867. game:GetService("Debris"):AddItem(lb, 5)
  2868. local bv = Instance.new("BodyVelocity")
  2869. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2870. bv.velocity = a.CFrame.lookVector*100
  2871. bv.Parent = lb
  2872. local hitted = false
  2873. game:GetService("Debris"):AddItem(a, 0.1)
  2874. coroutine.resume(coroutine.create(function()
  2875. while wait(0.5) do
  2876. if hitted == false or lb.Parent ~= nil then
  2877. wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10)
  2878. end
  2879. if hitted == true or lb.Parent == nil then
  2880. break
  2881. end
  2882. end
  2883. end))
  2884. wait(0.01)
  2885. lb.Touched:connect(function(hit)
  2886. Damagefunc(lb, hit, 522, 12, 0, "Normal", RootPart, 0.3, "588733541", 0.8)
  2887. end)
  2888. attack = false
  2889. end
  2890.  
  2891. function attacktwo()
  2892. attack = true
  2893. for i = 0,2,0.1 do
  2894. MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.1,0.1,0.1,0.25)
  2895. swait()
  2896. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.2)
  2897. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.2)
  2898. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  2899. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  2900. end
  2901.  
  2902. local a = Instance.new("Part",Character)
  2903. a.Name = "Direction"
  2904. a.Anchored = true
  2905. a.BrickColor = bc("Bright red")
  2906. a.Material = "Neon"
  2907. a.Transparency = 1
  2908. a.CanCollide = false
  2909. local ray = Ray.new(
  2910. sorb2.CFrame.p, -- origin
  2911. (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
  2912. )
  2913. local ignore = Character
  2914. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2915. a.BottomSurface = 10
  2916. a.TopSurface = 10
  2917. local distance = (root.CFrame.p - position).magnitude
  2918. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2919. a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0)
  2920. local lb = Instance.new("Part")
  2921. CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
  2922. lb.Parent = char
  2923. lb.BrickColor = origcolor
  2924. lb.CanCollide = false
  2925. lb.Material = "Neon"
  2926. lb.Anchored = true
  2927. lb.TopSurface = 0
  2928. lb.BottomSurface = 0
  2929. lb.Transparency = 0
  2930. lb.Size = vt(2,2,2)
  2931. lb.CFrame = a.CFrame
  2932. lb.Anchored = false
  2933. local thingery = Instance.new("SpecialMesh",lb)
  2934. thingery.MeshType = "Sphere"
  2935. game:GetService("Debris"):AddItem(lb, 5)
  2936. local bv = Instance.new("BodyVelocity")
  2937. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2938. bv.velocity = a.CFrame.lookVector*100
  2939. bv.Parent = lb
  2940. local hitted = false
  2941. game:GetService("Debris"):AddItem(a, 0.1)
  2942. coroutine.resume(coroutine.create(function()
  2943. while wait(0.5) do
  2944. if hitted == false or lb.Parent ~= nil then
  2945. wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10)
  2946. end
  2947. if hitted == true or lb.Parent == nil then
  2948. break
  2949. end
  2950. end
  2951. end))
  2952. wait(0.01)
  2953. lb.Touched:connect(function(hit)
  2954. Damagefunc(lb, hit, 522, 120, 0, "Normal", RootPart, 0.3, "588733541", 0.8)
  2955. end)
  2956. attack = false
  2957. end
  2958.  
  2959.  
  2960. function attackthree()
  2961. attack = true
  2962. for i = 0,1,0.1 do
  2963. swait()
  2964. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2965. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  2966. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1)
  2967. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1)
  2968. end
  2969. CFuncs["Sound"].Create("rbxassetid://138079095", root, 0.5, 0.4)
  2970. CFuncs["Sound"].Create("rbxassetid://154723542", root, 1.5, 1.15)
  2971. coroutine.resume(coroutine.create(function()
  2972. for i = 0, 4 do
  2973. wait(0.1)
  2974. MagniDamage(root, 222, 522,1222, 0, "Normal")
  2975. wind("Divide",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(1,2),5)
  2976. end
  2977. end))
  2978. for i = 0,1,0.5 do
  2979. swait()
  2980. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
  2981. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2982. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  2983. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  2984. end
  2985. for i = 0,1,0.5 do
  2986. swait()
  2987. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5)
  2988. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2989. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  2990. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  2991. end
  2992. for i = 0,1,0.5 do
  2993. swait()
  2994. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5)
  2995. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  2996. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  2997. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  2998. end
  2999. for i = 0,1,0.5 do
  3000. swait()
  3001. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5)
  3002. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
  3003. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3004. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3005. end
  3006. attack = false
  3007. end
  3008.  
  3009.  
  3010. function attackfour()
  3011. local currentws = hum.WalkSpeed
  3012. hum.WalkSpeed = 0
  3013. dashing = true
  3014. attack = true
  3015. for i = 0,2,0.1 do
  3016. swait()
  3017. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.1)
  3018. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  3019. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.1)
  3020. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.1)
  3021. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3022. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1)
  3023. end
  3024. for i = 0,1,0.1 do
  3025. swait()
  3026. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),0.3)
  3027. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  3028. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
  3029. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  3030. RH.C0=clerp(RH.C0,cf(1,-1,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(5)),.3)
  3031. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3032. end
  3033. MagniDamage(root, 150, 90,130, 0, "Normal")
  3034. CFuncs["Sound"].Create("rbxassetid://142070127", root, 0.25, 1.15)
  3035. CFuncs["Sound"].Create("rbxassetid://157878578", root, 1, 1.25)
  3036. wave("Divide",rleg.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),3.5)
  3037. ring("Divide",rleg.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,25),1.5)
  3038. dashing = false
  3039. attack = false
  3040. hum.WalkSpeed = currentws
  3041. end
  3042.  
  3043. -- Functions are ready.
  3044.  
  3045. local attacktype = 1
  3046. mouse.Button1Down:connect(function()
  3047. if attack == false and attacktype == 1 then
  3048. attacktype = 2
  3049. attackone()
  3050. elseif attack == false and attacktype == 2 then
  3051. attacktype = 3
  3052. attacktwo()
  3053. elseif attack == false and attacktype == 3 then
  3054. attacktype = 4
  3055. attackthree()
  3056. elseif attack == false and attacktype == 4 then
  3057. attacktype = 1
  3058. attackfour()
  3059. end
  3060. end)
  3061. mouse.KeyDown:connect(function(k)
  3062. if k == "z" and attack == false then
  3063. first()
  3064. end
  3065. if k == "x" and attack == false then
  3066. dash()
  3067. end
  3068. if k == "c" and attack == false then
  3069. Spiraling()
  3070. end
  3071. if k == "v" and attack == false then
  3072. SkyBeam()
  3073. end
  3074. end)
  3075. Humanoid.Animator.Parent = nil
  3076. idleanim=.4
  3077. while true do
  3078. swait()
  3079. MagicBlock(origcolor,sorb.CFrame,1,1,1,0.1,0.1,0.1,0.25)
  3080. sine = sine + change
  3081. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3082. local velderp=RootPart.Velocity.y
  3083. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3084. if equipped==true or equipped==false then
  3085. if attack==false then
  3086. idle=idle+1
  3087. else
  3088. idle=0
  3089. end
  3090. if idle>=500 then
  3091. if attack==false then
  3092. --Sheath()
  3093. end
  3094. end
  3095. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3096. Anim="Jump"
  3097. if attack==false then
  3098. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3099. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3100. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3101. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3102. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  3103. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  3104. end
  3105. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3106. Anim="Fall"
  3107. if attack==false then
  3108. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  3109. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  3110. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3111. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3112. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  3113. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  3114. end
  3115. elseif torvel<1 and hitfloor~=nil then
  3116. Anim="Idle"
  3117. if dashing == false then
  3118. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3119. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  3120. end
  3121. if attack==false then
  3122. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(40)),.1)
  3123. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-40)),.1)
  3124. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(2.5),math.rad(0),math.rad(20 - 0.5 * math.cos(sine / 25))),.1)
  3125. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 1.5 * math.cos(sine / 25))),.1)
  3126. end
  3127. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  3128. Anim="Walk"
  3129. if dashing == false then
  3130. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1)
  3131. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1)
  3132. end
  3133. if attack==false then
  3134. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0 - 10 * math.cos(sine / 12.5))),.1)
  3135. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0 + 10 * math.cos(sine / 12.5))),.1)
  3136. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(10)),.1)
  3137. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(-10)),.1)
  3138. end
  3139. elseif torvel>=22 and hitfloor~=nil then
  3140. Anim="Run"
  3141. if dashing == false then
  3142. 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)
  3143. 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)
  3144. end
  3145. if attack==false then
  3146. 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)
  3147. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3148. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  3149. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  3150. end
  3151. end
  3152. end
  3153. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement