SHARE
TWEET

Test

Basykung7845 Feb 23rd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. asset = "http://www.roblox.com/asset/?id="
  2. meshes = {["blast"] = 20329976,["ring"] = 3270017,["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["cloud"] = 1095708,["diamond"] = 9756362}
  3. sounds = {["explode"] = 130792180;}
  4. torsomesh = "rbxasset://fonts/torso.mesh"
  5. colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
  6. function rand(a)return (math.random()-.5)*2*a end
  7. function q(f,arg)return coroutine.resume(coroutine.create(f),unpack(arg or {}))end
  8. function fade(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,1,increment do part.Transparency = part.Transparency+increment wait(1/30)end end,{p,s,inc})end
  9. function appear(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,0,-increment do part.Transparency = part.Transparency-increment wait(1/30)end end,{p,s,inc})end
  10. function Part(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  11.         local p = Instance.new("Part",Parent)p.Name = Name
  12.         p.FormFactor = "Custom"p.Size = Size
  13.         p.Anchored = Anch p.CFrame = CFrame
  14.         p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  15.         p.TopSurface = 0 p.CanCollide = Can
  16.         p.BottomSurface = 0 p.Material = Mat
  17.         p.Reflectance = Ref or 0;p:BreakJoints()
  18.         p.Locked = true;return p
  19. end
  20. function WedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  21.         local p = Instance.new("WedgePart",Parent)p.Name = Name
  22.         p.FormFactor = "Custom"p.Size = Size
  23.         p.Anchored = Anch p.CFrame = CFrame
  24.         p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  25.         p.TopSurface = 0 p.CanCollide = Can
  26.         p.BottomSurface = 0 p.Material = Mat
  27.         p.Reflectance = Ref or 0;p:BreakJoints()
  28.         p.Locked = true;return p
  29. end
  30. function CornerWedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  31.         local p = Instance.new("CornerWedgePart",Parent)p.Name = Name;p.Size = Size
  32.         p.Anchored = Anch p.CFrame = CFrame
  33.         p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  34.         p.TopSurface = 0 p.CanCollide = Can
  35.         p.BottomSurface = 0 p.Material = Mat
  36.         p.Reflectance = Ref or 0;p:BreakJoints()
  37.         p.Locked = true;return p
  38. end
  39. function Mesh(Parent,Type,Scale,ID,TID)
  40.         local m = Instance.new("SpecialMesh",Parent)m.MeshType = Type
  41.         m.Scale = Scale or Vector3.new(1,1,1)
  42.         if ID then m.MeshId = ID end if TID then m.TextureId = TID end
  43.         return m
  44. end
  45. function Weld(p1,p2,c0,c1)
  46.         local w = Instance.new("Weld",p1)w.Part0 = p1;w.Part1 = p2
  47.         w.C0,w.C1 = c0 or CFrame.new(),c1 or CFrame.new()
  48.         return w
  49. end
  50. function cslerp(start,destination,increment)
  51.         local function s(a,b,c)return (1-c)*a+(c*b)end
  52.         local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  53.         local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  54.         for i,v in pairs(c1)do c1[i] = s(v,c2[i],increment)end
  55.         return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  56. end
  57. local char
  58. function rayCast(pos,dir,collidedlist,startpos,endpos,distleft)
  59.         collidedlist = collidedlist
  60.         startpos = startpos or pos
  61.         distleft = distleft or dir.unit * dir.magnitude
  62.         endpos = endpos or pos + distleft
  63.         local ray = Ray.new(pos,distleft)
  64.         local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray,collidedlist)
  65.         if hitz~=nil then
  66.                 if hitz.CanCollide==false then
  67.                         table.insert(collidedlist,hitz)
  68.                         local newpos = enz
  69.                         local newdistleft = distleft-(dir.unit*(pos-newpos).magnitude)
  70.                         if newdistleft~=Vector3.new()then
  71.                                 return rayCast(newpos-(dir*0.01),dir,collidedlist,startpos,endpos,newdistleft+(dir*0.01))
  72.                         end
  73.                 end
  74.         end
  75.         return hitz,enz,ray
  76. end
  77. function findSurface(part,position)
  78.         local obj = part.CFrame:pointToObjectSpace(position)
  79.         local siz = part.Size/2
  80.         for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  81.                 local vec = Vector3.FromNormalId(v)
  82.                 local wvec = part.CFrame:vectorToWorldSpace(vec)
  83.                 local vz = (obj)/(siz*vec)
  84.                 if (math.abs(vz.X-1)<0.01 or math.abs(vz.Y-1)<0.01 or math.abs(vz.Z-1)<0.01) then
  85.                         return wvec,vec
  86.                 end
  87.         end
  88. end
  89. function Smoke(origin,color)
  90.         local p = Part("Effect",workspace,Vector3.new(2,2,2),origin*CFrame.new(rand(5),-1,rand(5)),color or "Black",.1,false,false,"SmoothPlastic")
  91.         local m = Mesh(p,"Sphere",Vector3.new(1.25,1.25,1.25))
  92.         local bp = Instance.new("BodyPosition",p)bp.D = 100 bp.P = 100 bp.position = p.Position+Vector3.new(0,7,0)
  93.         q(function(pa,me)
  94.                 fade(pa,.1)
  95.                 for i=25,100 do
  96.                         me.Scale = me.Scale+Vector3.new(0.15,0.1,0.15)
  97.                         wait(1/30)
  98.                 end
  99.                 pa:Destroy()
  100.         end,{p,m})
  101. end
  102. function brickMagic(origin,color,size)
  103.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,.2,true,false,"SmoothPlastic")
  104.         local m = Mesh(p,"Brick")
  105.         q(function(pa,me)
  106.                 fade(pa,.2)
  107.                 for i=20,100 do
  108.                         me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
  109.                         wait(1/30)
  110.                 end
  111.                 pa:Destroy()
  112.         end,{p,m})
  113. end
  114. function spikeMagic(origin,size,color)
  115.         local p = Part("Effect",workspace,Vector3.new(1,1,1),origin*CFrame.new(0,-size,0),color,1,true,false,"SmoothPlastic")
  116.         local m = Mesh(p,"FileMesh",Vector3.new(size/2,size*2,size/2),asset..meshes["spike"])
  117.         q(function(pa,me)
  118.         appear(pa,1)
  119.         for i=1,size,.5 do
  120.                 wait(1/30)
  121.                 pa.CFrame = pa.CFrame*CFrame.new(0,.5,0)
  122.         end
  123.         wait(math.random(2,3))fade(pa,0)
  124.         Delay(3,function()pa:Destroy()end)
  125.         end,{p,m})
  126. end
  127. function placePart(origin,size,color,material)
  128.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
  129.         local m = Mesh(p,"Brick")
  130.         q(function(pa,me)
  131.                 wait(5)
  132.                 fade(pa,0)
  133.                 Delay(1.25,function()pa:Destroy()end)
  134.         end,{p,m})
  135. end
  136. function placePartRandSize(origin,min,max,color,material)
  137.         local p = Part("Effect",workspace,Vector3.new(math.random(min,max),math.random(min,max),math.random(min,max)),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
  138.         local m = Mesh(p,"Brick")
  139.         q(function(pa,me)
  140.                 wait(5)
  141.                 fade(pa,0)
  142.                 Delay(1.25,function()pa:Destroy()end)
  143.         end,{p,m})
  144. end
  145. function crater(origin,dist)
  146.         local b = workspace.Base
  147.         local bc = b and tostring(b.BrickColor) or "Bright green"
  148.         local m = b and b.Material or "Grass"
  149.         for i=0,360,30 do
  150.                 local cf = origin*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,dist)*CFrame.Angles(math.rad(i/30),0,rand(5))
  151.                 placePartRandSize(cf,5,15,bc,m)
  152.         end
  153. end
  154. function cylinderExplode(origin,color,size,ysize)
  155.         local p = Part("Effect",workspace,Vector3.new(size,ysize or size,size),origin,color,.2,true,false,"SmoothPlastic")
  156.         local m = Instance.new("CylinderMesh",p)
  157.         q(function(pa,me)
  158.                 for i=.2,1,.0075 do
  159.                         me.Scale = me.Scale+Vector3.new(.1,0,.1)
  160.                         pa.Transparency = i
  161.                         wait(1/30)
  162.                 end
  163.                 pa:Destroy()
  164.         end,{p,m})
  165. end
  166. function ringExplode(origin,color,size)
  167.         local p = Part("Effect",workspace,Vector3.new(1,1,1),origin,color,.2,true,false,"SmoothPlastic")
  168.         local m = Mesh(p,"FileMesh",Vector3.new(size,size,1),asset..meshes["ring"])
  169.         q(function(pa,me)
  170.                 for i=.2,1,.0075 do
  171.                         me.Scale = me.Scale+Vector3.new(0.25,0.25,0)
  172.                         pa.Transparency = i
  173.                         wait(1/30)
  174.                 end
  175.                 pa:Destroy()
  176.         end,{p,m})
  177. end
  178. function crownExplode(origin,color,size)
  179.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,.2,true,false,"SmoothPlastic")
  180.         local m = Mesh(p,"FileMesh",Vector3.new(size/2,size/2,size/2),asset..meshes["crown"])
  181.         q(function(pa,me)
  182.                 for i=.2,1,.025 do
  183.                         me.Scale = me.Scale+Vector3.new(0.75,0.75,0.75)
  184.                         pa.Transparency = i
  185.                         wait(1/30)
  186.                 end
  187.                 pa:Destroy()
  188.         end,{p,m})
  189. end
  190. function glitter(origin,color)
  191.         local p = Part("Effect",workspace,Vector3.new(0.75,0.75,0.75),origin*CFrame.new(rand(5),rand(5),rand(5))*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,false,"SmoothPlastic")
  192.         local m = Mesh(p,"Brick",Vector3.new(1,1,1))
  193.         q(function(pa,me)
  194.                 fade(pa,0)
  195.                 for i=0,1,.05 do
  196.                         me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
  197.                         wait(1/30)
  198.                 end
  199.                 pa:Destroy()
  200.         end,{p,m})
  201. end
  202. function sphereExtend(origin,color,size)
  203.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,0,true,false,"SmoothPlastic")
  204.         local m = Mesh(p,"Sphere")
  205.         q(function(pa,me)
  206.                 for i=0,1,0.05 do
  207.                         me.Scale = me.Scale+Vector3.new(0,i*10,0)
  208.                         pa.Transparency = i
  209.                         wait(1/30)
  210.                 end
  211.                 pa:Destroy()
  212.         end,{p,m})
  213. end
  214. function quickSound(id,v)
  215.         local s = Instance.new("Sound",workspace)
  216.         s.SoundId = id
  217.         s.PlayOnRemove = true
  218.         s.Volume = v or 1
  219.         delay(0.025,function()s:remove()end)
  220. end
  221. function checkDmgArea(origin,dmg,d)
  222.         for i,v in pairs(workspace:children())do
  223.                 if v~=char and v:FindFirstChild("Torso") then
  224.                         local h;
  225.                         for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end
  226.                         local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude
  227.                         if dist < d and h~=nil then
  228.                                 h.Health = h.Health - dmg
  229.                         end
  230.                 end
  231.         end
  232. end
  233. function findClosestPlayer(origin,d)
  234.         local bdist,plr = d,nil
  235.         for i,v in pairs(workspace:children())do
  236.                 if v~=char and v:FindFirstChild("Torso") then
  237.                         local h;
  238.                         for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end
  239.                         local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude
  240.                         if dist < bdist and h~=nil and h.Health~=0 then
  241.                                 bdist,plr = dist,v
  242.                         end
  243.                 end
  244.         end
  245.         return bdist,plr
  246. end
  247. local plr = owner
  248. local char = plr.Character
  249. local head = char:findFirstChild'Head'
  250. local torso = char:findFirstChild'Torso'
  251. local rightS = torso:findFirstChild'Right Shoulder'
  252. local leftS = torso:findFirstChild'Left Shoulder'
  253. local rightH = torso:findFirstChild'Right Hip'
  254. local leftH = torso:findFirstChild'Left Hip'
  255. local neck = torso:findFirstChild'Neck'
  256. local humanoid = char:findFirstChild'Humanoid'
  257. local rootpart = char:findFirstChild'HumanoidRootPart'
  258. local rootJoint = rootpart:findFirstChild'RootJoint'
  259. local cam = workspace.CurrentCamera
  260. local recJump = false
  261.  
  262. humanoid.Changed:connect(function()
  263.         if humanoid.Jump then
  264.                 recJump = true
  265.                 wait(.75)
  266.                 recJump = false
  267.         end
  268. end)
  269. colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
  270. mouse.KeyDown:connect(function(k)
  271.         if k == " " then
  272.                 if hitfloor==nil then
  273.                         torso.Velocity = Vector3.new(0,100,0)
  274.                         ringExplode(torso.CFrame*CFrame.Angles(math.pi/2,0,0),colours[5],5)
  275.                 end
  276.         end
  277. end)
  278. mouse.Button1Down:connect(function()
  279. end)
  280. ----------------------------------------
  281. local lp=game:owner
  282. local Sans=317772493 -- Sans
  283. local Papyrus=338303436 -- Papyrus
  284. local Asriel=331084437-- Keyboard typing / idk
  285. local gVoufh3="Gaster" -- Gaster
  286. local ActiveVoice=Asriel -- Type in the variable for the character (Voice1-gVoufh3)
  287. local gVoices={
  288.         340366916;
  289.         339369934;
  290.         341214061;
  291.         341222723;
  292.         341222653;
  293.         341222608;
  294. }
  295.  
  296. local interrupt=false;
  297.  
  298. lp.Chatted:connect(function(m)
  299.         interrupt=true
  300.         wait(.15)
  301.         interrupt=false
  302.         for i = 1, #m do
  303.                 if m:sub(1,2)~= '((' then
  304.                         local s=Instance.new("Sound",workspace)
  305.                         if ActiveVoice==gVoufh3 then
  306.                                 local a=gVoices
  307.                                 s.SoundId="rbxassetid://"..gVoices[math.random(1,#a)]
  308.                         else
  309.                                 s.SoundId="rbxassetid://"..ActiveVoice
  310.                         end
  311.                         s.Volume=1
  312.                         s:Play()
  313.                         s:remove()
  314.                         if ActiveVoice==Voice or ActiveVoice==gVoufh3 then
  315.                                 wait(.1)
  316.                         else
  317.                                 wait(.082)
  318.                         end        
  319.                 end
  320.                 if interrupt==true then
  321.                         break
  322.                 end
  323.         end
  324. end)
  325. -------------------------------
  326.  
  327.         pls = game:GetService'Players'
  328.         lp = owner
  329.         c = lp.Character
  330.         rayModel = Instance.new("Model",c)
  331.  
  332.         reflect = function(d,n)
  333.                 local i, n = -1 * d.unit, n.unit
  334.                 local dot = n:Dot(i)
  335.                 return 2*dot*n - i
  336.         end
  337.  
  338.         makeRayPart = function(pos,look)
  339.                 local ray = Ray.new(pos,look)
  340.                 local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  341.                 local e = Instance.new("Part",rayModel)
  342.                 e.Anchored = true
  343.                 e.CanCollide = false
  344.                 e.Material = "Neon"
  345.                 e.FormFactor = "Custom"
  346.                 e.Size = Vector3.new(15,15,(pos - hitpos).magnitude)
  347.                 e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  348.                 local cy=Instance.new("SpecialMesh",e)
  349.         cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  350.         cy.Scale = Vector3.new(15,15,(pos - hitpos).magnitude)*2
  351.         cy.TextureId = "http://www.roblox.com/asset/?id=0"
  352.         spawn(function()
  353.             while wait() do
  354.                 cy.VertexColor = rainb(tick()*.5)
  355.             end
  356.         end)
  357.                 for i = 1,2 do
  358.                         local e = Instance.new("Sound",c)
  359.                         e.Volume = .9
  360.                         e.Pitch = 0.9
  361.                         if i == 1 then
  362.                                 e.SoundId = "rbxassetid://340722848"
  363.                         else
  364.                                 e.SoundId = "rbxassetid://340722848"
  365.                         end
  366.                         e:Play()
  367.                         spawn(function()
  368.                                 wait(6)
  369.                                 e:Destroy()
  370.                         end)
  371.                         wait(.05)
  372.                 end
  373.                 if hit ~= nil then
  374.                         newDir = reflect(look.unit,norm)
  375.                         makeRayPart(hitpos,newDir * 999)
  376.                 end
  377.         end
  378. -------------------------------
  379.  
  380.         lp:GetMouse().KeyDown:connect(function(key)
  381.                 c = lp.Character
  382.                 if c and key == "r" then
  383.                         makeRayPart(c.HumanoidRootPart.CFrame.p + Vector3.new(0,10,0), (lp:GetMouse().Hit.p).unit * 999 - c.HumanoidRootPart.CFrame.p)
  384.                 end
  385.         end)
  386.  
  387.         game:GetService'RunService'.RenderStepped:connect(function()
  388.                 local FPS = 1/game:GetService'RunService'.RenderStepped:wait()
  389.                 for i,v in pairs (rayModel:children()) do
  390.                         if v.ClassName == "Part" then
  391.                                 if v.Transparency >= .99 then
  392.                                         v:Destroy()
  393.                                 else
  394.                                         v.CanCollide = true
  395.                                         local parts = v:GetTouchingParts()
  396.                                         v.CanCollide = false
  397.                                         for x = 1, #parts do
  398.                                                 if parts[x].Parent:FindFirstChild("Humanoid") and parts[x].Parent ~= c then
  399.                                                         parts[x].Parent.Humanoid:TakeDamage(1/(FPS/60))
  400.                                                 end
  401.                                         end
  402.                                         v.Transparency = v.Transparency + .035/(FPS/60)
  403.                                         v.Size = v.Size + Vector3.new(1.2/(FPS/60),.5/(FPS/60),0)
  404.                                 end
  405.                         end
  406.                 end
  407.         end)
  408. function HSV(H,S,V)
  409.  H = H % 360
  410.  local C = V * S
  411.  local H2 = H/60
  412.  local X = C * (1 - math.abs((H2 %2) -1))
  413.  local color = Color3.new(0,0,0)
  414.  if H2 <= 0 then
  415.     color = Color3.new(C,0,0)
  416.  elseif 0 <= H2 and H2 <= 1 then
  417.     color = Color3.new(C,X,0)
  418.  elseif 1 <= H2 and H2 <= 2 then
  419.     color = Color3.new(X,C,0)
  420.  elseif 2 <= H2 and H2 <= 3 then
  421.     color = Color3.new(0,C,X)
  422.  elseif 3 <= H2 and H2 <= 4 then
  423.     color = Color3.new(0,X,C)
  424.  elseif 4 <= H2 and H2 <= 5 then
  425.     color = Color3.new(X,0,C)
  426.  elseif 5 <= H2 and H2 <= 6 then
  427.     color = Color3.new(C,0,X)
  428.  end
  429.  local m = V - C
  430.  return Color3.new(color.r + m, color.g + m, color.b + m)
  431. end
  432. local hue = 0
  433.  
  434. hue = (hue+1) % 360
  435. local rgb = HSV(hue,.85,.85)
  436.  
  437. Lasers = {}
  438. function MakeLaser(P1,P2)
  439.     local LPart = Instance.new("Part",Workspace)
  440.     LPart.Anchored = true
  441.     LPart.FormFactor = "Custom"
  442.     LPart.CanCollide = True
  443.     LPart.Transparency = 0
  444.     LPart.TopSurface = "Smooth"
  445.     LPart.BottomSurface = "Smooth"
  446.     LPart.BrickColor = BrickColor.new("Institutional white")
  447.     LPart.Material = "Neon"
  448.     table.insert(Lasers,LPart)
  449.     LPartMesh = Instance.new("SpecialMesh",LPart)
  450.     LPartMesh.MeshType = "Brick"
  451.     LPartMesh.VertexColor = rainb(tick()*.5)
  452.     local Pos1 = P1.CFrame.p
  453.     local Pos2 = P2.CFrame.p
  454.     local Dis = (Pos1-Pos2).magnitude
  455.     LPart.Size = Vector3.new(4,4,Dis)
  456.     LPart.CFrame = CFrame.new(Pos1,Pos2) *CFrame.new(0,0,-Dis/2)
  457.     local cy=Instance.new("SpecialMesh",LPart)
  458.         cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  459.         cy.Scale = Vector3.new(4,4,Dis)*2
  460.         cy.TextureId = 'rbxassetid://48358980'
  461.         spawn(function()
  462.             while wait() do
  463.                 cy.VertexColor = rainb(tick()*.5)
  464.             end
  465.         end)
  466.     LPart.Touched:connect(function(hit)
  467.         if hit.Parent.ClassName == "Model" then
  468.             if hit.Parent:FindFirstChild("Humanoid") then
  469.                 e3 = Instance.new('Explosion',Workspace)
  470.                 e3.Position = hit.Parent.Torso.Position
  471.                 e3.BlastPressure = 0
  472.                 e3.BlastRadius = 5
  473.                 hit.Parent:FindFirstChild("Humanoid"):TakeDamage(20)
  474.                 hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
  475.             end
  476.         end
  477.     end)
  478. end
  479. ----------------------------------------
  480. player=game:owner
  481. char=player.Character
  482. Player = owner
  483. Cha = Player.Character
  484. Mouse = mouse
  485. m=Instance.new('Model',char)
  486. local larm = char["Left Arm"]
  487. local rarm = char["Right Arm"]
  488. local lleg = char["Left Leg"]
  489. local rleg = char["Right Leg"]
  490. local hed = char.Head
  491. local torso = char.Torso
  492. local cam = game.Workspace.CurrentCamera
  493. local root = char.HumanoidRootPart
  494. local RootPart = char.HumanoidRootPart
  495. local Humanoid = char.Humanoid
  496. local Health = Humanoid.Health
  497. local MaxHealth = Humanoid.MaxHealth
  498. it = Instance.new
  499. v3 = Vector3.new
  500. c3 = Color3.new
  501. bn = BrickColor.new
  502. cn = CFrame.new
  503. ca = CFrame.Angles
  504. rd = math.rad
  505. rn = math.random
  506. mp = math.pi
  507. mh = math.huge
  508. ud = UDim2.new
  509. cw = coroutine.wrap
  510. ti = table.insert
  511. tr = table.remove
  512. bonesa=false
  513. lasera=1
  514. stance='normal'
  515. attack=false
  516. equipped=false
  517. sprint=false
  518. theme=false--megalovania
  519. Health = 100000
  520. wait(0.0005)
  521. MaxHealth = 100000
  522. char.Health:Destroy()
  523. -----------------------------------------------------
  524. function nooutline(part)
  525.                 part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  526.         end
  527. lite = Instance.new("PointLight")
  528. lite.Parent = Cha.Torso
  529. lite.Brightness = 100
  530. lite.Range = 8
  531. lite.Color = Color3.new(1,1,1)
  532. for i,v in pairs(char:children()) do
  533.     if v:IsA("Hat") then
  534.         v:Destroy()
  535.     end
  536. end
  537. ----------------------------------------------------
  538. local m = Instance.new("Model")
  539. m.Name = "Hair"
  540. p1 = Instance.new("Part", m)
  541. p1.BrickColor = BrickColor.new("Institutional white")
  542. p1.FormFactor = Enum.FormFactor.Symmetric
  543. p1.Size = Vector3.new(1, 1, 1)
  544. p1.CFrame = CFrame.new(12.5095692, 22.9280014, 28.5988674, -1.79592973e-007, -0.978694081, 0.205298647, -1.48348063e-008, -0.205299929, -0.978699148, 0.999994814, 2.38417414e-007, -2.98021181e-008)
  545. p1.CanCollide = false
  546. p1.Locked = true
  547. p1.BottomSurface = Enum.SurfaceType.Smooth
  548. p1.TopSurface = Enum.SurfaceType.Smooth
  549. b1 = Instance.new("SpecialMesh", p1)
  550. b1.MeshId = "http://www.roblox.com/asset/?id=12212520"
  551. b1.TextureId = ""
  552. b1.MeshType = Enum.MeshType.FileMesh
  553. b1.Name = "Mesh"
  554. b1.VertexColor = Vector3.new(0, 0, 0)
  555. b1.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  556. p2 = Instance.new("Part", m)
  557. p2.BrickColor = BrickColor.new("Pastel brown")
  558. p2.Transparency = 1
  559. p2.Name = "Head"
  560. p2.FormFactor = Enum.FormFactor.Symmetric
  561. p2.Size = Vector3.new(2, 1, 1)
  562. p2.CFrame = CFrame.new(13.299921, 22.8300076, 28.5998688, -1.19988712e-007, 8.94068393e-008, -0.999995589, -1.48348125e-008, 1, -8.94068108e-008, 0.999995589, -1.48348231e-008, 2.39197504e-007)
  563. p2.CanCollide = false
  564. p2.Locked = true
  565. p2.TopSurface = Enum.SurfaceType.Smooth
  566. b2 = Instance.new("SpecialMesh", p2)
  567. b2.MeshType = Enum.MeshType.Head
  568. b2.Name = "Mesh"
  569. b2.Scale = Vector3.new(1.25, 1.25, 1.25)
  570. p3 = Instance.new("Part", m)
  571. p3.BrickColor = BrickColor.new("Institutional white")
  572. p3.FormFactor = Enum.FormFactor.Symmetric
  573. p3.Size = Vector3.new(2, 2, 2)
  574. p3.CFrame = CFrame.new(13.2999649, 23.4000015, 28.5999584, -1.19728938e-007, 5.96046092e-008, -0.999997199, -9.88988447e-009, 1, -5.96045844e-008, 0.999997199, -9.88988802e-009, 1.19728938e-007)
  575. p3.CanCollide = false
  576. p3.Locked = true
  577. p3.BottomSurface = Enum.SurfaceType.Smooth
  578. p3.TopSurface = Enum.SurfaceType.Smooth
  579. b3 = Instance.new("SpecialMesh", p3)
  580. b3.MeshId = "http://www.roblox.com/asset/?id=16627529"
  581. b3.TextureId = ""
  582. b3.MeshType = Enum.MeshType.FileMesh
  583. b3.Name = "Mesh"
  584. b3.VertexColor = Vector3.new(0, 0, 0)
  585. b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  586. p4 = Instance.new("Part", m)
  587. p4.BrickColor = BrickColor.new("Institutional white")
  588. p4.FormFactor = Enum.FormFactor.Symmetric
  589. p4.Size = Vector3.new(1, 1, 1)
  590. p4.CFrame = CFrame.new(13.220191, 23.5300064, 28.5998363, -2.39457108e-007, 1.19209027e-007, -0.99999398, -1.97797441e-008, 1, -1.19208977e-007, 0.99999398, -1.97797512e-008, 2.39457108e-007)
  591. p4.CanCollide = false
  592. p4.Locked = true
  593. p4.BottomSurface = Enum.SurfaceType.Smooth
  594. p4.TopSurface = Enum.SurfaceType.Smooth
  595. b4 = Instance.new("SpecialMesh", p4)
  596. b4.MeshId = "http://www.roblox.com/asset/?id=19326912"
  597. b4.TextureId = ""
  598. b4.MeshType = Enum.MeshType.FileMesh
  599. b4.Name = "Mesh"
  600. b4.VertexColor = Vector3.new(0, 0, 0)
  601. p5 = Instance.new("Part", m)
  602. p5.BrickColor = BrickColor.new("Institutional white")
  603. p5.FormFactor = Enum.FormFactor.Symmetric
  604. p5.Size = Vector3.new(1, 1, 1)
  605. p5.CFrame = CFrame.new(13.299963, 23.1500015, 28.5999584, -4.78911147e-007, 2.384173e-007, -0.999987543, -3.95593887e-008, 1, -2.38417186e-007, 0.999987543, -3.95594029e-008, 4.78911147e-007)
  606. p5.CanCollide = false
  607. p5.Locked = true
  608. p5.BottomSurface = Enum.SurfaceType.Smooth
  609. p5.TopSurface = Enum.SurfaceType.Smooth
  610. b5 = Instance.new("SpecialMesh", p5)
  611. b5.MeshId = "http://www.roblox.com/asset/?id=45916884"
  612. b5.TextureId = ""
  613. b5.MeshType = Enum.MeshType.FileMesh
  614. b5.Name = "Mesh"
  615. b5.VertexColor = Vector3.new(0, 0, 0)
  616. b5.Scale = Vector3.new(1, 0.899999976, 1)
  617. p6 = Instance.new("Part", m)
  618. p6.BrickColor = BrickColor.new("Institutional white")
  619. p6.FormFactor = Enum.FormFactor.Symmetric
  620. p6.Size = Vector3.new(1, 1, 1)
  621. p6.CFrame = CFrame.new(13.1003246, 23.2700119, 28.5500946, -9.57822294e-007, 4.76831474e-007, -0.999987543, -7.91193955e-008, 1, -2.84217094e-014, 0.999987543, -4.04650001e-015, 5.68434189e-014)
  622. p6.CanCollide = false
  623. p6.Locked = true
  624. p6.BottomSurface = Enum.SurfaceType.Smooth
  625. p6.TopSurface = Enum.SurfaceType.Smooth
  626. b6 = Instance.new("SpecialMesh", p6)
  627. b6.MeshId = "http://www.roblox.com/asset/?id=62246019"
  628. b6.TextureId = ""
  629. b6.MeshType = Enum.MeshType.FileMesh
  630. b6.Name = "Mesh"
  631. b6.VertexColor = Vector3.new(0, 0, 0)
  632. p7 = Instance.new("Part", m)
  633. p7.BrickColor = BrickColor.new("Institutional white")
  634. p7.FormFactor = Enum.FormFactor.Symmetric
  635. p7.Size = Vector3.new(1, 1, 1)
  636. p7.CFrame = CFrame.new(13.1008148, 23.0000076, 28.4990215, -9.57822294e-007, 4.76831502e-007, -0.999987543, -7.91194026e-008, 1, 3.5914197e-019, 0.999987543, 3.05883884e-015, 5.68434189e-014)
  637. p7.CanCollide = false
  638. p7.Locked = true
  639. p7.BottomSurface = Enum.SurfaceType.Smooth
  640. p7.TopSurface = Enum.SurfaceType.Smooth
  641. b7 = Instance.new("SpecialMesh", p7)
  642. b7.MeshId = "http://www.roblox.com/asset/?id=76056263"
  643. b7.TextureId = ""
  644. b7.MeshType = Enum.MeshType.FileMesh
  645. b7.Name = "Mesh"
  646. b7.VertexColor = Vector3.new(0, 0, 0)
  647. p8 = Instance.new("Part", m)
  648. p8.BrickColor = BrickColor.new("Institutional white")
  649. p8.FormFactor = Enum.FormFactor.Symmetric
  650. p8.Size = Vector3.new(1, 1, 1)
  651. p8.CFrame = CFrame.new(12.3756638, 22.3460064, 28.5989819, -9.57822294e-007, -0.80510509, 0.593111277, -7.91194026e-008, -0.593119025, -0.805114806, 0.999987543, -1.28919533e-014, 2.06653508e-014)
  652. p8.CanCollide = false
  653. p8.Locked = true
  654. p8.BottomSurface = Enum.SurfaceType.Smooth
  655. p8.TopSurface = Enum.SurfaceType.Smooth
  656. b8 = Instance.new("SpecialMesh", p8)
  657. b8.MeshId = "http://www.roblox.com/asset/?id=12212520"
  658. b8.TextureId = ""
  659. b8.MeshType = Enum.MeshType.FileMesh
  660. b8.Name = "Mesh"
  661. b8.VertexColor = Vector3.new(0, 0, 0)
  662. b8.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  663. p9 = Instance.new("Part", m)
  664. p9.BrickColor = BrickColor.new("Institutional white")
  665. p9.FormFactor = Enum.FormFactor.Symmetric
  666. p9.Size = Vector3.new(2, 1, 2)
  667. p9.CFrame = CFrame.new(13.2349396, 23.2430096, 28.5993462, -9.57822294e-007, -0.0995007455, -0.995025039, -7.91194097e-008, 0.995037317, -0.0995024443, 0.999987543, -5.41274382e-016, -2.16294996e-014)
  668. p9.CanCollide = false
  669. p9.Locked = true
  670. p9.BottomSurface = Enum.SurfaceType.Smooth
  671. p9.TopSurface = Enum.SurfaceType.Smooth
  672. b9 = Instance.new("SpecialMesh", p9)
  673. b9.MeshId = "http://www.roblox.com/asset/?id=12259089"
  674. b9.TextureId = ""
  675. b9.MeshType = Enum.MeshType.FileMesh
  676. b9.Name = "Mesh"
  677. b9.VertexColor = Vector3.new(0, 0, 0)
  678. b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995)
  679. p10 = Instance.new("Part", m)
  680. p10.BrickColor = BrickColor.new("Institutional white")
  681. p10.FormFactor = Enum.FormFactor.Symmetric
  682. p10.Size = Vector3.new(1, 1, 1)
  683. p10.CFrame = CFrame.new(12.9792271, 23.7430058, 28.6003838, -9.57822294e-007, -0.68356514, -0.729872584, -7.91194097e-008, 0.729881346, -0.683573902, 0.999987543, -1.35710662e-014, -1.68509463e-014)
  684. p10.CanCollide = false
  685. p10.Locked = true
  686. p10.BottomSurface = Enum.SurfaceType.Smooth
  687. p10.TopSurface = Enum.SurfaceType.Smooth
  688. b10 = Instance.new("SpecialMesh", p10)
  689. b10.MeshId = "http://www.roblox.com/asset/?id=12212520"
  690. b10.TextureId = ""
  691. b10.MeshType = Enum.MeshType.FileMesh
  692. b10.Name = "Mesh"
  693. b10.VertexColor = Vector3.new(0, 0, 0)
  694. b10.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  695. p11 = Instance.new("Part", m)
  696. p11.BrickColor = BrickColor.new("Institutional white")
  697. p11.FormFactor = Enum.FormFactor.Symmetric
  698. p11.Size = Vector3.new(1, 1, 1)
  699. p11.CFrame = CFrame.new(12.8353081, 23.4680061, 28.5991058, -9.57822294e-007, -0.989463568, -0.144696504, -7.91194026e-008, 0.144697905, -0.989475906, 0.999987543, -2.11154641e-014, -4.7186215e-015)
  700. p11.CanCollide = false
  701. p11.Locked = true
  702. p11.BottomSurface = Enum.SurfaceType.Smooth
  703. p11.TopSurface = Enum.SurfaceType.Smooth
  704. b11 = Instance.new("SpecialMesh", p11)
  705. b11.MeshId = "http://www.roblox.com/asset/?id=12212520"
  706. b11.TextureId = ""
  707. b11.MeshType = Enum.MeshType.FileMesh
  708. b11.Name = "Mesh"
  709. b11.VertexColor = Vector3.new(0, 0, 0)
  710. b11.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  711. w1 = Instance.new("Weld", p1)
  712. w1.Name = "Head_Weld"
  713. w1.Part0 = p1
  714. w1.C0 = CFrame.new(-28.5990181, 16.950285, 19.8713875, 0, 0, 0.999999583, -0.97869873, -0.205299839, 5.96046448e-008, 0.20529972, -0.978699148, -7.4505806e-009)
  715. w1.Part1 = p2
  716. w1.C1 = CFrame.new(-28.5999966, -22.8300076, 13.2999811, 5.96046448e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, 5.96046448e-008)
  717. w2 = Instance.new("Weld", p2)
  718. w2.Name = "Weld"
  719. w2.Part0 = p2
  720. w2.C0 = CFrame.new(-28.5999527, -22.8300056, 13.2999592, -2.5997493e-010, -4.94494357e-009, 0.999998808, 2.98023224e-008, 1, -4.94494712e-009, -0.999998808, -2.98023224e-008, 1.19469163e-007)
  721. w2.Part1 = p3
  722. w2.C1 = CFrame.new(-28.5999947, -23.3999996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  723. w3 = Instance.new("Weld", p3)
  724. w3.Name = "Weld"
  725. w3.Part0 = p3
  726. w3.C0 = CFrame.new(-28.5999012, -23.3999996, 13.2999363, -1.19728938e-007, -9.88988447e-009, 0.999997199, 5.96046092e-008, 1, -9.88988802e-009, -0.999997199, -5.96045844e-008, 1.19728938e-007)
  727. w3.Part1 = p4
  728. w3.C1 = CFrame.new(-28.5998726, -23.5300045, 13.2202082, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  729. w4 = Instance.new("Weld", p4)
  730. w4.Name = "Weld"
  731. w4.Part0 = p4
  732. w4.C0 = CFrame.new(-28.5996857, -23.5300064, 13.2201195, -2.39457108e-007, -1.97797441e-008, 0.99999398, 1.19209027e-007, 1, -1.97797512e-008, -0.99999398, -1.19208977e-007, 2.39457108e-007)
  733. w4.Part1 = p5
  734. w4.C1 = CFrame.new(-28.5999947, -23.1499996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  735. w5 = Instance.new("Weld", p5)
  736. w5.Name = "Weld"
  737. w5.Part0 = p5
  738. w5.C0 = CFrame.new(-28.5996189, -23.1500015, 13.2998009, -4.78911147e-007, -3.95593887e-008, 0.999987543, 2.384173e-007, 1, -3.95594029e-008, -0.999987543, -2.38417186e-007, 4.78911147e-007)
  739. w5.Part1 = p6
  740. w5.C1 = CFrame.new(-28.5501289, -23.27001, 13.1003361, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  741. w6 = Instance.new("Weld", p6)
  742. w6.Name = "Weld"
  743. w6.Part0 = p6
  744. w6.C0 = CFrame.new(-28.5497494, -23.2700157, 13.100173, -9.57822294e-007, -7.91193955e-008, 0.999987543, 4.76831474e-007, 1, -4.04650001e-015, -0.999987543, -2.84217094e-014, 5.68434189e-014)
  745. w6.Part1 = p7
  746. w6.C1 = CFrame.new(-28.4990501, -23.0000057, 13.1008282, 0, 0, 0.999999881, 0, 1, 0, -0.999999881, 0, 0)
  747. w7 = Instance.new("Weld", p7)
  748. w7.Name = "Weld"
  749. w7.Part0 = p7
  750. w7.C0 = CFrame.new(-28.4986763, -23.0000114, 13.1006632, -9.57822294e-007, -7.91194026e-008, 0.999987543, 4.76831502e-007, 1, 3.05883884e-015, -0.999987543, 3.5914197e-019, 5.68434189e-014)
  751. w7.Part1 = p8
  752. w7.C1 = CFrame.new(-28.5990181, 23.2175999, 10.6510067, 0, 0, 0.999999583, -0.805118203, -0.59311378, -5.96046448e-008, 0.593113363, -0.80511874, 0)
  753. w8 = Instance.new("Weld", p8)
  754. w8.Name = "Weld"
  755. w8.Part0 = p8
  756. w8.C0 = CFrame.new(-28.5986366, 23.2175598, 10.6509457, -9.57822294e-007, -7.91194026e-008, 0.999987543, -0.80510509, -0.593119025, -1.28919533e-014, 0.593111277, -0.805114806, 2.06653508e-014)
  757. w8.Part1 = p9
  758. w8.C1 = CFrame.new(-28.5993843, -21.8107243, 15.4820604, 0, 0, 0.999999583, -0.0995036662, 0.995037258, 0, -0.995036721, -0.0995037258, 0)
  759. w9 = Instance.new("Weld", p9)
  760. w9.Name = "Weld"
  761. w9.Part0 = p9
  762. w9.C0 = CFrame.new(-28.598999, -21.8107738, 15.4818439, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.0995007455, 0.995037317, -5.41274382e-016, -0.995025039, -0.0995024443, -2.16294996e-014)
  763. w9.Part1 = p10
  764. w9.C1 = CFrame.new(-28.6004219, -8.45714283, 25.703455, 0, 0, 0.999999583, -0.683578134, 0.729877055, 2.98023224e-008, -0.729876637, -0.683578491, 8.94069672e-008)
  765. w10 = Instance.new("Weld", p10)
  766. w10.Name = "Weld"
  767. w10.Part0 = p10
  768. w10.C0 = CFrame.new(-28.6000366, -8.4574213, 25.703289, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.68356514, 0.729881346, -1.35710662e-014, -0.729872584, -0.683573902, -1.68509463e-014)
  769. w10.Part1 = p11
  770. w10.C1 = CFrame.new(-28.5991402, 9.30450344, 25.0782566, 0, 0, 0.999999583, -0.989475787, 0.144696504, 8.94069672e-008, -0.144696444, -0.989476025, 7.4505806e-009)
  771. m.Parent = char
  772. m:MakeJoints()
  773. ----------------------------------------------------
  774. local cor = Instance.new("Part", char.Hair)
  775. cor.Name = "Link"
  776. cor.Locked = true
  777. cor.BottomSurface = 0
  778. cor.CanCollide = false
  779. cor.Size = Vector3.new(1, 9, 1)
  780. cor.Transparency = 1
  781. cor.TopSurface = 0
  782. corw = Instance.new("Weld", cor)
  783. corw.Part0 = hed
  784. corw.Part1 = cor
  785. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  786. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  787. weld1 = Instance.new("Weld", char.Hair)
  788. weld1.Part0 = cor
  789. weld1.Part1 = char.Hair.Head
  790. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  791. ------------------------------------------------------
  792. hed.BrickColor = BrickColor.new("Institutional white")
  793. torso.BrickColor = BrickColor.new("Institutional white")
  794. rleg.BrickColor = BrickColor.new("Institutional white")
  795. lleg.BrickColor = BrickColor.new("Institutional white")
  796. rarm.BrickColor = BrickColor.new("Institutional white")
  797. larm.BrickColor = BrickColor.new("Institutional white")
  798.  
  799. local z=Instance.new("Sound", char)
  800. z.SoundId="rbxassetid://328606227"
  801. z.Pitch=1
  802. z.Volume=5
  803. z.Looped=true
  804.  
  805. Cha.Shirt:Remove()
  806. Cha.Pants:Remove()
  807.  
  808. MainShirt = Instance.new("Shirt",Character)
  809. MainShirt.Parent = Cha
  810. MainShirt.ShirtTemplate = "http://www.roblox.com/asset/?id=335483801"
  811. MainShirt.Name = "Shirt"
  812.  
  813. MainPants = Instance.new("Pants",Character)
  814. MainPants.Parent = Cha
  815. MainPants.PantsTemplate = "http://www.roblox.com/asset/?id=335484664"
  816. MainPants.Name = "Pants"
  817.  
  818. playing = false
  819. spawn(function()
  820.         while wait()  do
  821.                 hed.BrickColor = BrickColor.new("Institutional white")
  822.                 torso.BrickColor = BrickColor.new("Institutional white")
  823.                 rleg.BrickColor = BrickColor.new("Institutional white")
  824.                 lleg.BrickColor = BrickColor.new("Institutional white")
  825.                 rarm.BrickColor = BrickColor.new("Institutional white")
  826.                 larm.BrickColor = BrickColor.new("Institutional white")
  827.                 if theme==false and playing == true then
  828.                     z:Pause()
  829.                     playing = false
  830.                 end
  831.                 if theme==true and playing == false then
  832.                     z:Play()
  833.                     playing = true
  834.                 end
  835.                 wait()
  836.         end
  837. end)
  838. --[[local exprt=it('Part',m)
  839. exprt.Anchored=true
  840. exprt.CanCollide=false
  841. exprt.Position=root.Position]]
  842.  
  843. function swait(num)
  844.         if num==0 or num==nil then
  845.                 game:service'RunService'.Stepped:wait(0)
  846.         else
  847.                 for i=0,num do
  848.                         game:service'RunService'.Stepped:wait(0)
  849.                 end
  850.         end
  851. end
  852.  
  853. function Lerp(a, b, i)
  854.         local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  855.         local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  856.         local calx = com1[1] + (com2[1] - com1[1]) * i
  857.         local caly = com1[2] + (com2[2] - com1[2]) * i
  858.         local calz = com1[3] + (com2[3] - com1[3]) * i
  859.         local cala = com1[4] + (com2[4] - com1[4]) * i
  860.         local calb = com1[5] + (com2[5] - com1[5]) * i
  861.         local calc = com1[6] + (com2[6] - com1[6]) * i
  862.         return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  863. end
  864.  
  865. weld = function(wp0, wp1, wc0x, wc0y, wc0z)
  866.         wld = Instance.new("Weld", wp1)
  867.         wld.Part0 = wp0
  868.         wld.Part1 = wp1
  869.         wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  870.         return wld
  871. end
  872.  
  873. weld(torso, larm, -1.5, 0.5, 0)
  874. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  875. weld(torso, rarm, 1.5, 0.5, 0)
  876. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  877. weld(torso, hed, 0, 1.5, 0)
  878. weld(torso, lleg, -0.5, -1, 0)
  879. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  880. weld(torso, rleg, 0.5, -1, 0)
  881. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  882. weld(root, torso, 0, -1, 0)
  883. torso.Weld.C1 = CFrame.new(0, -1, 0)
  884.  
  885. parts={}
  886.  
  887. function gasters()
  888.         gaster1=it('Part',m)
  889.         gaster1.FormFactor='Custom'
  890.         gaster1.Anchored=true
  891.         gaster1.Material = "Neon"
  892.         gaster1.Size=Vector3.new(5,5,9)
  893.         gaster1.CanCollide=false
  894.         gaster1.Transparency=1
  895.         gaster1.Name='gaster1'
  896.         local sg=it('SurfaceGui',gaster1)
  897.         sg.Name='gui'
  898.         local il=it('ImageLabel',sg)
  899.         il.Image='rbxassetid://341902014'
  900.         il.Size=UDim2.new(0,800,0,600)
  901.         il.BackgroundTransparency=1
  902.         il.ImageTransparency=1
  903.         il.Name='image1'
  904.         local sg2=sg:clone()
  905.         sg2.Parent=gaster1
  906.         sg2.Name='gui2'
  907.         sg2.Face='Back'
  908.         local il2=il:clone()
  909.         il2.Name='image2'
  910.         il2.Parent=sg2
  911.         gaster2=gaster1:clone()
  912.         gaster2.Parent=m
  913.         gaster2.Name='gaster2'
  914.         local sg3=sg:clone()
  915.         sg3.Parent=gaster1
  916.         sg3.Name='gui3'
  917.         sg3.Face='Back'
  918.         local il3=il:clone()
  919.         il3.Name='image2'
  920.         il3.Parent=sg3
  921.         gaster3=gaster1:clone()
  922.         gaster3.Parent=m
  923.         gaster3.Size=Vector3.new(9.6,7.4,0.2)
  924.         gaster3.Name='gaster3'
  925. end
  926. gasters()
  927.  
  928.  
  929. function CheckClose(Obj,Dist)
  930.         for _,v in pairs(workspace:GetChildren()) do
  931.                 if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= char then
  932.                         local DistFromTorso = (v.Torso.Position - Obj.Position).magnitude
  933.                         if DistFromTorso < Dist then
  934.                                 return v
  935.                         end
  936.                 end
  937.         end
  938. end
  939.  
  940. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  941.         return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  942. end
  943.  
  944. function rainb(hue)
  945.     local section = hue % 1 * 3
  946.     local secondary = 0.5 * math.pi * (section % 1)
  947.     if section < 1 then
  948.         return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  949.     elseif section < 2 then
  950.         return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  951.     else
  952.         return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  953.     end
  954. end
  955.  
  956. function ring(pos,x,y,z,rx,ry,rz)
  957.         local rng = Instance.new("Part",m)
  958.     rng.Anchored = true
  959.     rng.BrickColor = BrickColor.Random()
  960.     rng.CanCollide = true
  961.     rng.FormFactor = 3
  962.     rng.Name = "Ring"
  963.     rng.Size = Vector3.new(1, 1, 1)
  964.     rng.CanCollide = false
  965.     rng.Transparency = 0.35
  966.     rng.TopSurface = 0
  967.     rng.BottomSurface = 0
  968.     rng.CFrame = pos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  969.     local rngm = Instance.new("SpecialMesh", rng)
  970.     rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  971.     rngm.Scale = Vector3.new(x,y,z)
  972.     spawn(function()
  973.             while wait() do
  974.                 rngm.VertexColor = rainb(tick()*.5)
  975.             end
  976.         end)
  977.         coroutine.wrap(function()
  978.                 for i=0,1,.1 do
  979.                         wait(1/30)
  980.                         rngm.Scale=rngm.Scale+Vector3.new(3,3,3)
  981.                         rng.Transparency=i
  982.                         rng.CFrame=rng.CFrame*CFrame.Angles(rx,ry,rz)
  983.                 end
  984.                 rng:Destroy()
  985.         end)()
  986. end
  987.  
  988. h=gaster1
  989. function laser(asd)
  990.         local ray = Ray.new(asd.CFrame.p, (mouse.Hit.p -  asd.CFrame.p).unit*300)
  991.         local position = mouse.Hit.p
  992.         local distance = (position - asd.CFrame.p).magnitude
  993.         local rp=Instance.new("Part",workspace)
  994.         rp.Anchored=true
  995.         rp.TopSurface="Smooth"
  996.         rp.BottomSurface="Smooth"
  997.         rp.Transparency=0
  998.         rp.Parent=m
  999.         rp.Material = "Neon"
  1000.         rp.FormFactor="Custom"
  1001.         rp.CanCollide=false
  1002.         rp.Size=Vector3.new(5,5,distance)
  1003.         rp.CFrame=CFrame.new(position, asd.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1004.         local cy=Instance.new("SpecialMesh",rp)
  1005.         cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1006.         cy.Scale = Vector3.new(5,5,distance)*2
  1007.         cy.TextureId = "http://www.roblox.com/asset/?id=0"
  1008.         spawn(function()
  1009.             while wait() do
  1010.                 cy.VertexColor = rainb(tick()*.5)
  1011.             end
  1012.         end)
  1013.         local circle=Instance.new('Part',m)
  1014.         circle.Transparency=0
  1015.         circle.CanCollide=false
  1016.         circle.TopSurface='Smooth'
  1017.         circle.Anchored=true
  1018.         circle.Material = "Neon"
  1019.         circle.FormFactor='Custom'
  1020.         circle.Size=Vector3.new(1,1,1)
  1021.         circle.CFrame=mouse.hit
  1022.         circle.BottomSurface='Smooth'
  1023.         local circlemesh=Instance.new('SpecialMesh',circle)
  1024.         circlemesh.MeshType='Sphere'
  1025.         circlemesh.Scale=Vector3.new(1,1,1)
  1026.         circlemesh.VertexColor = rainb(tick()*.5)
  1027.         ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1028.         ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1029.         ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1030.         local z=Instance.new("Sound", rp)
  1031.         z.SoundId="rbxassetid://340722848"
  1032.         z.Pitch=1
  1033.         z.Volume=5
  1034.         wait()
  1035.         z:Play()
  1036.         coroutine.wrap(function()
  1037.                 for i=0,1,.1 do
  1038.                         wait(1/30)
  1039.                         circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
  1040.                         circle.Transparency=i
  1041.                 end
  1042.                 circle:Destroy()
  1043.         end)()
  1044.         for i=1,10 do
  1045.                 wait()
  1046.                 cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  1047.         end
  1048.         rp:Destroy()
  1049.         if CheckClose(circle,5) then
  1050.                 --for i = 1,40 do
  1051.                         CheckClose(circle,5).Humanoid:TakeDamage(10)
  1052.                         --wait(0.05)
  1053.                -- end
  1054.         end
  1055. end
  1056. h2 = gaster3
  1057. function laser2(asd)
  1058.         local ray = Ray.new(asd.CFrame.p, (mouse.Hit.p -  asd.CFrame.p).unit*300)
  1059.         local position = mouse.Hit.p
  1060.         local distance = (position - asd.CFrame.p).magnitude
  1061.         local rp=Instance.new("Part",workspace)
  1062.         rp.Anchored=true
  1063.         rp.TopSurface="Smooth"
  1064.         rp.BottomSurface="Smooth"
  1065.         rp.Transparency=0
  1066.         rp.Parent=m
  1067.         rp.Material = "Neon"
  1068.         rp.FormFactor="Custom"
  1069.         rp.CanCollide=false
  1070.         rp.Size=Vector3.new(10,10,distance)
  1071.         rp.CFrame=CFrame.new(position, asd.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1072.         cy = Instance.new("SpecialMesh",rp)
  1073.         cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1074.         cy.Scale = Vector3.new(10,10,distance)*2
  1075.         cy.TextureId = "http://www.roblox.com/asset/?id=0"
  1076.         spawn(function()
  1077.             while wait() do
  1078.                 cy.VertexColor = rainb(tick()*.5)
  1079.             end
  1080.         end)
  1081.         local circle=Instance.new('Part',m)
  1082.         circle.Transparency=0
  1083.         circle.CanCollide=false
  1084.         circle.TopSurface='Smooth'
  1085.         circle.Anchored=true
  1086.         circle.Material = "Neon"
  1087.         circle.FormFactor='Custom'
  1088.         circle.Size=Vector3.new(1,1,1)
  1089.         circle.CFrame=mouse.hit
  1090.         circle.BottomSurface='Smooth'
  1091.         local circlemesh=Instance.new('SpecialMesh',circle)
  1092.         circlemesh.MeshType='Sphere'
  1093.         circlemesh.Scale=Vector3.new(1,1,1)
  1094.         circlemesh.VertexColor = rainb(tick()*.5)
  1095.         ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1096.         ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1097.         ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1098.         local z=Instance.new("Sound", rp)
  1099.         z.SoundId="rbxassetid://340722848"
  1100.         z.Pitch=1
  1101.         z.Volume=5
  1102.         wait()
  1103.         z:Play()
  1104.         coroutine.wrap(function()
  1105.                 for i=0,1,.1 do
  1106.                         wait(1/30)
  1107.                         circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
  1108.                         circle.Transparency=i
  1109.                 end
  1110.                 circle:Destroy()
  1111.         end)()
  1112.         for i=1,10 do
  1113.                 wait()
  1114.                 cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  1115.         end
  1116.         rp:Destroy()
  1117.         if CheckClose(circle,5) then
  1118.             --for i=1,80 do
  1119.                     CheckClose(circle,5).Humanoid:TakeDamage(20)
  1120.                     --wait(0.05)
  1121.             --end
  1122.         end
  1123. end
  1124.  
  1125. function rocks(cf,e)
  1126.         local hit,pos=rayCast(torso.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,100,char)
  1127.         local part=Instance.new('Part',m)
  1128.         part.Size=Vector3.new(5,1,5)
  1129.         part.Position=pos
  1130.         part.CFrame=cf
  1131.         part.Material = "Neon"
  1132.         part.Anchored=true
  1133.         part.Transparency = 0
  1134.         --part.CFrame=workspace.Base.CFrame*pos
  1135.         local mesh=Instance.new('SpecialMesh',part)
  1136.         mesh.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1137.         mesh.Scale = Vector3.new(5,1,5)*2
  1138.         mesh.TextureId = "http://www.roblox.com/asset/?id=0"
  1139.         spawn(function()
  1140.             while wait() do
  1141.                 mesh.VertexColor = rainb(tick()*.5)
  1142.             end
  1143.         end)
  1144.         local z=Instance.new("Sound", part)
  1145.         z.SoundId="rbxassetid://132758217"
  1146.         z.Pitch=1
  1147.         z.Volume=5
  1148.         wait()
  1149.         z:Play()
  1150.         ti(parts,e,part)
  1151.         if CheckClose(part,10) then
  1152.                 CheckClose(part,10).Humanoid:TakeDamage(50)
  1153.                 CheckClose(part,10).Torso.Velocity=Vector3.new(0,100,0)
  1154.         end
  1155.         for i=1,4 do
  1156.                 game:service'RunService'.Heartbeat:wait(0)
  1157.                 mesh.Scale=mesh.Scale+Vector3.new(0,11,0)
  1158.         end
  1159. end
  1160.  
  1161. function goback(mesha)
  1162.         for i=1,2.5 do
  1163.                 game:service'RunService'.Heartbeat:wait(0)
  1164.                 mesha.Scale=mesha.Scale-Vector3.new(0,9,0)
  1165.         end
  1166. end
  1167.  
  1168. function bones()
  1169.        
  1170.                 --attack=true
  1171.                 --[[for i=0,2,0.1 do
  1172.                         swait()
  1173.                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-45), math.rad(25),0 ), 0.2)
  1174.                         hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-5), math.rad(20)), 0.2)
  1175.                         rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.2,0)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(22)), 0.2)
  1176.                         larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-15)), 0.2)
  1177.                         lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, 0, 0) * CFrame.Angles(math.rad(45), 0, math.rad(22)), 0.2)
  1178.                         rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-25), 0, math.rad(0)), 0.2)
  1179.                 end]]--
  1180.                 local ass=root.CFrame
  1181.                 for i=1,10 do
  1182.                         rocks(ass*CFrame.new(0,i,-5*(i*2)),i)--
  1183.                 end
  1184.                 for i,v in pairs(parts) do
  1185.                         pcall(function()
  1186.                                 local z=Instance.new("Sound", v)
  1187.                                 z.SoundId="rbxassetid://132758217"
  1188.                                 z.Pitch=-1
  1189.                                 z.Volume=5
  1190.                                 wait()
  1191.                                 z:Play()
  1192.                                 for i=1,4 do
  1193.                                     pcall(function()
  1194.                                         game:service'RunService'.Heartbeat:wait(0)
  1195.                                         v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
  1196.                                     end)
  1197.                                 end
  1198.                                 v:destroy()
  1199.                         end)
  1200.                 end
  1201.                 for i,v in pairs(parts) do
  1202.                         for i=1,10 do
  1203.                                 tr(parts,i)
  1204.                         end
  1205.                 end
  1206.                 bonesa=false
  1207.         end
  1208.  
  1209. function bones2()
  1210.     if bonesa==false then
  1211.         bonesa=true
  1212.         local ass=root.CFrame
  1213.         for i=1,10 do
  1214.             rocks(ass*CFrame.new(-5*(i*2),0,0),i)
  1215.             rocks(ass*CFrame.new(5*(i*2),0,0),i)--
  1216.         end
  1217.         attack=false
  1218.         for i,v in pairs(parts) do
  1219.             pcall(function()
  1220.                 local z=Instance.new("Sound", v)
  1221.                 z.SoundId="rbxassetid://132758217"
  1222.                 z.Pitch=-1
  1223.                 z.Volume=5
  1224.                 wait()
  1225.                 z:Play()
  1226.                 for i=1,4 do
  1227.                     game:service'RunService'.Heartbeat:wait(0)
  1228.                     v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
  1229.                 end
  1230.                 v:destroy()
  1231.             end)
  1232.         end
  1233.         for i,v in pairs(parts) do
  1234.             for i=1,10 do
  1235.                     tr(parts,i)
  1236.             end
  1237.         end
  1238.         bonesa=false
  1239.     end
  1240. end
  1241. function bones3()
  1242.     if bonesa==false then
  1243.         bonesa=true
  1244.         local ass=root.CFrame
  1245.         for i=1,10 do
  1246.             rocks(ass*CFrame.new(-5*i,0,i*2)*CFrame.Angles(0,0,0),i)
  1247.             rocks(ass*CFrame.new(5*i,0,i*2)*CFrame.Angles(0,0,0),i)
  1248.         end
  1249.     for i=1,30 do
  1250.        rocks(ass*CFrame.new(0,i,-5*(i*2)),i)--
  1251.         end
  1252.         attack=false
  1253.         for i,v in pairs(parts) do
  1254.             pcall(function()
  1255.                 local z=Instance.new("Sound", v)
  1256.                 z.SoundId="rbxassetid://132758217"
  1257.                 z.Pitch=-1
  1258.                 z.Volume=5
  1259.                 wait()
  1260.                 z:Play()
  1261.                 for i=1,4 do
  1262.                     game:service'RunService'.Heartbeat:wait(0)
  1263.                     v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
  1264.                 end
  1265.                 v:destroy()
  1266.             end)
  1267.         end
  1268.         for i,v in pairs(parts) do
  1269.             for i=1,10 do
  1270.                 tr(parts,i)
  1271.             end
  1272.         end
  1273.         bonesa=false
  1274.         end
  1275. end
  1276. function double()
  1277.     gaster1.gui.image1.ImageTransparency=1
  1278.     gaster1.gui2.image2.ImageTransparency=1
  1279.     gaster2.gui.image1.ImageTransparency=1
  1280.     gaster2.gui2.image2.ImageTransparency=1
  1281.     local ray = Ray.new(gaster1.CFrame.p, (mouse.Hit.p -  gaster1.CFrame.p).unit*300)
  1282.     local position = mouse.Hit.p
  1283.     local distance = (position - gaster1.CFrame.p).magnitude
  1284.     local rp=Instance.new("Part",workspace)
  1285.     rp.Anchored=true
  1286.     rp.TopSurface="Smooth"
  1287.     rp.BottomSurface="Smooth"
  1288.     rp.Transparency=0
  1289.     rp.Material = "Neon"
  1290.     rp.Parent=m
  1291.     rp.FormFactor="Custom"
  1292.     rp.CanCollide=false
  1293.     rp.Size=Vector3.new(5,5,distance)
  1294.     rp.CFrame=CFrame.new(position, gaster1.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1295.     local cy=Instance.new("SpecialMesh",rp)
  1296.         cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1297.         cy.Scale = Vector3.new(5,5,distance)*2
  1298.         cy.TextureId = "http://www.roblox.com/asset/?id=0"
  1299.         spawn(function()
  1300.             while wait() do
  1301.                 cy.VertexColor = rainb(tick()*.5)
  1302.             end
  1303.         end)
  1304.     local circle=Instance.new('Part',m)
  1305.     circle.Transparency=0
  1306.     circle.CanCollide=false
  1307.     circle.TopSurface='Smooth'
  1308.     circle.Anchored=true
  1309.     circle.Material = "Neon"
  1310.     circle.FormFactor='Custom'
  1311.     circle.Size=Vector3.new(1,1,1)
  1312.     circle.CFrame=mouse.hit
  1313.     circle.BottomSurface='Smooth'
  1314.     local circlemesh=Instance.new('SpecialMesh',circle)
  1315.     circlemesh.MeshType='Sphere'
  1316.     circlemesh.Scale=Vector3.new(1,1,1)
  1317.     circlemesh.VertexColor = rainb(tick()*.5)
  1318.     local rp2=Instance.new("Part",workspace)
  1319.     rp2.Anchored=true
  1320.     rp2.TopSurface="Smooth"
  1321.     rp2.BottomSurface="Smooth"
  1322.     rp2.Transparency=0
  1323.     rp2.Parent=m
  1324.     rp2.Material = "Neon"
  1325.     rp2.FormFactor="Custom"
  1326.     rp2.CanCollide=false
  1327.     rp2.Size=Vector3.new(5,5,distance)
  1328.     rp2.CFrame=CFrame.new(position, gaster2.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1329.     local cy2=Instance.new("SpecialMesh",rp2)
  1330.     cy2.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1331.     cy2.Scale = Vector3.new(5,5,distance)*2
  1332.     cy2.TextureId = "http://www.roblox.com/asset/?id=0"
  1333.     spawn(function()
  1334.         while wait() do
  1335.             cy2.VertexColor = rainb(tick()*.5)
  1336.         end
  1337.     end)
  1338.     local circle2=Instance.new('Part',m)
  1339.     circle2.Transparency=0
  1340.     circle2.CanCollide=false
  1341.     circle2.TopSurface='Smooth'
  1342.     circle2.Anchored=true
  1343.     circle2.Material = "Neon"
  1344.     circle2.FormFactor='Custom'
  1345.     circle2.Size=Vector3.new(1,1,1)
  1346.     circle2.CFrame=mouse.hit
  1347.     circle2.BottomSurface='Smooth'
  1348.     local circlemesh2=Instance.new('SpecialMesh',circle2)
  1349.     circlemesh2.MeshType='Sphere'
  1350.     circlemesh2.Scale=Vector3.new(1,1,1)
  1351.     circlemesh2.VertexColor = rainb(tick()*.5)
  1352.     ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1353.     ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1354.     ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1355.     ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1356.     ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1357.     ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1358.     local z=Instance.new("Sound", rp)
  1359.     z.SoundId="rbxassetid://340722848"
  1360.     z.Pitch=1
  1361.     z.Volume=5
  1362.     wait()
  1363.     z:Play()
  1364.     local z=Instance.new("Sound", rp2)
  1365.     z.SoundId="rbxassetid://340722848"
  1366.     z.Pitch=1
  1367.     z.Volume=5
  1368.     wait()
  1369.     z:Play()
  1370.     if CheckClose(circle,5) then
  1371.         CheckClose(circle,5).Humanoid:TakeDamage(20)
  1372.         CheckClose(circle2,5).Humanoid:TakeDamage(20)
  1373.     end
  1374.     coroutine.wrap(function()
  1375.         for i=0,1,.1 do
  1376.                 wait(1/30)
  1377.                 circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
  1378.             circle.Transparency=i
  1379.             circlemesh2.Scale=circlemesh2.Scale+Vector3.new(3,3,3)
  1380.             circle2.Transparency=i
  1381.         end
  1382.         circle:Destroy()
  1383.     end)()
  1384.     for i=1,10 do
  1385.         wait()
  1386.         cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  1387.         cy2.Scale=cy2.Scale-Vector3.new(0.1,0.1,0)
  1388.     end
  1389.     rp2:destroy()
  1390.     rp:Destroy()
  1391.     gaster1.gui.image1.ImageTransparency=1
  1392.     gaster1.gui2.image2.ImageTransparency=1
  1393.     gaster2.gui.image1.ImageTransparency=1
  1394.     gaster2.gui2.image2.ImageTransparency=1
  1395. end
  1396. charged = true
  1397. --[[spawn(function()
  1398. player=owner
  1399. char=player.Character
  1400. lastCF=char.Torso.Position
  1401. x1=Instance.new("Part",game.Workspace)
  1402. x1.Size=Vector3.new(1,1,1)
  1403. x1.CanCollide=false
  1404. x1.Anchored=true
  1405. x1.Transparency=1
  1406. spawn(function()
  1407. while true do
  1408. wait(-1)
  1409. x1.CFrame=char.Torso.CFrame*CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(50,360)))*CFrame.new(0,0,6)
  1410. end
  1411. end)
  1412. for i = 1,math.huge do
  1413. local dist2 = (lastCF-x1.Position).magnitude
  1414. x2=Instance.new("Part",game.Workspace)
  1415. x2.Size=Vector3.new(1,1,1)
  1416. x2.Material="Neon"
  1417. x2.CFrame=CFrame.new(lastCF,x1.Position)*CFrame.new(0,0,-dist2/2)
  1418. x2.CanCollide=false
  1419. x2.Anchored=true
  1420. local m=Instance.new("SpecialMesh",x2)
  1421. m.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1422. m.Scale = Vector3.new(0.5,0.5,dist2)*2
  1423. m.TextureId = "http://www.roblox.com/asset/?id=0"
  1424. spawn(function()
  1425.     while wait() do
  1426.         m.VertexColor = rainb(tick()*.5)
  1427.     end
  1428. end)
  1429. lastCF=x1.Position
  1430. spawn(function()
  1431. for i = 1,100 do
  1432. x=m.Scale.x/10
  1433. y=m.Scale.x/10
  1434. m.Scale=m.Scale-Vector3.new(x,y,0)
  1435. wait()
  1436. end
  1437. end)
  1438. game.Debris:AddItem(x2,1.5)
  1439. wait()
  1440. end
  1441. x1:Destroy()
  1442. end)]]--
  1443. WeldZ = function(p0,p1,x,y,z,rx,ry,rz,par)
  1444.     p0.Position = p1.Position
  1445.     local w = Instance.new('Motor',par or p0)
  1446.     w.Part0 = p0
  1447.     w.Part1 = p1
  1448.     w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  1449.     return w
  1450. end
  1451. z0=Instance.new("Part",char)
  1452. z0.Material = "Neon"
  1453. z0.CanCollide = false
  1454. z0.Size = Vector3.new(5000,0.01,5000)
  1455. z0.Transparency=1
  1456. WeldZ(z0,Workspace.Terrain,0,1000,0,0,0,0,z0)
  1457. local Dreemurr=Instance.new("SpecialMesh",z0)
  1458. Dreemurr.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1459. Dreemurr.Scale = Vector3.new(5000,0.01,5000)*2
  1460. Dreemurr.TextureId = "http://www.roblox.com/asset/?id=0"
  1461. function StarRain(amount)
  1462.     Rain=true
  1463.     for i = 1,amount do
  1464.         x = Instance.new("Part")
  1465.         x.Size = Vector3.new(3,8,3)
  1466.         x.TopSurface = "Smooth"
  1467.         x.BottomSurface = "Smooth"
  1468.         x.CanCollide = false
  1469.         x.Anchored = false
  1470.         x.Material = "Neon"
  1471.         x.Transparency = 0
  1472.         local star=Instance.new("SpecialMesh",x)
  1473.         star.MeshId = "http://www.roblox.com/asset/?id=120647846"
  1474.         star.Scale = Vector3.new(30,30,30)
  1475.         star.TextureId = "http://www.roblox.com/asset/?id=120647846"
  1476.         spawn(function()
  1477.             while wait() do
  1478.                 star.VertexColor = rainb(tick()*.5)
  1479.             end
  1480.         end)
  1481.         y = Instance.new("BodyVelocity")
  1482.         y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1483.         y.velocity = Vector3.new(0,-200,0)
  1484.         x.Parent = Workspace
  1485.         y.Parent = x
  1486.         x.CFrame = Workspace.Terrain.CFrame*CFrame.new(math.random(-500,500),1000, math.random(-500,500))
  1487.         game.Debris:AddItem(x, 10)
  1488.         x.Anchored = true
  1489.         x.BrickColor = BrickColor.new("Teal")
  1490.         x.Anchored = false
  1491.         x.Touched:connect(function(hit)
  1492.             if hit.Parent:FindFirstChild("Humanoid") then
  1493.                 hit.Parent:FindFirstChild("Humanoid"):TakeDamage(1)
  1494.             end
  1495.         end)
  1496.         wait(1)
  1497.         x2 = Instance.new("Part")
  1498.         x2.Size = Vector3.new(3,8,3)
  1499.         x2.TopSurface = "Smooth"
  1500.         x2.BottomSurface = "Smooth"
  1501.         x2.CanCollide = false
  1502.         x2.Anchored = false
  1503.         x2.Material = "Neon"
  1504.         x2.Transparency = 0
  1505.         local star2=Instance.new("SpecialMesh",x2)
  1506.         star2.MeshId = "http://www.roblox.com/asset/?id=120647846"
  1507.         star2.Scale = Vector3.new(30,30,30)
  1508.         star2.TextureId = "http://www.roblox.com/asset/?id=120647846"
  1509.         spawn(function()
  1510.             while wait() do
  1511.                 star2.VertexColor = rainb(tick()*.5)
  1512.             end
  1513.         end)
  1514.         y2 = Instance.new("BodyVelocity")
  1515.         y2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1516.         y2.velocity = Vector3.new(0,-200,0)
  1517.         x2.Parent = Workspace
  1518.         y2.Parent = x2
  1519.         x2.CFrame = Workspace.Terrain.CFrame*CFrame.new(math.random(-50,50),1000, math.random(-500,500))
  1520.         game.Debris:AddItem(x2, 10)
  1521.         x2.Anchored = true
  1522.         x2.BrickColor = BrickColor.new("Teal")
  1523.         x2.Anchored = false
  1524.         x2.Touched:connect(function(hit)
  1525.             if hit.Parent:FindFirstChild("Humanoid") then
  1526.                 hit.Parent:FindFirstChild("Humanoid"):TakeDamage(1)
  1527.             end
  1528.         end)
  1529.     end
  1530. end
  1531. Rain = false
  1532. mouse.KeyDown:connect(function(k)
  1533.     k=k:lower()
  1534.     if k=='z' then
  1535.         bones()
  1536.     elseif k == 'g' then
  1537.         local MPS = {}
  1538.         local MousePos = Mouse.Hit.p
  1539.         local LastPart = nil
  1540.         for i = 1,20 do
  1541.         local part = Instance.new("Part",Workspace)
  1542.         part.Anchored = true
  1543.         table.insert(MPS,part)
  1544.         part.FormFactor = "Custom"
  1545.         part.Size = Vector3.new(0,0,0)
  1546.         part.Transparency = 1
  1547.         if LastPart == nil then
  1548.         part.CFrame = CFrame.new(MousePos.X,MousePos.Y,MousePos.Z)
  1549.         else
  1550.         part.CFrame = CFrame.new(LastPart.CFrame.X +math.random(-20,20),LastPart.CFrame.Y +math.random(0,20),LastPart.CFrame.Z +math.random(-20,20))
  1551.         end
  1552.         LastPart = part
  1553.         end
  1554.         for i,v in ipairs(MPS) do
  1555.         if i > 1 then
  1556.         MakeLaser(MPS[i-1],v)
  1557.         end
  1558.         end
  1559.         wait(1.8)
  1560.         for i,v in ipairs(Lasers) do
  1561.         v:Destroy()
  1562.         end
  1563.         for i,v in ipairs(MPS) do
  1564.         v:Destroy()
  1565.         end
  1566.     elseif k=='p' then
  1567.         if stance == 'normal' then
  1568.             stance='headshake'
  1569.         else
  1570.             stance='normal'
  1571.         end
  1572.     elseif k=='x' then
  1573.               bones2()
  1574.     elseif k=='c' then
  1575.                bones3()
  1576.     elseif k=='[' then
  1577.         theme = true
  1578.     elseif k==']' then
  1579.         theme = false
  1580.     elseif k=='e' then
  1581.         if lasera==1 then
  1582.             lasera=2
  1583.             h=gaster1
  1584.             gaster1.Transparency=0
  1585.             laser(h)
  1586.             gaster1.Transparency=1
  1587.         elseif lasera==2 then
  1588.             lasera=1
  1589.             h=gaster2
  1590.             gaster2.Transparency=0
  1591.             laser(h)
  1592.             gaster2.Transparency=1
  1593.         end
  1594.     elseif k=="q" then
  1595.         gaster3.Transparency=0
  1596.         laser2(h2)
  1597.         gaster3.Transparency=1
  1598.     elseif k=='f' then
  1599.         double()
  1600.     elseif k=='v' and Rain == false then
  1601.         StarRain(550)
  1602.         wait(5)
  1603.         Rain = false
  1604.     elseif k=='0' then
  1605.         sprint=true
  1606.     end
  1607. end)
  1608.  
  1609. mouse.KeyUp:connect(function(k)
  1610.         k=k:lower()
  1611.         if k=='0' then
  1612.                 sprint=false
  1613.         end
  1614. end)
  1615.  
  1616. for i,v in pairs(hed:children()) do
  1617.     if v.ClassName == "Sound" then
  1618.         v:Destroy()
  1619.     end
  1620. end
  1621.  
  1622.  
  1623. local sine = 0
  1624. local change = 1
  1625. local val = 0
  1626.  
  1627. char.Humanoid.Health = 100000
  1628. wait()
  1629. char.Humanoid.MaxHealth = 100000
  1630. char.Humanoid.Health = 100000
  1631. pcall(function()
  1632. char.Health:Destroy()
  1633. end)
  1634. while true do
  1635.         swait()
  1636.         sine = sine + change
  1637.         local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1638.         local velderp=RootPart.Velocity.y
  1639.         hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1640.         if equipped==true or equipped==false then
  1641.                 if RootPart.Velocity.y > 1 and hitfloor==nil then
  1642.                         Anim="Jump"
  1643.                         if attack==false then
  1644.                                 if sprint then
  1645.                                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.1)
  1646.                                     hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1647.                                     rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(100)), 0.2)
  1648.                                     larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-100)), 0.2)
  1649.                                     lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.1, -.1) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1650.                                     rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.3, -.5) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1651.                                 else
  1652.                                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.2)
  1653.                                     hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1654.                                     rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(100)), 0.2)
  1655.                                     larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-100)), 0.2)
  1656.                                     lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.1, -.1) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1657.                                     rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.3, -.5) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1658.                                 end
  1659.                         end
  1660.                 elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1661.                         Anim="Fall"
  1662.                         if attack==false then
  1663.                                 if sprint then
  1664.                             torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1665.                                     hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.5) * CFrame.Angles(math.rad(-30), 0, 0), 0.05)
  1666.                                     rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(145)), 0.025)
  1667.                                     larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-145)), 0.025)
  1668.                                     lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1669.                                     rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -.5) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1670.                                 else        
  1671.                                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(0, 0, 0), 0.05)
  1672.                                     hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.5) * CFrame.Angles(math.rad(-30), 0, 0), 0.05)
  1673.                                     rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(145)), 0.025)
  1674.                                     larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-145)), 0.025)
  1675.                                     lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1676.                                     rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -.5) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1677.                                 end
  1678.                         end
  1679.                 elseif torvel<1 and hitfloor~=nil then
  1680.                         Anim="Idle"
  1681.                         if attack==false then
  1682.                                 if stance=='normal' then
  1683.                                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1684.                                         hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5), math.rad(0), 0), 0.2)
  1685.                                         rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.2)
  1686.                                         larm.Weld.C0 = Lerp(larm.Weld.C0,  CFrame.new(-1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
  1687.                                         lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1688.                                         rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  1689.                                 end
  1690.                                 if stance=='headshake' then
  1691.                                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1692.                                         hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-20), math.rad(0)-0.14*math.cos(sine/14), 0), 0.2)
  1693.                                         rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(-100)), 0.2)
  1694.                                         larm.Weld.C0 = Lerp(larm.Weld.C0,  CFrame.new(-1.5,0.55-0.04*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(180),math.rad(100)), 0.2)
  1695.                                         lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1696.                                         rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  1697.                                 end
  1698.                         end
  1699.                 elseif torvel>20 and torvel<35 and hitfloor~=nil then
  1700.                         Anim="Walk"
  1701.                         if attack==false then---135*math.cos(sine/9)
  1702.                                 if stance=='normal' then
  1703.                                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.2)
  1704.                                         hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(3), 0, 0), 0.2)
  1705.                                         rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(.7,0,.7)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-65)), 0.2)
  1706.                                         larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-.7,0,.7)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(55)), 0.2)
  1707.                                         lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1708.                                         rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2)
  1709.                                 end
  1710.                         end
  1711.                 elseif torvel>=35 and hitfloor~=nil then
  1712.                         Anim="Run"
  1713.                         if attack==false then
  1714.                                 if stance=='normal' then
  1715.                                         torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3-0.14*math.cos(sine/20), 0) * CFrame.Angles(math.rad(-40), 0, 0), 0.2)
  1716.                                         hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.2)
  1717.                                         rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(.7,0,.7)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-65)), 0.2)
  1718.                                         larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-.7,0,.7)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(55)), 0.2)
  1719.                                         lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0)+0.04*math.cos(sine/30), 0, math.rad(0)), 0.2)
  1720.                                         rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10)-0.04*math.cos(sine/30), math.rad(0), math.rad(0)), 0.2)
  1721.                                 end
  1722.                         end
  1723.                 end
  1724.         end
  1725.         if sprint==true then
  1726.                 if stance=='normal' then
  1727.                         char.Humanoid.WalkSpeed=70
  1728.                 end
  1729.         else
  1730.                 if stance=='normal' then
  1731.                         char.Humanoid.WalkSpeed=30
  1732.                 end
  1733.         end
  1734.         gaster1.CFrame=CFrame.new(char.Torso.Position,mouse.Hit.p)*CFrame.new(4,3,0)--*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1735.         gaster2.CFrame=CFrame.new(char.Torso.Position,mouse.Hit.p)*CFrame.new(-4,3,0)--*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1736.         gaster3.CFrame=CFrame.new(char.Torso.Position,mouse.Hit.p)*CFrame.new(0,3,4)--*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1737. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top