zXzGamePROzXz

Crystal Warden

Jan 21st, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.79 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. -- Extracted from nebula hub by DOGGΩ#0018
  7. wait(0.016666666666667)
  8.  
  9. Effects = {}
  10.  
  11. local Player = game.Players.localPlayer
  12.  
  13. local Character = Player.Character
  14.  
  15. local Humanoid = Character.Humanoid
  16.  
  17. local mouse = Player:GetMouse()
  18.  
  19. local m = Instance.new("Model", Character)
  20.  
  21. m.Name = "WeaponModel"
  22.  
  23. local LeftArm = Character["Left Arm"]
  24.  
  25. local RightArm = Character["Right Arm"]
  26.  
  27. local LeftLeg = Character["Left Leg"]
  28.  
  29. local RightLeg = Character["Right Leg"]
  30.  
  31. local Head = Character.Head
  32.  
  33. local Torso = Character.Torso
  34.  
  35. local cam = game.Workspace.CurrentCamera
  36.  
  37. local RootPart = Character.HumanoidRootPart
  38.  
  39. local RootJoint = RootPart.RootJoint
  40.  
  41. local equipped = false
  42.  
  43. local attack = false
  44.  
  45. local Anim = "Idle"
  46.  
  47. local idle = 0
  48.  
  49. local attacktype = 1
  50.  
  51. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  52.  
  53. local velocity = RootPart.Velocity.y
  54.  
  55. local sine = 0
  56.  
  57. local change = 1
  58.  
  59. local grabbed = false
  60.  
  61. local cn = CFrame.new
  62.  
  63. local mr = math.rad
  64.  
  65. local angles = CFrame.Angles
  66.  
  67. local ud = UDim2.new
  68.  
  69. local c3 = Color3.new
  70.  
  71. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  72.  
  73. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  74.  
  75. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  76.  
  77. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  78.  
  79. clerp = function(a, b, t)
  80.  
  81. return a:lerp(b, t)
  82.  
  83. end
  84.  
  85. swait = function(num)
  86.  
  87. if num == 0 or num == nil then
  88.  
  89. game:service("RunService").Heartbeat:wait(0)
  90.  
  91. else
  92.  
  93. for i = 0, num do
  94.  
  95. game:service("RunService").Heartbeat:wait(0)
  96.  
  97. end
  98.  
  99. end
  100.  
  101. end
  102.  
  103. fat = Instance.new("BindableEvent", script)
  104.  
  105. fat.Name = "Heartbeat"
  106.  
  107. script:WaitForChild("Heartbeat")
  108.  
  109. frame = 0.033333333333333
  110.  
  111. tf = 0
  112.  
  113. allowframeloss = false
  114.  
  115. tossremainder = false
  116.  
  117. lastframe = tick()
  118.  
  119. script.Heartbeat:Fire()
  120.  
  121. game:GetService("RunService").Heartbeat:connect(function(s, p)
  122.  
  123. tf = tf + s
  124.  
  125. if frame <= tf then
  126.  
  127. if allowframeloss then
  128.  
  129. script.Heartbeat:Fire()
  130.  
  131. lastframe = tick()
  132.  
  133. else
  134.  
  135. for i = 1, math.floor(tf / frame) do
  136.  
  137. script.Heartbeat:Fire()
  138.  
  139. end
  140.  
  141. lastframe = tick()
  142.  
  143. end
  144.  
  145. if tossremainder then
  146.  
  147. tf = 0
  148.  
  149. else
  150.  
  151. tf = tf - frame * math.floor(tf / frame)
  152.  
  153. end
  154.  
  155. end
  156.  
  157. end)
  158.  
  159. local RbxUtility = LoadLibrary("RbxUtility")
  160.  
  161. local Create = RbxUtility.Create
  162.  
  163. RemoveOutlines = function(CreatePart)
  164.  
  165. CreatePart.TopSurface = 10
  166.  
  167. end
  168.  
  169. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  170.  
  171. local Part = Create("Part")({Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material, Parent = Parent})
  172.  
  173. RemoveOutlines(Part)
  174.  
  175. return Part
  176.  
  177. end
  178.  
  179. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  180.  
  181. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  182.  
  183. if Mesh == "SpecialMesh" then
  184.  
  185. Msh.MeshType = MeshType
  186.  
  187. Msh.MeshId = MeshId
  188.  
  189. end
  190.  
  191. return Msh
  192.  
  193. end
  194.  
  195. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  196.  
  197. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  198.  
  199. return Weld
  200.  
  201. end
  202.  
  203. rayCast = function(Position, Direction, Range, Ignore)
  204.  
  205. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  206.  
  207. end
  208.  
  209. CreateSound = function(id, par, vol, pit)
  210.  
  211. coroutine.resume(coroutine.create(function()
  212.  
  213. local sou = Instance.new("Sound", par or workspace)
  214.  
  215. sou.Volume = vol
  216.  
  217. sou.Pitch = pit or 1
  218.  
  219. sou.SoundId = id
  220.  
  221. swait()
  222.  
  223. sou:play()
  224.  
  225. game:GetService("Debris"):AddItem(sou, 6)
  226.  
  227. end))
  228.  
  229. end
  230.  
  231. local getclosest = function(obj, distance)
  232.  
  233. local last, lastx = distance + 1, nil
  234.  
  235. for i,v in pairs(workspace:GetChildren()) do
  236.  
  237. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  238.  
  239. local t = v.Torso
  240.  
  241. local dist = t.Position - obj.Position.magnitude
  242.  
  243. if dist <= distance and dist < last then
  244.  
  245. last = dist
  246.  
  247. lastx = v
  248.  
  249. end
  250.  
  251. end
  252.  
  253. end
  254.  
  255. return lastx
  256.  
  257. end
  258.  
  259. Damage = function(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  260.  
  261. for i,v in pairs(hit:GetChildren()) do
  262.  
  263. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  264.  
  265. local find = v:FindFirstChild("Hitz")
  266.  
  267. if not find then
  268.  
  269. if v.Parent:findFirstChild("Head") then
  270.  
  271. local BillG = Create("BillboardGui")({Parent = v.Parent.Head, Size = UDim2.new(1, 0, 1, 0), Adornee = v.Parent.Head, StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3))})
  272.  
  273. do
  274.  
  275. local TL = Create("TextLabel")({Parent = BillG, Size = UDim2.new(3, 3, 3, 3), BackgroundTransparency = 1, Text = tostring(damage) .. "-", TextColor3 = Color1.Color, TextStrokeColor3 = Color2.Color, TextStrokeTransparency = 0, TextXAlignment = Enum.TextXAlignment.Center, TextYAlignment = Enum.TextYAlignment.Center, FontSize = Enum.FontSize.Size18, Font = "ArialBold"})
  276.  
  277. coroutine.resume(coroutine.create(function()
  278.  
  279. swait(2)
  280.  
  281. for i = 0, 1, 0.1 do
  282.  
  283. swait(2)
  284.  
  285. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, 0.1, 0)
  286.  
  287. end
  288.  
  289. BillG:Destroy()
  290.  
  291. end))
  292.  
  293. end
  294.  
  295. end
  296.  
  297. do
  298.  
  299. HitHealth = v.Health
  300.  
  301. v.Health = v.Health - damage
  302.  
  303. if HitHealth ~= v.Health and HitHealth ~= 0 and v.Health <= 0 and v.Parent.Name ~= "Lost Soul" then
  304.  
  305. print("gained spree")
  306.  
  307. Player:FindFirstChild("leaderstats").Spree.Value = Player.leaderstats.Spree.Value + 1
  308.  
  309. end
  310.  
  311. do
  312.  
  313. local bool = Create("BoolValue")({Parent = v, Name = "Hitz"})
  314.  
  315. if HSound ~= nil and HPitch ~= nil then
  316.  
  317. CreateSound(HSound, hit, 1, HPitch)
  318.  
  319. end
  320.  
  321. game:GetService("Debris"):AddItem(bool, cooldown)
  322.  
  323. -- DECOMPILER ERROR at PC170: LeaveBlock: unexpected jumping out DO_STMT
  324.  
  325.  
  326.  
  327. -- DECOMPILER ERROR at PC170: LeaveBlock: unexpected jumping out IF_THEN_STMT
  328.  
  329.  
  330.  
  331. -- DECOMPILER ERROR at PC170: LeaveBlock: unexpected jumping out IF_STMT
  332.  
  333.  
  334.  
  335. -- DECOMPILER ERROR at PC170: LeaveBlock: unexpected jumping out IF_THEN_STMT
  336.  
  337.  
  338.  
  339. -- DECOMPILER ERROR at PC170: LeaveBlock: unexpected jumping out IF_STMT
  340.  
  341.  
  342.  
  343. end
  344.  
  345. end
  346.  
  347. end
  348.  
  349. end
  350.  
  351. end
  352.  
  353. end
  354.  
  355. MagnitudeDamage = function(Part, magni, mindam, maxdam)
  356.  
  357. for _,c in pairs(workspace:children()) do
  358.  
  359. local hum = c:findFirstChild("Humanoid")
  360.  
  361. if hum ~= nil then
  362.  
  363. local head = c:findFirstChild("Torso")
  364.  
  365. if head ~= nil then
  366.  
  367. local targ = head.Position - Part.Position
  368.  
  369. local mag = targ.magnitude
  370.  
  371. if mag <= magni and c.Name ~= Player.Name then
  372.  
  373. Damage(head.Parent, math.random(mindam, maxdam), 0.5, BrickColor.new("Institutional white"), BrickColor.new("Toothpaste"), "", 1)
  374.  
  375. end
  376.  
  377. end
  378.  
  379. end
  380.  
  381. end
  382.  
  383. end
  384.  
  385. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Mid gray", "Handle", Vector3.new(1.01999998, 2.00999999, 1.01999998))
  386.  
  387. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.10351563e-05, -0.00500059128, -4.57763672e-05, 1, -9.14604001e-08, 5.96046377e-08, 9.14604001e-08, 1, 5.0481745e-08, -5.96046448e-08, -5.04817379e-08, 1))
  388.  
  389. Hitbox = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Mid gray", "Hitbox", Vector3.new(1.01999998, 1.00999999, 1.01999998))
  390.  
  391. Hitboxweld = CreateWeld(m, Handle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.499997139, 0, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  392.  
  393. MagicPrt = CreatePart(m, Enum.Material.Neon, 0, 0.80000001192093, "Toothpaste", "MagicPrt", Vector3.new(0.600000024, 0.400000036, 0.600000024))
  394.  
  395. MagicPrtweld = CreateWeld(m, Handle, MagicPrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.414996862, 0.510009766, 1.52587891e-05, 4.09648088e-15, -1, -7.10542736e-15, -1, -1.0114373e-14, 3.55271368e-15, 3.55271368e-15, 7.10542736e-15, -1))
  396.  
  397. CreateMesh("SpecialMesh", MagicPrt, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  398.  
  399. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.620000005))
  400.  
  401. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.210006714, 0.915004253, -3.05175781e-05, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  402.  
  403. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.610000014, 0.200000003))
  404.  
  405. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409973145, 0.0999991894, -0.210037231, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  406.  
  407. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.01999998, 0.200000003, 0.200000003))
  408.  
  409. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.05175781e-05, -0.294996262, -0.410003662, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  410.  
  411. Part = CreatePart(m, Enum.Material.Neon, 0, 0.69999998807907, "Toothpaste", "Part", Vector3.new(0.400000036, 0.200000003, 0.400000036))
  412.  
  413. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.414996386, 0.530059814, -1.52587891e-05, 4.09648088e-15, -1, -7.10542736e-15, -1, -1.0114373e-14, 3.55271368e-15, 3.55271368e-15, 7.10542736e-15, -1))
  414.  
  415. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  416.  
  417. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.20999992, 0.200000003))
  418.  
  419. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.209976196, 0.410007, -0.410018921, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  420.  
  421. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.619999945, 0.200000003, 0.200000003))
  422.  
  423. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199981689, 0.914999247, -0.0100097656, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  424.  
  425. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.01999998, 0.200000003, 0.600000024))
  426.  
  427. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.05175781e-05, -0.294999599, -0.00999450684, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  428.  
  429. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.01999998, 0.200000003, 0.219999969))
  430.  
  431. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.05175781e-05, -0.294999599, 0.399993896, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  432.  
  433. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.800000012, 0.200000003, 1))
  434.  
  435. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.404997349, 0.409973145, 1.52587891e-05, 4.09648088e-15, -1, -7.10542736e-15, -1, -1.0114373e-14, 3.55271368e-15, 3.55271368e-15, 7.10542736e-15, -1))
  436.  
  437. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  438.  
  439. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Mid gray", "Part", Vector3.new(1.01999998, 0.609999955, 1.01999998))
  440.  
  441. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.699996233, 0, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  442.  
  443. Part = CreatePart(m, Enum.Material.Neon, 0, 0.5, "Toothpaste", "Part", Vector3.new(0.25999999, 0.200000003, 0.200000003))
  444.  
  445. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.612922668, 0.420043945, 0.230499268, -1.0086417e-08, -0.821694076, 0.569928885, -1, 1.33874041e-08, 1.60360258e-09, -8.94753072e-09, -0.569928944, -0.821694136))
  446.  
  447. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.50000006))
  448.  
  449. Part = CreatePart(m, Enum.Material.Neon, 0, 0.5, "Toothpaste", "Part", Vector3.new(0.25999999, 0.200000003, 0.200000003))
  450.  
  451. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.80483532, 0.419967651, -0.0164337158, 1.27423683e-09, -0.999788642, -0.0205608252, -1, -1.27442534e-09, -4.51549909e-12, -2.16786589e-11, 0.0205608252, -0.999788582))
  452.  
  453. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.400000095))
  454.  
  455. Part = CreatePart(m, Enum.Material.Neon, 0, 0.5, "Toothpaste", "Part", Vector3.new(0.25999999, 0.200000003, 0.200000003))
  456.  
  457. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.802575111, 0.419998169, -0.126342773, 1.27423683e-09, -0.999788642, -0.0205608252, -1, -1.27442534e-09, -4.51549909e-12, -2.16786589e-11, 0.0205608252, -0.999788582))
  458.  
  459. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.400000095))
  460.  
  461. Part = CreatePart(m, Enum.Material.Neon, 0, 0.5, "Toothpaste", "Part", Vector3.new(0.25999999, 0.200000003, 0.200000003))
  462.  
  463. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.807302475, 0.419967651, 0.103515625, 1.27423683e-09, -0.999788642, -0.0205608252, -1, -1.27442534e-09, -4.51549909e-12, -2.16786589e-11, 0.0205608252, -0.999788582))
  464.  
  465. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.400000095))
  466.  
  467. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.610000014, 0.200000003))
  468.  
  469. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409988403, 0.100003958, 0.189987183, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  470.  
  471. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Toothpaste", "Part", Vector3.new(0.800000012, 0.200000003, 0.660000026))
  472.  
  473. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.414997339, 0.420028687, -4.57763672e-05, 4.09648088e-15, -1, -7.10542736e-15, -1, -1.0114373e-14, 3.55271368e-15, 3.55271368e-15, 7.10542736e-15, -1))
  474.  
  475. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  476.  
  477. Part = CreatePart(m, Enum.Material.Neon, 0, 0.5, "Toothpaste", "Part", Vector3.new(0.330000043, 0.200000003, 0.400000036))
  478.  
  479. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.610003471, 0.41998291, 6.10351563e-05, 4.09648088e-15, -1, -7.10542736e-15, -1, -1.0114373e-14, 3.55271368e-15, 3.55271368e-15, 7.10542736e-15, -1))
  480.  
  481. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  482.  
  483. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.210000008, 0.200000003))
  484.  
  485. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409973145, 0.710000515, -0.00997924805, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  486.  
  487. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 1.20999992, 0.200000003))
  488.  
  489. Partweld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.209991455, 0.410007, 0.409988403, 1, 3.00894606e-15, -3.55271368e-15, 3.00894606e-15, 1, 0, -3.55271368e-15, 0, 1))
  490.  
  491. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  492.  
  493. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  494.  
  495. prt.Anchored = true
  496.  
  497. prt.CFrame = cframe
  498.  
  499. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  500.  
  501. game:GetService("Debris"):AddItem(prt, 10)
  502.  
  503. if Type == 1 or Type == nil then
  504.  
  505. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  506.  
  507. else
  508.  
  509. if Type == 2 then
  510.  
  511. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  512.  
  513. end
  514.  
  515. end
  516.  
  517. end
  518.  
  519. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  520.  
  521. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  522.  
  523. prt.Anchored = true
  524.  
  525. prt.CFrame = cframe
  526.  
  527. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  528.  
  529. game:GetService("Debris"):AddItem(prt, 10)
  530.  
  531. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  532.  
  533. end
  534.  
  535. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  536.  
  537. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  538.  
  539. prt.Anchored = true
  540.  
  541. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  542.  
  543. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  544.  
  545. game:GetService("Debris"):AddItem(prt, 10)
  546.  
  547. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  548.  
  549. end
  550.  
  551. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  552.  
  553. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  554.  
  555. prt.Anchored = true
  556.  
  557. prt.CFrame = cframe
  558.  
  559. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  560.  
  561. game:GetService("Debris"):AddItem(prt, 10)
  562.  
  563. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  564.  
  565. end
  566.  
  567. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  568.  
  569. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  570.  
  571. prt.Anchored = true
  572.  
  573. prt.CFrame = cframe
  574.  
  575. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  576.  
  577. game:GetService("Debris"):AddItem(prt, 10)
  578.  
  579. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  580.  
  581. end
  582.  
  583. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  584.  
  585. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  586.  
  587. prt.Anchored = true
  588.  
  589. prt.CFrame = cframe
  590.  
  591. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  592.  
  593. game:GetService("Debris"):AddItem(prt, 10)
  594.  
  595. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  596.  
  597. end
  598.  
  599. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  600.  
  601. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  602.  
  603. prt.Anchored = true
  604.  
  605. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  606.  
  607. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  608.  
  609. local num = math.random(10, 50) / 1000
  610.  
  611. game:GetService("Debris"):AddItem(prt, 10)
  612.  
  613. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  614.  
  615. end
  616.  
  617. RSH = Torso["Right Shoulder"]
  618.  
  619. LSH = Torso["Left Shoulder"]
  620.  
  621. RH = Torso["Right Hip"]
  622.  
  623. LH = Torso["Left Hip"]
  624.  
  625. Animate = Character.Animate
  626.  
  627. Animator = Humanoid.Animator
  628.  
  629. Equip = function()
  630.  
  631. attack = true
  632.  
  633. equipped = true
  634.  
  635. RSH.Parent = nil
  636.  
  637. LSH.Parent = nil
  638.  
  639. Animator.Parent = nil
  640.  
  641. Animate.Disabled = true
  642.  
  643. RW = Create("Weld")({Name = "Right Shoulder", Part0 = Torso, C0 = CFrame.new(1.5, 0.5, 0), C1 = CFrame.new(0, 0.5, 0), Part1 = RightArm, Parent = Torso})
  644.  
  645. LW = Create("Weld")({Name = "Left Shoulder", Part0 = Torso, C0 = CFrame.new(-1.5, 0.5, 0), C1 = CFrame.new(0, 0.5, 0), Part1 = LeftArm, Parent = Torso})
  646.  
  647. attack = false
  648.  
  649. end
  650.  
  651. Unequip = function()
  652.  
  653. attack = true
  654.  
  655. for i = 0, 1, 0.1 do
  656.  
  657. swait()
  658.  
  659. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  660.  
  661. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  662.  
  663. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  664.  
  665. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  666.  
  667. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  668.  
  669. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  670.  
  671. end
  672.  
  673. equipped = false
  674.  
  675. RW.Parent = nil
  676.  
  677. LW.Parent = nil
  678.  
  679. RSH.Parent = Torso
  680.  
  681. LSH.Parent = Torso
  682.  
  683. Torso.Neck.C0 = NeckCF
  684.  
  685. RootJoint.C0 = RootCF
  686.  
  687. Animator.Parent = Humanoid
  688.  
  689. Animate.Disabled = false
  690.  
  691. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  692.  
  693. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  694.  
  695. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  696.  
  697. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  698.  
  699. attack = false
  700.  
  701. end
  702.  
  703. local Crystals = {}
  704.  
  705. local CrystalNumb = 0
  706.  
  707. local crystalhold = false
  708.  
  709. MakeCrystals = function()
  710.  
  711. attack = true
  712.  
  713. Humanoid.WalkSpeed = 6
  714.  
  715. for i = 0, 1, 0.1 do
  716.  
  717. swait()
  718.  
  719. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  720.  
  721. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
  722.  
  723. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -0.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
  724.  
  725. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  726.  
  727. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  728.  
  729. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  730.  
  731. end
  732.  
  733. for i = 0, 1, 0.1 do
  734.  
  735. swait()
  736.  
  737. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  738.  
  739. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  740.  
  741. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(60), math.rad(90)), 0.3)
  742.  
  743. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-10)), 0.3)
  744.  
  745. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), 0.3)
  746.  
  747. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), 0.3)
  748.  
  749. end
  750.  
  751. do
  752.  
  753. while crystalhold==true do
  754.  
  755. if crystalhold == true then
  756.  
  757. if CrystalNumb < 8 then
  758.  
  759. SphereEffect(MagicPrt.BrickColor, MagicPrt.CFrame, 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.05)
  760.  
  761. CreateSound("http://www.roblox.com/asset/?id=306247678", Torso, 1, 1.3)
  762.  
  763. CrystalNumb = CrystalNumb + 1
  764.  
  765. print(CrystalNumb)
  766.  
  767. local base = CreatePart(m, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "Part1", Vector3.new(1, 1, 1))
  768.  
  769. base.Anchored = true
  770.  
  771. base.CFrame = MagicPrt.CFrame
  772.  
  773. local crystall = CreatePart(base, "SmoothPlastic", 0.4, 0.3, MagicPrt.BrickColor, "Crystal", Vector3.new(2, 2, 2))
  774.  
  775. local msh = CreateMesh("SpecialMesh", crystall, "FileMesh", "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(2, 2, 2))
  776.  
  777. crystall.Anchored = false
  778.  
  779. crystall.CFrame = base.CFrame
  780.  
  781. table.insert(Crystals, crystall)
  782.  
  783. end
  784.  
  785. do
  786.  
  787. wait(0.5)
  788.  
  789. -- DECOMPILER ERROR at PC450: LeaveBlock: unexpected jumping out DO_STMT
  790.  
  791.  
  792.  
  793. -- DECOMPILER ERROR at PC450: LeaveBlock: unexpected jumping out IF_THEN_STMT
  794.  
  795.  
  796.  
  797. -- DECOMPILER ERROR at PC450: LeaveBlock: unexpected jumping out IF_STMT
  798.  
  799.  
  800.  
  801. end
  802.  
  803. end
  804.  
  805. end
  806.  
  807. Humanoid.WalkSpeed = 16
  808.  
  809. attack = false
  810.  
  811. end
  812.  
  813. end
  814.  
  815. attackone = function()
  816.  
  817. attack = true
  818.  
  819. hitted = false
  820.  
  821. local randomnumb = math.random(1, #Crystals)
  822.  
  823. local item = Crystals[randomnumb]
  824.  
  825. item.CFrame = LeftArm.CFrame
  826.  
  827. CrystalNumb = CrystalNumb - 1
  828.  
  829. table.remove(Crystals, randomnumb)
  830.  
  831. Cryst = item
  832.  
  833. for i = 0, 1, 0.1 do
  834.  
  835. swait()
  836.  
  837. item.CFrame = clerp(item.CFrame, RootPart.CFrame * CFrame.new(10, 0, -2), 0.1)
  838.  
  839. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  840.  
  841. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(50)), 0.3)
  842.  
  843. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  844.  
  845. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  846.  
  847. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  848.  
  849. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  850.  
  851. end
  852.  
  853. CreateSound("http://roblox.com/asset/?id=320557413", RightArm, 1, 1)
  854.  
  855. local con1 = Cryst.Touched:connect(function(hit)
  856.  
  857. MagnitudeDamage(Cryst, 4, 5, 15)
  858.  
  859. if hit ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  860.  
  861. CreateSound("http://www.roblox.com/asset/?id=12222005", Torso, 1, 1.5)
  862.  
  863. Cryst.Parent = nil
  864.  
  865. hitted = true
  866.  
  867. for i = 1, math.random(4, 8) do
  868.  
  869. local brokecryst = CreatePart(workspace, "SmoothPlastic", 0.4, 0.5, Cryst.BrickColor, "Crystal", Vector3.new(1, 1, 1))
  870.  
  871. local mshh = CreateMesh("SpecialMesh", brokecryst, "FileMesh", "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(math.random() - math.random(), math.random() + math.random(0, 1), math.random() - math.random()))
  872.  
  873. brokecryst.CanCollide = false
  874.  
  875. brokecryst.CFrame = Cryst.CFrame * cn(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3)) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  876.  
  877. brokecryst.Velocity = Vector3.new(math.random(-40, 40), math.random(-40, 40), math.random(-40, 40))
  878.  
  879. game:GetService("Debris"):AddItem(brokecryst, 4)
  880.  
  881. end
  882.  
  883. end
  884.  
  885. end)
  886.  
  887. for i = 0, 1, 0.1 do
  888.  
  889. swait()
  890.  
  891. item.CFrame = clerp(item.CFrame, RootPart.CFrame * CFrame.new(-5, 0, -5), 0.1)
  892.  
  893. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  894.  
  895. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.3)
  896.  
  897. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -0.5) * angles(math.rad(0), math.rad(120), math.rad(90)), 0.3)
  898.  
  899. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  900.  
  901. RH.C0 = clerp(RH.C0, cn(1, -0.8, 0) * RHCF * angles(math.rad(-3), math.rad(-30), math.rad(0)), 0.3)
  902.  
  903. LH.C0 = clerp(LH.C0, cn(-1, -0.8, 0) * LHCF * angles(math.rad(-10), math.rad(-30), math.rad(0)), 0.3)
  904.  
  905. end
  906.  
  907. con1:disconnect()
  908.  
  909. if hitted == true then
  910.  
  911. item.Parent = nil
  912.  
  913. else
  914.  
  915. if hitted == false then
  916.  
  917. CrystalNumb = CrystalNumb + 1
  918.  
  919. table.insert(Crystals, item)
  920.  
  921. end
  922.  
  923. end
  924.  
  925. attack = false
  926.  
  927. end
  928.  
  929. ShardWave = function()
  930.  
  931. attack = true
  932.  
  933. Humanoid.WalkSpeed = 0
  934.  
  935. for i = 0, 1, 0.05 do
  936.  
  937. swait()
  938.  
  939. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.7) * angles(math.rad(30), math.rad(0), math.rad(-30)), 0.2)
  940.  
  941. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.2)
  942.  
  943. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-60), math.rad(30)), 0.2)
  944.  
  945. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.2)
  946.  
  947. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(30), math.rad(-10)), 0.2)
  948.  
  949. LH.C0 = clerp(LH.C0, cn(-1, -0.3, 0) * LHCF * angles(math.rad(-10), math.rad(30), math.rad(-30)), 0.2)
  950.  
  951. end
  952.  
  953. local MainCF = RootPart.CFrame * CFrame.new(0, -3, -1)
  954.  
  955. do
  956.  
  957. for i = 1, 10 do
  958.  
  959. MainCF = MainCF * CFrame.new(0, 0, -2)
  960.  
  961. local CrystDerp = CreatePart(workspace, "SmoothPlastic", 0.4, 0.5, MagicPrt.BrickColor, "Crystal", Vector3.new(5, 5, 5))
  962.  
  963. local mshh = CreateMesh("SpecialMesh", CrystDerp, "FileMesh", "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1 + math.random(), math.random(3, 8) + math.random(), 1 + math.random()))
  964.  
  965. CrystDerp.CFrame = MainCF * CFrame.new(math.random(-5, 5), math.random(-20, -15), math.random(-5, 5))
  966.  
  967. CrystDerp.Anchored = true
  968.  
  969. game:GetService("Debris"):AddItem(CrystDerp, 4)
  970.  
  971. coroutine.resume(coroutine.create(function(Part)
  972.  
  973. for i = 1, 10 do
  974.  
  975. swait(1.5)
  976.  
  977. Part.CFrame = Part.CFrame * CFrame.new(0, 2, 0)
  978.  
  979. end
  980.  
  981. wait(0.5)
  982.  
  983. MagnitudeDamage(CrystDerp, 15, 15, 25)
  984.  
  985. CreateSound("http://www.roblox.com/asset/?id=12222005", Part, 1, 1.5)
  986.  
  987. for i = 1, math.random(2, 6) do
  988.  
  989. local brokecryst = CreatePart(workspace, "SmoothPlastic", 0.4, 0.5, MagicPrt.BrickColor, "Crystal", Vector3.new(1, 1, 1))
  990.  
  991. local mshh = CreateMesh("SpecialMesh", brokecryst, "FileMesh", "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(math.random() - math.random(), math.random() + math.random(0, 1), math.random() - math.random()))
  992.  
  993. brokecryst.CanCollide = false
  994.  
  995. brokecryst.CFrame = Part.CFrame * CFrame.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3)) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  996.  
  997. brokecryst.Velocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  998.  
  999. game:GetService("Debris"):AddItem(brokecryst, 4)
  1000.  
  1001. end
  1002.  
  1003. Part.Transparency = 1
  1004.  
  1005. end), CrystDerp)
  1006.  
  1007. end
  1008.  
  1009. end
  1010.  
  1011. SphereEffect(MagicPrt.BrickColor, MagicPrt.CFrame, 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.05)
  1012.  
  1013. for i = 0, 1, 0.03 do
  1014.  
  1015. swait()
  1016.  
  1017. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1018.  
  1019. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  1020.  
  1021. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(-120)), 0.15)
  1022.  
  1023. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-10)), 0.15)
  1024.  
  1025. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  1026.  
  1027. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  1028.  
  1029. end
  1030.  
  1031. SphereEffect(MagicPrt.BrickColor, MagicPrt.CFrame, 0.1, 0.1, 0.1, 0.5, 0.5, 0.5, 0.05)
  1032.  
  1033. for i = 0, 1, 0.05 do
  1034.  
  1035. swait()
  1036.  
  1037. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1038.  
  1039. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1040.  
  1041. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, -0.2) * angles(math.rad(0), math.rad(-80), math.rad(-150)), 0.15)
  1042.  
  1043. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-20)), 0.15)
  1044.  
  1045. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  1046.  
  1047. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  1048.  
  1049. end
  1050.  
  1051. Humanoid.WalkSpeed = 16
  1052.  
  1053. attack = false
  1054.  
  1055. end
  1056.  
  1057. Shatter = function()
  1058.  
  1059. attack = true
  1060.  
  1061. Humanoid.WalkSpeed = 4
  1062.  
  1063. for i = 0, 1, 0.05 do
  1064.  
  1065. swait()
  1066.  
  1067. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.2)
  1068.  
  1069. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.2)
  1070.  
  1071. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -0.5) * angles(math.rad(0), math.rad(130), math.rad(90)), 0.2)
  1072.  
  1073. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.2)
  1074.  
  1075. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.2)
  1076.  
  1077. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.2)
  1078.  
  1079. end
  1080.  
  1081. for i = 0, 1, 0.05 do
  1082.  
  1083. swait()
  1084.  
  1085. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1086.  
  1087. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  1088.  
  1089. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1090.  
  1091. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1092.  
  1093. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1094.  
  1095. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1096.  
  1097. end
  1098.  
  1099. for e = 1, #Crystals do
  1100.  
  1101. CreateSound("http://www.roblox.com/asset/?id=12222005", Torso, 1, 1.5)
  1102.  
  1103. CrystalNumb = CrystalNumb - 1
  1104.  
  1105. Crystals[e].Parent = nil
  1106.  
  1107. for i = 1, math.random(4, 10) do
  1108.  
  1109. local brokecryst = CreatePart(workspace, "SmoothPlastic", 0.4, 0.5, MagicPrt.BrickColor, "Crystal", Vector3.new(1, 1, 1))
  1110.  
  1111. local mshh = CreateMesh("SpecialMesh", brokecryst, "FileMesh", "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(math.random() - math.random(), math.random() + math.random(0, 1), math.random() - math.random()))
  1112.  
  1113. brokecryst.CanCollide = false
  1114.  
  1115. brokecryst.CFrame = Crystals[e].CFrame * CFrame.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3)) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1116.  
  1117. brokecryst.Velocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  1118.  
  1119. game:GetService("Debris"):AddItem(brokecryst, 4)
  1120.  
  1121. end
  1122.  
  1123. end
  1124.  
  1125. MagnitudeDamage(Torso, 25, 15, 17)
  1126.  
  1127. for i = 1, 10 do
  1128.  
  1129. print("nou")
  1130.  
  1131. for e = 1, #Crystals do
  1132.  
  1133. print(#Crystals)
  1134.  
  1135. table.remove(Crystals, e)
  1136.  
  1137. end
  1138.  
  1139. end
  1140.  
  1141. CrystalNumb = 0
  1142.  
  1143. Humanoid.WalkSpeed = 16
  1144.  
  1145. attack = false
  1146.  
  1147. end
  1148.  
  1149. SummonShards = function()
  1150.  
  1151. attack = true
  1152.  
  1153. Humanoid.WalkSpeed = 5
  1154.  
  1155. for i = 0, 1, 0.05 do
  1156.  
  1157. swait()
  1158.  
  1159. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1160.  
  1161. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1162.  
  1163. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1164.  
  1165. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
  1166.  
  1167. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1168.  
  1169. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  1170.  
  1171. end
  1172.  
  1173. do
  1174.  
  1175. for i = 1, 5 do
  1176.  
  1177. local Shard = CreatePart(m, "Neon", 0, 0.5, MagicPrt.BrickColor, "Shard", Vector3.new(5, 5, 5))
  1178.  
  1179. Shard.CanCollide = true
  1180.  
  1181. local smsh = CreateMesh("SpecialMesh", Shard, "FileMesh", "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.5, 0.5, 3))
  1182.  
  1183. Shard.Anchored = true
  1184.  
  1185. local newCF = CFrame.new(math.random(-600, 600) / 100, math.random(500, 1000) / 100, math.random(-600, 600) / 100)
  1186.  
  1187. Shard.CFrame = CFrame.new(RootPart.Position) * newCF
  1188.  
  1189. Shard.CFrame = CFrame.new(Shard.Position, mouse.Hit.p) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1190.  
  1191. SphereEffect(MagicPrt.BrickColor, Shard.CFrame, 5, 5, 10, 1, 1, 3, 0.5)
  1192.  
  1193. CreateSound("http://roblox.com/asset/?id=278596476", Shard, 1, 1.5)
  1194.  
  1195. game:GetService("Debris"):AddItem(Shard, 10)
  1196.  
  1197. local hitt = false
  1198.  
  1199. local con = Shard.Touched:connect(function(hit)
  1200.  
  1201. hitt = true
  1202.  
  1203. if hit.Name ~= "Shard" then
  1204.  
  1205. Shard.Parent = nil
  1206.  
  1207. print("hit")
  1208.  
  1209. local ref = CreatePart(workspace, "Neon", 0, 1, BrickColor.new("Toothpaste"), "Effect", Vector3.new())
  1210.  
  1211. ref.Anchored = true
  1212.  
  1213. ref.CFrame = CFrame.new(Shard.Position)
  1214.  
  1215. game:GetService("Debris"):AddItem(ref, 1)
  1216.  
  1217. for i = 1, math.random(4, 10) do
  1218.  
  1219. local brokecryst = CreatePart(workspace, "SmoothPlastic", 0.4, 0.5, MagicPrt.BrickColor, "Crystal", Vector3.new(1, 1, 1))
  1220.  
  1221. local mshh = CreateMesh("SpecialMesh", brokecryst, "FileMesh", "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(math.random() - math.random(), math.random() + math.random(0, 1), math.random() - math.random()))
  1222.  
  1223. brokecryst.CanCollide = false
  1224.  
  1225. brokecryst.CFrame = ref.CFrame * CFrame.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3)) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1226.  
  1227. brokecryst.Velocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  1228.  
  1229. game:GetService("Debris"):AddItem(brokecryst, 4)
  1230.  
  1231. end
  1232.  
  1233. CreateSound("http://www.roblox.com/asset/?id=12222005", ref, 1, 1.5)
  1234.  
  1235. MagnitudeDamage(Shard, 5, 15, 17)
  1236.  
  1237. end
  1238.  
  1239. end)
  1240.  
  1241. coroutine.resume(coroutine.create(function(Part, Cframe, numb)
  1242.  
  1243. while Part.Parent ~= nil do
  1244.  
  1245. while Part.Parent ~= nil do
  1246.  
  1247. if Part.Parent ~= nil then
  1248.  
  1249. wait()
  1250.  
  1251. numb = numb - 1
  1252.  
  1253. if numb <= 0 then
  1254.  
  1255. Part.CFrame = Part.CFrame * CFrame.new(0, 0, 5)
  1256.  
  1257. -- DECOMPILER ERROR at PC17: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1258.  
  1259.  
  1260.  
  1261. -- DECOMPILER ERROR at PC17: LeaveBlock: unexpected jumping out IF_STMT
  1262.  
  1263.  
  1264.  
  1265. -- DECOMPILER ERROR at PC17: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1266.  
  1267.  
  1268.  
  1269. -- DECOMPILER ERROR at PC17: LeaveBlock: unexpected jumping out IF_STMT
  1270.  
  1271.  
  1272.  
  1273. end
  1274.  
  1275. end
  1276.  
  1277. end
  1278.  
  1279. Part.CFrame = CFrame.new(RootPart.Position) * Cframe
  1280.  
  1281. Part.CFrame = CFrame.new(Part.Position, mouse.Hit.p) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1282.  
  1283. end
  1284.  
  1285. end), Shard, newCF, i)
  1286.  
  1287. end
  1288.  
  1289. end
  1290.  
  1291. wait(0.5)
  1292.  
  1293. Humanoid.WalkSpeed = 16
  1294.  
  1295. attack = false
  1296.  
  1297. end
  1298.  
  1299. ob1u = function()
  1300.  
  1301. end
  1302.  
  1303. ob1d = function()
  1304.  
  1305. if (attack == true and equipped == true) or CrystalNumb == 0 then
  1306.  
  1307. return
  1308.  
  1309. end
  1310.  
  1311. attackone()
  1312.  
  1313. end
  1314.  
  1315. key = function(k)
  1316.  
  1317. k = k:lower()
  1318.  
  1319. if attack == false and equipped == false and k == "f" then
  1320.  
  1321. Equip()
  1322.  
  1323. else
  1324.  
  1325. if attack == false and equipped == true and k == "f" then
  1326.  
  1327. Unequip()
  1328.  
  1329. else
  1330.  
  1331. if attack == false and equipped == true and k == "v" then
  1332.  
  1333. crystalhold = true
  1334.  
  1335. MakeCrystals()
  1336.  
  1337. else
  1338.  
  1339. if attack == false and equipped == true and k == "c" then
  1340.  
  1341. ShardWave()
  1342.  
  1343. else
  1344.  
  1345. if attack == false and equipped == true and k == "x" and CrystalNumb >= 1 then
  1346.  
  1347. Shatter()
  1348.  
  1349. else
  1350.  
  1351. if attack == false and equipped == true and k == "z" then
  1352.  
  1353. SummonShards()
  1354.  
  1355. end
  1356.  
  1357. end
  1358.  
  1359. end
  1360.  
  1361. end
  1362.  
  1363. end
  1364.  
  1365. end
  1366.  
  1367. end
  1368.  
  1369. keyup = function(k)
  1370.  
  1371. if attack == true and equipped == true and k == "v" and crystalhold == true then
  1372.  
  1373. crystalhold = false
  1374.  
  1375. end
  1376.  
  1377. end
  1378.  
  1379. Tool = Instance.new("HopperBin")
  1380.  
  1381. Tool.Parent = Player.Backpack
  1382.  
  1383. Tool.Name = "Crystal Warden"
  1384.  
  1385. Bin = Tool
  1386.  
  1387. ds = function(mouse)
  1388.  
  1389. end
  1390.  
  1391. s = function(mouse)
  1392.  
  1393. print("Selected")
  1394.  
  1395. mouse.Button1Down:connect(function()
  1396.  
  1397. ob1d(mouse)
  1398.  
  1399. end)
  1400.  
  1401. mouse.Button1Up:connect(function()
  1402.  
  1403. ob1u(mouse)
  1404.  
  1405. end)
  1406.  
  1407. mouse.KeyDown:connect(key)
  1408.  
  1409. mouse.KeyUp:connect(keyup)
  1410.  
  1411. end
  1412.  
  1413. Bin.Selected:connect(s)
  1414.  
  1415. Bin.Deselected:connect(ds)
  1416.  
  1417. numbb = 0
  1418.  
  1419. datnumb = 0
  1420.  
  1421. local walk = 0
  1422.  
  1423. local walkforw = false
  1424.  
  1425. while 1 do
  1426.  
  1427. swait()
  1428.  
  1429. for i,v in pairs(Character:GetChildren()) do
  1430.  
  1431. if v:IsA("Part") then
  1432.  
  1433. v.Material = "SmoothPlastic"
  1434.  
  1435. else
  1436.  
  1437. if v:IsA("Hat") then
  1438.  
  1439. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1440.  
  1441. end
  1442.  
  1443. end
  1444.  
  1445. end
  1446.  
  1447. walk = walk + 0.55
  1448.  
  1449. if 15 - 5 * (Humanoid.WalkSpeed / 16) <= walk then
  1450.  
  1451. walk = 0
  1452.  
  1453. if walkforw == true then
  1454.  
  1455. walkforw = false
  1456.  
  1457. else
  1458.  
  1459. if walkforw == false then
  1460.  
  1461. walkforw = true
  1462.  
  1463. end
  1464.  
  1465. end
  1466.  
  1467. end
  1468.  
  1469. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1470.  
  1471. velocity = RootPart.Velocity.y
  1472.  
  1473. sine = sine + change
  1474.  
  1475. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1476.  
  1477. if equipped == true then
  1478.  
  1479. if RootPart.Velocity.y > 1 and hit == nil then
  1480.  
  1481. Anim = "Jump"
  1482.  
  1483. if attack == false then
  1484.  
  1485. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1486.  
  1487. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  1488.  
  1489. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2)
  1490.  
  1491. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2)
  1492.  
  1493. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.2)
  1494.  
  1495. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2)
  1496.  
  1497. end
  1498.  
  1499. else
  1500.  
  1501. if RootPart.Velocity.y < -1 and hit == nil then
  1502.  
  1503. Anim = "Fall"
  1504.  
  1505. if attack == false then
  1506.  
  1507. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1508.  
  1509. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  1510.  
  1511. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.2)
  1512.  
  1513. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.2)
  1514.  
  1515. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(-10)), 0.2)
  1516.  
  1517. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(10)), 0.2)
  1518.  
  1519. end
  1520.  
  1521. else
  1522.  
  1523. if Torsovelocity < 1 and hit ~= nil then
  1524.  
  1525. Anim = "Idle"
  1526.  
  1527. if attack == false then
  1528.  
  1529. change = 1
  1530.  
  1531. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.sin((sine) / 27)) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.2)
  1532.  
  1533. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.sin((sine) / 26)), math.rad(0), math.rad(30)), 0.2)
  1534.  
  1535. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(-30), math.rad(20 + 3 * math.sin((sine) / 26))), 0.2)
  1536.  
  1537. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10 + 3 * math.sin((sine) / 26)), math.rad(0), math.rad(-5 - 2 * math.sin((sine) / 26))), 0.2)
  1538.  
  1539. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.sin((sine) / 27), 0) * RHCF * angles(math.rad(-3 + 1 * math.sin((sine) / 27)), math.rad(10), math.rad(0)), 0.2)
  1540.  
  1541. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.sin((sine) / 27), 0) * LHCF * angles(math.rad(-3 + 1 * math.sin((sine) / 27)), math.rad(10), math.rad(0)), 0.2)
  1542.  
  1543. end
  1544.  
  1545. else
  1546.  
  1547. if 2 < Torsovelocity and hit ~= nil then
  1548.  
  1549. Anim = "Walk"
  1550.  
  1551. if attack == false then
  1552.  
  1553. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10 + 3 * math.sin((sine) / 25)), math.rad(0), math.rad(0)), 0.2)
  1554.  
  1555. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 - 3 * math.sin((sine) / 25)), math.rad(0), math.rad(0)), 0.2)
  1556.  
  1557. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70), math.rad(-40), math.rad(40 + 3 * math.sin((sine) / 26))), 0.2)
  1558.  
  1559. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-5 + 3 * math.sin((sine) / 20))), 0.2)
  1560.  
  1561. if walkforw == true then
  1562.  
  1563. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(60)), 0.1)
  1564.  
  1565. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(60)), 0.1)
  1566.  
  1567. else
  1568.  
  1569. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(-60)), 0.1)
  1570.  
  1571. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(-60)), 0.12)
  1572.  
  1573. end
  1574.  
  1575. end
  1576.  
  1577. end
  1578.  
  1579. end
  1580.  
  1581. end
  1582.  
  1583. end
  1584.  
  1585. end
  1586.  
  1587. if 0 < #Effects then
  1588.  
  1589. for e = 1, #Effects do
  1590.  
  1591. if Effects[e] ~= nil then
  1592.  
  1593. local Thing = Effects[e]
  1594.  
  1595. if Thing ~= nil then
  1596.  
  1597. local Part = Thing[1]
  1598.  
  1599. local Mode = Thing[2]
  1600.  
  1601. local Delay = Thing[3]
  1602.  
  1603. local IncX = Thing[4]
  1604.  
  1605. local IncY = Thing[5]
  1606.  
  1607. local IncZ = Thing[6]
  1608.  
  1609. if Thing[1].Transparency <= 1 then
  1610.  
  1611. if Thing[2] == "Block1" then
  1612.  
  1613. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1614.  
  1615. Mesh = Thing[1].Mesh
  1616.  
  1617. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1618.  
  1619. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1620.  
  1621. else
  1622.  
  1623. if Thing[2] == "Block2" then
  1624.  
  1625. Thing[1].CFrame = Thing[1].CFrame
  1626.  
  1627. Mesh = Thing[7]
  1628.  
  1629. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1630.  
  1631. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1632.  
  1633. else
  1634.  
  1635. if Thing[2] == "Cylinder" then
  1636.  
  1637. Mesh = Thing[1].Mesh
  1638.  
  1639. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1640.  
  1641. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1642.  
  1643. else
  1644.  
  1645. if Thing[2] == "Blood" then
  1646.  
  1647. Mesh = Thing[7]
  1648.  
  1649. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1650.  
  1651. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1652.  
  1653. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1654.  
  1655. else
  1656.  
  1657. if Thing[2] == "Elec" then
  1658.  
  1659. Mesh = Thing[1].Mesh
  1660.  
  1661. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1662.  
  1663. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1664.  
  1665. else
  1666.  
  1667. if Thing[2] == "Disappear" then
  1668.  
  1669. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1670.  
  1671. else
  1672.  
  1673. if Thing[2] == "Shatter" then
  1674.  
  1675. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1676.  
  1677. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1678.  
  1679. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1680.  
  1681. Thing[6] = Thing[6] + Thing[5]
  1682.  
  1683. end
  1684.  
  1685. end
  1686.  
  1687. end
  1688.  
  1689. end
  1690.  
  1691. end
  1692.  
  1693. end
  1694.  
  1695. end
  1696.  
  1697. else
  1698.  
  1699. Part.Parent = nil
  1700.  
  1701. table.remove(Effects, e)
  1702.  
  1703. end
  1704.  
  1705. end
  1706.  
  1707. end
  1708.  
  1709. end
  1710.  
  1711. end
  1712.  
  1713. do
  1714.  
  1715. datnumb = 0
  1716.  
  1717. BaseNumb = 6.28
  1718.  
  1719. BaseNumb = BaseNumb / CrystalNumb
  1720.  
  1721. for d,Crystal in pairs(Crystals) do
  1722.  
  1723. datnumb = datnumb + BaseNumb
  1724.  
  1725. Crystal.Anchored = true
  1726.  
  1727. if Crystal.ClassName == "Part" and #Crystals ~= 0 then
  1728.  
  1729. Crystal.CFrame = Crystal.CFrame:lerp(CFrame.new(RootPart.Position) * CFrame.Angles(0, math.rad(360) / #Crystals * d, 0) * CFrame.new(0, 0, 5 + #Crystals / 3), 0.1)
  1730.  
  1731. numbb = numbb + 0.05
  1732.  
  1733. end
  1734.  
  1735. end
  1736.  
  1737. end
  1738.  
  1739. end
Add Comment
Please, Sign In to add comment