Advertisement
oskdfoskofksdofk

Untitled

Feb 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.60 KB | None | 0 0
  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 = game.Players.LocalPlayer
  248. local char = plr.Character
  249. local mouse = plr:GetMouse''
  250. local head = char:findFirstChild'Head'
  251. local torso = char:findFirstChild'Torso'
  252. local rightS = torso:findFirstChild'Right Shoulder'
  253. local leftS = torso:findFirstChild'Left Shoulder'
  254. local rightH = torso:findFirstChild'Right Hip'
  255. local leftH = torso:findFirstChild'Left Hip'
  256. local neck = torso:findFirstChild'Neck'
  257. local humanoid = char:findFirstChild'Humanoid'
  258. local rootpart = char:findFirstChild'HumanoidRootPart'
  259. local rootJoint = rootpart:findFirstChild'RootJoint'
  260. local cam = workspace.CurrentCamera
  261. local recJump = false
  262.  
  263. humanoid.Changed:connect(function()
  264. if humanoid.Jump then
  265. recJump = true
  266. wait(.75)
  267. recJump = false
  268. end
  269. end)
  270. colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Really red"}
  271. mouse.KeyDown:connect(function(k)
  272. if k == " " then
  273. if hitfloor==nil then
  274. torso.Velocity = Vector3.new(0,100,0)
  275. ringExplode(torso.CFrame*CFrame.Angles(math.pi/2,0,0),colours[5],5)
  276. end
  277. end
  278. end)
  279. mouse.Button1Down:connect(function()
  280. end)
  281. ----------------------------------------
  282. local lp=game:service'Players'.game55552
  283. local Sans=317772493 -- Sans
  284. local Papyrus=338303436 -- Papyrus
  285. local Asriel=331084437-- Keyboard typing / idk
  286. local gVoufh3="Gaster" -- Gaster
  287. local ActiveVoice=Asriel -- Type in the variable for the character (Voice1-gVoufh3)
  288. local gVoices={
  289. 340366916;
  290. 339369934;
  291. 341214061;
  292. 341222723;
  293. 341222653;
  294. 341222608;
  295. }
  296.  
  297. local interrupt=false;
  298.  
  299. lp.Chatted:connect(function(m)
  300. interrupt=true
  301. wait(.15)
  302. interrupt=false
  303. for i = 1, #m do
  304. if m:sub(1,2)~= '((' then
  305. local s=Instance.new("Sound",workspace)
  306. if ActiveVoice==gVoufh3 then
  307. local a=gVoices
  308. s.SoundId="rbxassetid://"..gVoices[math.random(1,#a)]
  309. else
  310. s.SoundId="rbxassetid://"..ActiveVoice
  311. end
  312. s.Volume=1
  313. s:Play()
  314. s:remove()
  315. if ActiveVoice==Voice or ActiveVoice==gVoufh3 then
  316. wait(.1)
  317. else
  318. wait(.082)
  319. end
  320. end
  321. if interrupt==true then
  322. break
  323. end
  324. end
  325. end)
  326. -------------------------------
  327.  
  328. pls = game:GetService'Players'
  329. lp = pls.LocalPlayer
  330. c = lp.Character
  331. rayModel = Instance.new("Model",c)
  332.  
  333. reflect = function(d,n)
  334. local i, n = -1 * d.unit, n.unit
  335. local dot = n:Dot(i)
  336. return 2*dot*n - i
  337. end
  338.  
  339. makeRayPart = function(pos,look)
  340. local ray = Ray.new(pos,look)
  341. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  342. local e = Instance.new("Part",rayModel)
  343. e.Anchored = true
  344. e.CanCollide = false
  345. e.Material = "Neon"
  346. e.FormFactor = "Custom"
  347. e.Size = Vector3.new(15,15,(pos - hitpos).magnitude)
  348. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  349. local cy=Instance.new("SpecialMesh",e)
  350. cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  351. cy.Scale = Vector3.new(15,15,(pos - hitpos).magnitude)*2
  352. cy.TextureId = "http://www.roblox.com/asset/?id=0"
  353. spawn(function()
  354. while wait() do
  355. cy.VertexColor = rainb(tick()*.5)
  356. end
  357. end)
  358. for i = 1,2 do
  359. local e = Instance.new("Sound",c)
  360. e.Volume = .9
  361. e.Pitch = 0.9
  362. if i == 1 then
  363. e.SoundId = "rbxassetid://340722848"
  364. else
  365. e.SoundId = "rbxassetid://340722848"
  366. end
  367. e:Play()
  368. spawn(function()
  369. wait(6)
  370. e:Destroy()
  371. end)
  372. wait(.05)
  373. end
  374. if hit ~= nil then
  375. newDir = reflect(look.unit,norm)
  376. makeRayPart(hitpos,newDir * 999)
  377. end
  378. end
  379. -------------------------------
  380.  
  381. lp:GetMouse().KeyDown:connect(function(key)
  382. c = lp.Character
  383. if c and key == "r" then
  384. makeRayPart(c.HumanoidRootPart.CFrame.p + Vector3.new(0,10,0), (lp:GetMouse().Hit.p).unit * 999 - c.HumanoidRootPart.CFrame.p)
  385. end
  386. end)
  387.  
  388. game:GetService'RunService'.RenderStepped:connect(function()
  389. local FPS = 1/game:GetService'RunService'.RenderStepped:wait()
  390. for i,v in pairs (rayModel:children()) do
  391. if v.ClassName == "Part" then
  392. if v.Transparency >= .99 then
  393. v:Destroy()
  394. else
  395. v.CanCollide = true
  396. local parts = v:GetTouchingParts()
  397. v.CanCollide = false
  398. for x = 1, #parts do
  399. if parts[x].Parent:FindFirstChild("Humanoid") and parts[x].Parent ~= c then
  400. parts[x].Parent.Humanoid:TakeDamage(1/(FPS/60))
  401. end
  402. end
  403. v.Transparency = v.Transparency + .035/(FPS/60)
  404. v.Size = v.Size + Vector3.new(1.2/(FPS/60),.5/(FPS/60),0)
  405. end
  406. end
  407. end
  408. end)
  409. function HSV(H,S,V)
  410. H = H % 360
  411. local C = V * S
  412. local H2 = H/60
  413. local X = C * (1 - math.abs((H2 %2) -1))
  414. local color = Color3.new(0,0,0)
  415. if H2 <= 0 then
  416. color = Color3.new(C,0,0)
  417. elseif 0 <= H2 and H2 <= 1 then
  418. color = Color3.new(C,X,0)
  419. elseif 1 <= H2 and H2 <= 2 then
  420. color = Color3.new(X,C,0)
  421. elseif 2 <= H2 and H2 <= 3 then
  422. color = Color3.new(0,C,X)
  423. elseif 3 <= H2 and H2 <= 4 then
  424. color = Color3.new(0,X,C)
  425. elseif 4 <= H2 and H2 <= 5 then
  426. color = Color3.new(X,0,C)
  427. elseif 5 <= H2 and H2 <= 6 then
  428. color = Color3.new(C,0,X)
  429. end
  430. local m = V - C
  431. return Color3.new(color.r + m, color.g + m, color.b + m)
  432. end
  433. local hue = 0
  434.  
  435. hue = (hue+1) % 360
  436. local rgb = HSV(hue,.85,.85)
  437.  
  438. Lasers = {}
  439. function MakeLaser(P1,P2)
  440. local LPart = Instance.new("Part",Workspace)
  441. LPart.Anchored = true
  442. LPart.FormFactor = "Custom"
  443. LPart.CanCollide = True
  444. LPart.Transparency = 0
  445. LPart.TopSurface = "Smooth"
  446. LPart.BottomSurface = "Smooth"
  447. LPart.BrickColor = BrickColor.new("Really red")
  448. LPart.Material = "Neon"
  449. table.insert(Lasers,LPart)
  450. LPartMesh = Instance.new("SpecialMesh",LPart)
  451. LPartMesh.MeshType = "Brick"
  452. LPartMesh.VertexColor = rainb(tick()*.5)
  453. local Pos1 = P1.CFrame.p
  454. local Pos2 = P2.CFrame.p
  455. local Dis = (Pos1-Pos2).magnitude
  456. LPart.Size = Vector3.new(4,4,Dis)
  457. LPart.CFrame = CFrame.new(Pos1,Pos2) *CFrame.new(0,0,-Dis/2)
  458. local cy=Instance.new("SpecialMesh",LPart)
  459. cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  460. cy.Scale = Vector3.new(4,4,Dis)*2
  461. cy.TextureId = 'rbxassetid://48358980'
  462. spawn(function()
  463. while wait() do
  464. cy.VertexColor = rainb(tick()*.5)
  465. end
  466. end)
  467. LPart.Touched:connect(function(hit)
  468. if hit.Parent.ClassName == "Model" then
  469. if hit.Parent:FindFirstChild("Humanoid") then
  470. e3 = Instance.new('Explosion',Workspace)
  471. e3.Position = hit.Parent.Torso.Position
  472. e3.BlastPressure = 0
  473. e3.BlastRadius = 5
  474. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(20)
  475. hit.Parent:FindFirstChild("Humanoid").PlatformStand = true
  476. end
  477. end
  478. end)
  479. end
  480. ----------------------------------------
  481. player=game:service'Players'.localPlayerdpeaut
  482. char=player.Character
  483. Player = game:GetService("Players").game55552
  484. Cha = Player.Character
  485. mouse=player:GetMouse()
  486. Mouse = mouse
  487. m=Instance.new('Model',char)
  488. local larm = char["Left Arm"]
  489. local rarm = char["Right Arm"]
  490. local lleg = char["Left Leg"]
  491. local rleg = char["Right Leg"]
  492. local hed = char.Head
  493. local torso = char.Torso
  494. local cam = game.Workspace.CurrentCamera
  495. local root = char.HumanoidRootPart
  496. local RootPart = char.HumanoidRootPart
  497. local Humanoid = char.Humanoid
  498. local Health = Humanoid.Health
  499. local MaxHealth = Humanoid.MaxHealth
  500. it = Instance.new
  501. v3 = Vector3.new
  502. c3 = Color3.new
  503. bn = BrickColor.new
  504. cn = CFrame.new
  505. ca = CFrame.Angles
  506. rd = math.rad
  507. rn = math.random
  508. mp = math.pi
  509. mh = math.huge
  510. ud = UDim2.new
  511. cw = coroutine.wrap
  512. ti = table.insert
  513. tr = table.remove
  514. bonesa=false
  515. lasera=1
  516. stance='normal'
  517. attack=false
  518. equipped=false
  519. sprint=false
  520. theme=false--megalovania
  521. Health = 100000
  522. wait(0.0005)
  523. MaxHealth = 100000
  524. char.Health:Destroy()
  525. -----------------------------------------------------
  526. function nooutline(part)
  527. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  528. end
  529. lite = Instance.new("PointLight")
  530. lite.Parent = Cha.Torso
  531. lite.Brightness = 100
  532. lite.Range = 8
  533. lite.Color = Color3.new(1,1,1)
  534. for i,v in pairs(char:children()) do
  535. if v:IsA("Hat") then
  536. v:Destroy()
  537. end
  538. end
  539. ----------------------------------------------------
  540. local m = Instance.new("Model")
  541. m.Name = "Hair"
  542. p1 = Instance.new("Part", m)
  543. p1.BrickColor = BrickColor.new("Institutional white")
  544. p1.FormFactor = Enum.FormFactor.Symmetric
  545. p1.Size = Vector3.new(1, 1, 1)
  546. 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)
  547. p1.CanCollide = false
  548. p1.Locked = true
  549. p1.BottomSurface = Enum.SurfaceType.Smooth
  550. p1.TopSurface = Enum.SurfaceType.Smooth
  551. b1 = Instance.new("SpecialMesh", p1)
  552. b1.MeshId = "http://www.roblox.com/asset/?id=12212520"
  553. b1.TextureId = ""
  554. b1.MeshType = Enum.MeshType.FileMesh
  555. b1.Name = "Mesh"
  556. b1.VertexColor = Vector3.new(0, 0, 0)
  557. b1.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  558. p2 = Instance.new("Part", m)
  559. p2.BrickColor = BrickColor.new("Really red")
  560. p2.Transparency = 1
  561. p2.Name = "Head"
  562. p2.FormFactor = Enum.FormFactor.Symmetric
  563. p2.Size = Vector3.new(2, 1, 1)
  564. 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)
  565. p2.CanCollide = false
  566. p2.Locked = true
  567. p2.TopSurface = Enum.SurfaceType.Smooth
  568. b2 = Instance.new("SpecialMesh", p2)
  569. b2.MeshType = Enum.MeshType.Head
  570. b2.Name = "Mesh"
  571. b2.Scale = Vector3.new(1.25, 1.25, 1.25)
  572. p3 = Instance.new("Part", m)
  573. p3.BrickColor = BrickColor.new("Really red")
  574. p3.FormFactor = Enum.FormFactor.Symmetric
  575. p3.Size = Vector3.new(2, 2, 2)
  576. 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)
  577. p3.CanCollide = false
  578. p3.Locked = true
  579. p3.BottomSurface = Enum.SurfaceType.Smooth
  580. p3.TopSurface = Enum.SurfaceType.Smooth
  581. b3 = Instance.new("SpecialMesh", p3)
  582. b3.MeshId = "http://www.roblox.com/asset/?id=16627529"
  583. b3.TextureId = ""
  584. b3.MeshType = Enum.MeshType.FileMesh
  585. b3.Name = "Mesh"
  586. b3.VertexColor = Vector3.new(0, 0, 0)
  587. b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  588. p4 = Instance.new("Part", m)
  589. p4.BrickColor = BrickColor.new("Institutional white")
  590. p4.FormFactor = Enum.FormFactor.Symmetric
  591. p4.Size = Vector3.new(1, 1, 1)
  592. 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)
  593. p4.CanCollide = false
  594. p4.Locked = true
  595. p4.BottomSurface = Enum.SurfaceType.Smooth
  596. p4.TopSurface = Enum.SurfaceType.Smooth
  597. b4 = Instance.new("SpecialMesh", p4)
  598. b4.MeshId = "http://www.roblox.com/asset/?id=19326912"
  599. b4.TextureId = ""
  600. b4.MeshType = Enum.MeshType.FileMesh
  601. b4.Name = "Mesh"
  602. b4.VertexColor = Vector3.new(0, 0, 0)
  603. p5 = Instance.new("Part", m)
  604. p5.BrickColor = BrickColor.new("Institutional white")
  605. p5.FormFactor = Enum.FormFactor.Symmetric
  606. p5.Size = Vector3.new(1, 1, 1)
  607. 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)
  608. p5.CanCollide = false
  609. p5.Locked = true
  610. p5.BottomSurface = Enum.SurfaceType.Smooth
  611. p5.TopSurface = Enum.SurfaceType.Smooth
  612. b5 = Instance.new("SpecialMesh", p5)
  613. b5.MeshId = "http://www.roblox.com/asset/?id=45916884"
  614. b5.TextureId = ""
  615. b5.MeshType = Enum.MeshType.FileMesh
  616. b5.Name = "Mesh"
  617. b5.VertexColor = Vector3.new(0, 0, 0)
  618. b5.Scale = Vector3.new(1, 0.899999976, 1)
  619. p6 = Instance.new("Part", m)
  620. p6.BrickColor = BrickColor.new("Institutional white")
  621. p6.FormFactor = Enum.FormFactor.Symmetric
  622. p6.Size = Vector3.new(1, 1, 1)
  623. 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)
  624. p6.CanCollide = false
  625. p6.Locked = true
  626. p6.BottomSurface = Enum.SurfaceType.Smooth
  627. p6.TopSurface = Enum.SurfaceType.Smooth
  628. b6 = Instance.new("SpecialMesh", p6)
  629. b6.MeshId = "http://www.roblox.com/asset/?id=62246019"
  630. b6.TextureId = ""
  631. b6.MeshType = Enum.MeshType.FileMesh
  632. b6.Name = "Mesh"
  633. b6.VertexColor = Vector3.new(0, 0, 0)
  634. p7 = Instance.new("Part", m)
  635. p7.BrickColor = BrickColor.new("Institutional white")
  636. p7.FormFactor = Enum.FormFactor.Symmetric
  637. p7.Size = Vector3.new(1, 1, 1)
  638. 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)
  639. p7.CanCollide = false
  640. p7.Locked = true
  641. p7.BottomSurface = Enum.SurfaceType.Smooth
  642. p7.TopSurface = Enum.SurfaceType.Smooth
  643. b7 = Instance.new("SpecialMesh", p7)
  644. b7.MeshId = "http://www.roblox.com/asset/?id=76056263"
  645. b7.TextureId = ""
  646. b7.MeshType = Enum.MeshType.FileMesh
  647. b7.Name = "Mesh"
  648. b7.VertexColor = Vector3.new(0, 0, 0)
  649. p8 = Instance.new("Part", m)
  650. p8.BrickColor = BrickColor.new("Institutional white")
  651. p8.FormFactor = Enum.FormFactor.Symmetric
  652. p8.Size = Vector3.new(1, 1, 1)
  653. 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)
  654. p8.CanCollide = false
  655. p8.Locked = true
  656. p8.BottomSurface = Enum.SurfaceType.Smooth
  657. p8.TopSurface = Enum.SurfaceType.Smooth
  658. b8 = Instance.new("SpecialMesh", p8)
  659. b8.MeshId = "http://www.roblox.com/asset/?id=12212520"
  660. b8.TextureId = ""
  661. b8.MeshType = Enum.MeshType.FileMesh
  662. b8.Name = "Mesh"
  663. b8.VertexColor = Vector3.new(0, 0, 0)
  664. b8.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  665. p9 = Instance.new("Part", m)
  666. p9.BrickColor = BrickColor.new("Institutional white")
  667. p9.FormFactor = Enum.FormFactor.Symmetric
  668. p9.Size = Vector3.new(2, 1, 2)
  669. 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)
  670. p9.CanCollide = false
  671. p9.Locked = true
  672. p9.BottomSurface = Enum.SurfaceType.Smooth
  673. p9.TopSurface = Enum.SurfaceType.Smooth
  674. b9 = Instance.new("SpecialMesh", p9)
  675. b9.MeshId = "http://www.roblox.com/asset/?id=12259089"
  676. b9.TextureId = ""
  677. b9.MeshType = Enum.MeshType.FileMesh
  678. b9.Name = "Mesh"
  679. b9.VertexColor = Vector3.new(0, 0, 0)
  680. b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995)
  681. p10 = Instance.new("Part", m)
  682. p10.BrickColor = BrickColor.new("Institutional white")
  683. p10.FormFactor = Enum.FormFactor.Symmetric
  684. p10.Size = Vector3.new(1, 1, 1)
  685. 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)
  686. p10.CanCollide = false
  687. p10.Locked = true
  688. p10.BottomSurface = Enum.SurfaceType.Smooth
  689. p10.TopSurface = Enum.SurfaceType.Smooth
  690. b10 = Instance.new("SpecialMesh", p10)
  691. b10.MeshId = "http://www.roblox.com/asset/?id=12212520"
  692. b10.TextureId = ""
  693. b10.MeshType = Enum.MeshType.FileMesh
  694. b10.Name = "Mesh"
  695. b10.VertexColor = Vector3.new(0, 0, 0)
  696. b10.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  697. p11 = Instance.new("Part", m)
  698. p11.BrickColor = BrickColor.new("Realy Red")
  699. p11.FormFactor = Enum.FormFactor.Symmetric
  700. p11.Size = Vector3.new(1, 1, 1)
  701. 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)
  702. p11.CanCollide = false
  703. p11.Locked = true
  704. p11.BottomSurface = Enum.SurfaceType.Smooth
  705. p11.TopSurface = Enum.SurfaceType.Smooth
  706. b11 = Instance.new("SpecialMesh", p11)
  707. b11.MeshId = "http://www.roblox.com/asset/?id=12212520"
  708. b11.TextureId = ""
  709. b11.MeshType = Enum.MeshType.FileMesh
  710. b11.Name = "Mesh"
  711. b11.VertexColor = Vector3.new(0, 0, 0)
  712. b11.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  713. w1 = Instance.new("Weld", p1)
  714. w1.Name = "Head_Weld"
  715. w1.Part0 = p1
  716. 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)
  717. w1.Part1 = p2
  718. 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)
  719. w2 = Instance.new("Weld", p2)
  720. w2.Name = "Weld"
  721. w2.Part0 = p2
  722. 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)
  723. w2.Part1 = p3
  724. w2.C1 = CFrame.new(-28.5999947, -23.3999996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  725. w3 = Instance.new("Weld", p3)
  726. w3.Name = "Weld"
  727. w3.Part0 = p3
  728. 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)
  729. w3.Part1 = p4
  730. w3.C1 = CFrame.new(-28.5998726, -23.5300045, 13.2202082, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  731. w4 = Instance.new("Weld", p4)
  732. w4.Name = "Weld"
  733. w4.Part0 = p4
  734. 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)
  735. w4.Part1 = p5
  736. w4.C1 = CFrame.new(-28.5999947, -23.1499996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  737. w5 = Instance.new("Weld", p5)
  738. w5.Name = "Weld"
  739. w5.Part0 = p5
  740. 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)
  741. w5.Part1 = p6
  742. w5.C1 = CFrame.new(-28.5501289, -23.27001, 13.1003361, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  743. w6 = Instance.new("Weld", p6)
  744. w6.Name = "Weld"
  745. w6.Part0 = p6
  746. 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)
  747. w6.Part1 = p7
  748. w6.C1 = CFrame.new(-28.4990501, -23.0000057, 13.1008282, 0, 0, 0.999999881, 0, 1, 0, -0.999999881, 0, 0)
  749. w7 = Instance.new("Weld", p7)
  750. w7.Name = "Weld"
  751. w7.Part0 = p7
  752. 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)
  753. w7.Part1 = p8
  754. 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)
  755. w8 = Instance.new("Weld", p8)
  756. w8.Name = "Weld"
  757. w8.Part0 = p8
  758. 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)
  759. w8.Part1 = p9
  760. w8.C1 = CFrame.new(-28.5993843, -21.8107243, 15.4820604, 0, 0, 0.999999583, -0.0995036662, 0.995037258, 0, -0.995036721, -0.0995037258, 0)
  761. w9 = Instance.new("Weld", p9)
  762. w9.Name = "Weld"
  763. w9.Part0 = p9
  764. 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)
  765. w9.Part1 = p10
  766. 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)
  767. w10 = Instance.new("Weld", p10)
  768. w10.Name = "Weld"
  769. w10.Part0 = p10
  770. 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)
  771. w10.Part1 = p11
  772. 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)
  773. m.Parent = char
  774. m:MakeJoints()
  775. ----------------------------------------------------
  776. local cor = Instance.new("Part", char.Hair)
  777. cor.Name = "Link"
  778. cor.Locked = true
  779. cor.BottomSurface = 0
  780. cor.CanCollide = false
  781. cor.Size = Vector3.new(1, 9, 1)
  782. cor.Transparency = 1
  783. cor.TopSurface = 0
  784. corw = Instance.new("Weld", cor)
  785. corw.Part0 = hed
  786. corw.Part1 = cor
  787. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  788. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  789. weld1 = Instance.new("Weld", char.Hair)
  790. weld1.Part0 = cor
  791. weld1.Part1 = char.Hair.Head
  792. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  793. ------------------------------------------------------
  794. hed.BrickColor = BrickColor.new("Institutional white")
  795. torso.BrickColor = BrickColor.new("Institutional white")
  796. rleg.BrickColor = BrickColor.new("Institutional white")
  797. lleg.BrickColor = BrickColor.new("Institutional white")
  798. rarm.BrickColor = BrickColor.new("Institutional white")
  799. larm.BrickColor = BrickColor.new("Institutional white")
  800.  
  801. local z=Instance.new("Sound", char)
  802. z.SoundId="rbxassetid://328606227"
  803. z.Pitch=1
  804. z.Volume=5
  805. z.Looped=true
  806.  
  807. Cha.Shirt:Remove()
  808. Cha.Pants:Remove()
  809.  
  810. MainShirt = Instance.new("Shirt",Character)
  811. MainShirt.Parent = Cha
  812. MainShirt.ShirtTemplate = "http://www.roblox.com/asset/?id=335483801"
  813. MainShirt.Name = "Shirt"
  814.  
  815. MainPants = Instance.new("Pants",Character)
  816. MainPants.Parent = Cha
  817. MainPants.PantsTemplate = "http://www.roblox.com/asset/?id=335484664"
  818. MainPants.Name = "Pants"
  819.  
  820. playing = false
  821. spawn(function()
  822. while wait() do
  823. hed.BrickColor = BrickColor.new("Institutional white")
  824. torso.BrickColor = BrickColor.new("Institutional white")
  825. rleg.BrickColor = BrickColor.new("Institutional white")
  826. lleg.BrickColor = BrickColor.new("Institutional white")
  827. rarm.BrickColor = BrickColor.new("Institutional white")
  828. larm.BrickColor = BrickColor.new("Institutional white")
  829. if theme==false and playing == true then
  830. z:Pause()
  831. playing = false
  832. end
  833. if theme==true and playing == false then
  834. z:Play()
  835. playing = true
  836. end
  837. wait()
  838. end
  839. end)
  840. --[[local exprt=it('Part',m)
  841. exprt.Anchored=true
  842. exprt.CanCollide=false
  843. exprt.Position=root.Position]]
  844.  
  845. function swait(num)
  846. if num==0 or num==nil then
  847. game:service'RunService'.Stepped:wait(0)
  848. else
  849. for i=0,num do
  850. game:service'RunService'.Stepped:wait(0)
  851. end
  852. end
  853. end
  854.  
  855. function Lerp(a, b, i)
  856. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  857. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  858. local calx = com1[1] + (com2[1] - com1[1]) * i
  859. local caly = com1[2] + (com2[2] - com1[2]) * i
  860. local calz = com1[3] + (com2[3] - com1[3]) * i
  861. local cala = com1[4] + (com2[4] - com1[4]) * i
  862. local calb = com1[5] + (com2[5] - com1[5]) * i
  863. local calc = com1[6] + (com2[6] - com1[6]) * i
  864. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  865. end
  866.  
  867. weld = function(wp0, wp1, wc0x, wc0y, wc0z)
  868. wld = Instance.new("Weld", wp1)
  869. wld.Part0 = wp0
  870. wld.Part1 = wp1
  871. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  872. return wld
  873. end
  874.  
  875. weld(torso, larm, -1.5, 0.5, 0)
  876. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  877. weld(torso, rarm, 1.5, 0.5, 0)
  878. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  879. weld(torso, hed, 0, 1.5, 0)
  880. weld(torso, lleg, -0.5, -1, 0)
  881. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  882. weld(torso, rleg, 0.5, -1, 0)
  883. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  884. weld(root, torso, 0, -1, 0)
  885. torso.Weld.C1 = CFrame.new(0, -1, 0)
  886.  
  887. parts={}
  888.  
  889. function gasters()
  890. gaster1=it('Part',m)
  891. gaster1.FormFactor='Custom'
  892. gaster1.Anchored=true
  893. gaster1.Material = "Neon"
  894. gaster1.Size=Vector3.new(5,5,9)
  895. gaster1.CanCollide=false
  896. gaster1.Transparency=1
  897. gaster1.Name='gaster1'
  898. local sg=it('SurfaceGui',gaster1)
  899. sg.Name='gui'
  900. local il=it('ImageLabel',sg)
  901. il.Image='rbxassetid://341902014'
  902. il.Size=UDim2.new(0,800,0,600)
  903. il.BackgroundTransparency=1
  904. il.ImageTransparency=1
  905. il.Name='image1'
  906. local sg2=sg:clone()
  907. sg2.Parent=gaster1
  908. sg2.Name='gui2'
  909. sg2.Face='Back'
  910. local il2=il:clone()
  911. il2.Name='image2'
  912. il2.Parent=sg2
  913. gaster2=gaster1:clone()
  914. gaster2.Parent=m
  915. gaster2.Name='gaster2'
  916. local sg3=sg:clone()
  917. sg3.Parent=gaster1
  918. sg3.Name='gui3'
  919. sg3.Face='Back'
  920. local il3=il:clone()
  921. il3.Name='image2'
  922. il3.Parent=sg3
  923. gaster3=gaster1:clone()
  924. gaster3.Parent=m
  925. gaster3.Size=Vector3.new(9.6,7.4,0.2)
  926. gaster3.Name='gaster3'
  927. end
  928. gasters()
  929.  
  930.  
  931. function CheckClose(Obj,Dist)
  932. for _,v in pairs(workspace:GetChildren()) do
  933. if v:FindFirstChild('Humanoid') and v:FindFirstChild('Torso') and v ~= char then
  934. local DistFromTorso = (v.Torso.Position - Obj.Position).magnitude
  935. if DistFromTorso < Dist then
  936. return v
  937. end
  938. end
  939. end
  940. end
  941.  
  942. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  943. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  944. end
  945.  
  946. function rainb(hue)
  947. local section = hue % 1 * 3
  948. local secondary = 0.5 * math.pi * (section % 1)
  949. if section < 1 then
  950. return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  951. elseif section < 2 then
  952. return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  953. else
  954. return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  955. end
  956. end
  957.  
  958. function ring(pos,x,y,z,rx,ry,rz)
  959. local rng = Instance.new("Part",m)
  960. rng.Anchored = true
  961. rng.BrickColor = BrickColor.Random()
  962. rng.CanCollide = true
  963. rng.FormFactor = 3
  964. rng.Name = "Ring"
  965. rng.Size = Vector3.new(1, 1, 1)
  966. rng.CanCollide = false
  967. rng.Transparency = 0.35
  968. rng.TopSurface = 0
  969. rng.BottomSurface = 0
  970. rng.CFrame = pos*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  971. local rngm = Instance.new("SpecialMesh", rng)
  972. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  973. rngm.Scale = Vector3.new(x,y,z)
  974. spawn(function()
  975. while wait() do
  976. rngm.VertexColor = rainb(tick()*.5)
  977. end
  978. end)
  979. coroutine.wrap(function()
  980. for i=0,1,.1 do
  981. wait(1/30)
  982. rngm.Scale=rngm.Scale+Vector3.new(3,3,3)
  983. rng.Transparency=i
  984. rng.CFrame=rng.CFrame*CFrame.Angles(rx,ry,rz)
  985. end
  986. rng:Destroy()
  987. end)()
  988. end
  989.  
  990. h=gaster1
  991. function laser(asd)
  992. local ray = Ray.new(asd.CFrame.p, (mouse.Hit.p - asd.CFrame.p).unit*300)
  993. local position = mouse.Hit.p
  994. local distance = (position - asd.CFrame.p).magnitude
  995. local rp=Instance.new("Part",workspace)
  996. rp.Anchored=true
  997. rp.TopSurface="Smooth"
  998. rp.BottomSurface="Smooth"
  999. rp.Transparency=0
  1000. rp.Parent=m
  1001. rp.Material = "Neon"
  1002. rp.FormFactor="Custom"
  1003. rp.CanCollide=false
  1004. rp.Size=Vector3.new(5,5,distance)
  1005. rp.CFrame=CFrame.new(position, asd.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1006. local cy=Instance.new("SpecialMesh",rp)
  1007. cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1008. cy.Scale = Vector3.new(5,5,distance)*2
  1009. cy.TextureId = "http://www.roblox.com/asset/?id=0"
  1010. spawn(function()
  1011. while wait() do
  1012. cy.VertexColor = rainb(tick()*.5)
  1013. end
  1014. end)
  1015. local circle=Instance.new('Part',m)
  1016. circle.Transparency=0
  1017. circle.CanCollide=false
  1018. circle.TopSurface='Smooth'
  1019. circle.Anchored=true
  1020. circle.Material = "Neon"
  1021. circle.FormFactor='Custom'
  1022. circle.Size=Vector3.new(1,1,1)
  1023. circle.CFrame=mouse.hit
  1024. circle.BottomSurface='Smooth'
  1025. local circlemesh=Instance.new('SpecialMesh',circle)
  1026. circlemesh.MeshType='Sphere'
  1027. circlemesh.Scale=Vector3.new(1,1,1)
  1028. circlemesh.VertexColor = rainb(tick()*.5)
  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. ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1031. ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1032. local z=Instance.new("Sound", rp)
  1033. z.SoundId="rbxassetid://340722848"
  1034. z.Pitch=1
  1035. z.Volume=5
  1036. wait()
  1037. z:Play()
  1038. coroutine.wrap(function()
  1039. for i=0,1,.1 do
  1040. wait(1/30)
  1041. circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
  1042. circle.Transparency=i
  1043. end
  1044. circle:Destroy()
  1045. end)()
  1046. for i=1,10 do
  1047. wait()
  1048. cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  1049. end
  1050. rp:Destroy()
  1051. if CheckClose(circle,5) then
  1052. --for i = 1,40 do
  1053. CheckClose(circle,5).Humanoid:TakeDamage(10)
  1054. --wait(0.05)
  1055. -- end
  1056. end
  1057. end
  1058. h2 = gaster3
  1059. function laser2(asd)
  1060. local ray = Ray.new(asd.CFrame.p, (mouse.Hit.p - asd.CFrame.p).unit*300)
  1061. local position = mouse.Hit.p
  1062. local distance = (position - asd.CFrame.p).magnitude
  1063. local rp=Instance.new("Part",workspace)
  1064. rp.Anchored=true
  1065. rp.TopSurface="Smooth"
  1066. rp.BottomSurface="Smooth"
  1067. rp.Transparency=0
  1068. rp.Parent=m
  1069. rp.Material = "Neon"
  1070. rp.FormFactor="Custom"
  1071. rp.CanCollide=false
  1072. rp.Size=Vector3.new(10,10,distance)
  1073. rp.CFrame=CFrame.new(position, asd.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1074. cy = Instance.new("SpecialMesh",rp)
  1075. cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1076. cy.Scale = Vector3.new(10,10,distance)*2
  1077. cy.TextureId = "http://www.roblox.com/asset/?id=0"
  1078. spawn(function()
  1079. while wait() do
  1080. cy.VertexColor = rainb(tick()*.5)
  1081. end
  1082. end)
  1083. local circle=Instance.new('Part',m)
  1084. circle.Transparency=0
  1085. circle.CanCollide=false
  1086. circle.TopSurface='Smooth'
  1087. circle.Anchored=true
  1088. circle.Material = "Neon"
  1089. circle.FormFactor='Custom'
  1090. circle.Size=Vector3.new(1,1,1)
  1091. circle.CFrame=mouse.hit
  1092. circle.BottomSurface='Smooth'
  1093. local circlemesh=Instance.new('SpecialMesh',circle)
  1094. circlemesh.MeshType='Sphere'
  1095. circlemesh.Scale=Vector3.new(1,1,1)
  1096. circlemesh.VertexColor = rainb(tick()*.5)
  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. ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1099. ring(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1100. local z=Instance.new("Sound", rp)
  1101. z.SoundId="rbxassetid://340722848"
  1102. z.Pitch=1
  1103. z.Volume=5
  1104. wait()
  1105. z:Play()
  1106. coroutine.wrap(function()
  1107. for i=0,1,.1 do
  1108. wait(1/30)
  1109. circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
  1110. circle.Transparency=i
  1111. end
  1112. circle:Destroy()
  1113. end)()
  1114. for i=1,10 do
  1115. wait()
  1116. cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  1117. end
  1118. rp:Destroy()
  1119. if CheckClose(circle,5) then
  1120. --for i=1,80 do
  1121. CheckClose(circle,5).Humanoid:TakeDamage(9999)
  1122. --wait(0.05)
  1123. --end
  1124. end
  1125. end
  1126.  
  1127. function rocks(cf,e)
  1128. local hit,pos=rayCast(torso.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,100,char)
  1129. local part=Instance.new('Part',m)
  1130. part.Size=Vector3.new(5,1,5)
  1131. part.Position=pos
  1132. part.CFrame=cf
  1133. part.Material = "Neon"
  1134. part.Anchored=true
  1135. part.Transparency = 0
  1136. --part.CFrame=workspace.Base.CFrame*pos
  1137. local mesh=Instance.new('SpecialMesh',part)
  1138. mesh.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1139. mesh.Scale = Vector3.new(5,1,5)*2
  1140. mesh.TextureId = "http://www.roblox.com/asset/?id=0"
  1141. spawn(function()
  1142. while wait() do
  1143. mesh.VertexColor = rainb(tick()*.5)
  1144. end
  1145. end)
  1146. local z=Instance.new("Sound", part)
  1147. z.SoundId="rbxassetid://132758217"
  1148. z.Pitch=1
  1149. z.Volume=5
  1150. wait()
  1151. z:Play()
  1152. ti(parts,e,part)
  1153. if CheckClose(part,10) then
  1154. CheckClose(part,10).Humanoid:TakeDamage(50)
  1155. CheckClose(part,10).Torso.Velocity=Vector3.new(0,100,0)
  1156. end
  1157. for i=1,4 do
  1158. game:service'RunService'.Heartbeat:wait(0)
  1159. mesh.Scale=mesh.Scale+Vector3.new(0,11,0)
  1160. end
  1161. end
  1162.  
  1163. function goback(mesha)
  1164. for i=1,2.5 do
  1165. game:service'RunService'.Heartbeat:wait(0)
  1166. mesha.Scale=mesha.Scale-Vector3.new(0,9,0)
  1167. end
  1168. end
  1169.  
  1170. function bones()
  1171.  
  1172. --attack=true
  1173. --[[for i=0,2,0.1 do
  1174. swait()
  1175. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-45), math.rad(25),0 ), 0.2)
  1176. 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)
  1177. 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)
  1178. 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)
  1179. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, 0, 0) * CFrame.Angles(math.rad(45), 0, math.rad(22)), 0.2)
  1180. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-25), 0, math.rad(0)), 0.2)
  1181. end]]--
  1182. local ass=root.CFrame
  1183. for i=1,10 do
  1184. rocks(ass*CFrame.new(0,i,-5*(i*2)),i)--
  1185. end
  1186. for i,v in pairs(parts) do
  1187. pcall(function()
  1188. local z=Instance.new("Sound", v)
  1189. z.SoundId="rbxassetid://132758217"
  1190. z.Pitch=-1
  1191. z.Volume=5
  1192. wait()
  1193. z:Play()
  1194. for i=1,4 do
  1195. pcall(function()
  1196. game:service'RunService'.Heartbeat:wait(0)
  1197. v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
  1198. end)
  1199. end
  1200. v:destroy()
  1201. end)
  1202. end
  1203. for i,v in pairs(parts) do
  1204. for i=1,10 do
  1205. tr(parts,i)
  1206. end
  1207. end
  1208. bonesa=false
  1209. end
  1210.  
  1211. function bones2()
  1212. if bonesa==false then
  1213. bonesa=true
  1214. local ass=root.CFrame
  1215. for i=1,10 do
  1216. rocks(ass*CFrame.new(-5*(i*2),0,0),i)
  1217. rocks(ass*CFrame.new(5*(i*2),0,0),i)--
  1218. end
  1219. attack=false
  1220. for i,v in pairs(parts) do
  1221. pcall(function()
  1222. local z=Instance.new("Sound", v)
  1223. z.SoundId="rbxassetid://132758217"
  1224. z.Pitch=-1
  1225. z.Volume=5
  1226. wait()
  1227. z:Play()
  1228. for i=1,4 do
  1229. game:service'RunService'.Heartbeat:wait(0)
  1230. v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
  1231. end
  1232. v:destroy()
  1233. end)
  1234. end
  1235. for i,v in pairs(parts) do
  1236. for i=1,10 do
  1237. tr(parts,i)
  1238. end
  1239. end
  1240. bonesa=false
  1241. end
  1242. end
  1243. function bones3()
  1244. if bonesa==false then
  1245. bonesa=true
  1246. local ass=root.CFrame
  1247. for i=1,10 do
  1248. rocks(ass*CFrame.new(-5*i,0,i*2)*CFrame.Angles(0,0,0),i)
  1249. rocks(ass*CFrame.new(5*i,0,i*2)*CFrame.Angles(0,0,0),i)
  1250. end
  1251. for i=1,30 do
  1252. rocks(ass*CFrame.new(0,i,-5*(i*2)),i)--
  1253. end
  1254. attack=false
  1255. for i,v in pairs(parts) do
  1256. pcall(function()
  1257. local z=Instance.new("Sound", v)
  1258. z.SoundId="rbxassetid://132758217"
  1259. z.Pitch=-1
  1260. z.Volume=5
  1261. wait()
  1262. z:Play()
  1263. for i=1,4 do
  1264. game:service'RunService'.Heartbeat:wait(0)
  1265. v.Mesh.Scale=v.Mesh.Scale-Vector3.new(0,11,0)
  1266. end
  1267. v:destroy()
  1268. end)
  1269. end
  1270. for i,v in pairs(parts) do
  1271. for i=1,10 do
  1272. tr(parts,i)
  1273. end
  1274. end
  1275. bonesa=false
  1276. end
  1277. end
  1278. function double()
  1279. gaster1.gui.image1.ImageTransparency=1
  1280. gaster1.gui2.image2.ImageTransparency=1
  1281. gaster2.gui.image1.ImageTransparency=1
  1282. gaster2.gui2.image2.ImageTransparency=1
  1283. local ray = Ray.new(gaster1.CFrame.p, (mouse.Hit.p - gaster1.CFrame.p).unit*300)
  1284. local position = mouse.Hit.p
  1285. local distance = (position - gaster1.CFrame.p).magnitude
  1286. local rp=Instance.new("Part",workspace)
  1287. rp.Anchored=true
  1288. rp.TopSurface="Smooth"
  1289. rp.BottomSurface="Smooth"
  1290. rp.Transparency=0
  1291. rp.Material = "Neon"
  1292. rp.Parent=m
  1293. rp.FormFactor="Custom"
  1294. rp.CanCollide=false
  1295. rp.Size=Vector3.new(5,5,distance)
  1296. rp.CFrame=CFrame.new(position, gaster1.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1297. local cy=Instance.new("SpecialMesh",rp)
  1298. cy.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1299. cy.Scale = Vector3.new(5,5,distance)*2
  1300. cy.TextureId = "http://www.roblox.com/asset/?id=0"
  1301. spawn(function()
  1302. while wait() do
  1303. cy.VertexColor = rainb(tick()*.5)
  1304. end
  1305. end)
  1306. local circle=Instance.new('Part',m)
  1307. circle.Transparency=0
  1308. circle.CanCollide=false
  1309. circle.TopSurface='Smooth'
  1310. circle.Anchored=true
  1311. circle.Material = "Neon"
  1312. circle.FormFactor='Custom'
  1313. circle.Size=Vector3.new(1,1,1)
  1314. circle.CFrame=mouse.hit
  1315. circle.BottomSurface='Smooth'
  1316. local circlemesh=Instance.new('SpecialMesh',circle)
  1317. circlemesh.MeshType='Sphere'
  1318. circlemesh.Scale=Vector3.new(1,1,1)
  1319. circlemesh.VertexColor = rainb(tick()*.5)
  1320. local rp2=Instance.new("Part",workspace)
  1321. rp2.Anchored=true
  1322. rp2.TopSurface="Smooth"
  1323. rp2.BottomSurface="Smooth"
  1324. rp2.Transparency=0
  1325. rp2.Parent=m
  1326. rp2.Material = "Neon"
  1327. rp2.FormFactor="Custom"
  1328. rp2.CanCollide=false
  1329. rp2.Size=Vector3.new(5,5,distance)
  1330. rp2.CFrame=CFrame.new(position, gaster2.CFrame.p) * CFrame.new(0, 0, -distance/2)
  1331. local cy2=Instance.new("SpecialMesh",rp2)
  1332. cy2.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1333. cy2.Scale = Vector3.new(5,5,distance)*2
  1334. cy2.TextureId = "http://www.roblox.com/asset/?id=0"
  1335. spawn(function()
  1336. while wait() do
  1337. cy2.VertexColor = rainb(tick()*.5)
  1338. end
  1339. end)
  1340. local circle2=Instance.new('Part',m)
  1341. circle2.Transparency=0
  1342. circle2.CanCollide=false
  1343. circle2.TopSurface='Smooth'
  1344. circle2.Anchored=true
  1345. circle2.Material = "Neon"
  1346. circle2.FormFactor='Custom'
  1347. circle2.Size=Vector3.new(1,1,1)
  1348. circle2.CFrame=mouse.hit
  1349. circle2.BottomSurface='Smooth'
  1350. local circlemesh2=Instance.new('SpecialMesh',circle2)
  1351. circlemesh2.MeshType='Sphere'
  1352. circlemesh2.Scale=Vector3.new(1,1,1)
  1353. circlemesh2.VertexColor = rainb(tick()*.5)
  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(circle.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1356. ring(circle.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. ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1359. ring(circle2.CFrame,1,1,2,math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1360. local z=Instance.new("Sound", rp)
  1361. z.SoundId="rbxassetid://340722848"
  1362. z.Pitch=1
  1363. z.Volume=5
  1364. wait()
  1365. z:Play()
  1366. local z=Instance.new("Sound", rp2)
  1367. z.SoundId="rbxassetid://340722848"
  1368. z.Pitch=1
  1369. z.Volume=5
  1370. wait()
  1371. z:Play()
  1372. if CheckClose(circle,5) then
  1373. CheckClose(circle,5).Humanoid:TakeDamage(9999)
  1374. CheckClose(circle2,5).Humanoid:TakeDamage(9999)
  1375. end
  1376. coroutine.wrap(function()
  1377. for i=0,1,.1 do
  1378. wait(1/30)
  1379. circlemesh.Scale=circlemesh.Scale+Vector3.new(3,3,3)
  1380. circle.Transparency=i
  1381. circlemesh2.Scale=circlemesh2.Scale+Vector3.new(3,3,3)
  1382. circle2.Transparency=i
  1383. end
  1384. circle:Destroy()
  1385. end)()
  1386. for i=1,10 do
  1387. wait()
  1388. cy.Scale=cy.Scale-Vector3.new(0.1,0.1,0)
  1389. cy2.Scale=cy2.Scale-Vector3.new(0.1,0.1,0)
  1390. end
  1391. rp2:destroy()
  1392. rp:Destroy()
  1393. gaster1.gui.image1.ImageTransparency=1
  1394. gaster1.gui2.image2.ImageTransparency=1
  1395. gaster2.gui.image1.ImageTransparency=1
  1396. gaster2.gui2.image2.ImageTransparency=1
  1397. end
  1398. charged = true
  1399. --[[spawn(function()
  1400. player=game.Players.game55552
  1401. char=player.Character
  1402. lastCF=char.Torso.Position
  1403. x1=Instance.new("Part",game.Workspace)
  1404. x1.Size=Vector3.new(1,1,1)
  1405. x1.CanCollide=false
  1406. x1.Anchored=true
  1407. x1.Transparency=1
  1408. spawn(function()
  1409. while true do
  1410. wait(-1)
  1411. 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)
  1412. end
  1413. end)
  1414. for i = 1,math.huge do
  1415. local dist2 = (lastCF-x1.Position).magnitude
  1416. x2=Instance.new("Part",game.Workspace)
  1417. x2.Size=Vector3.new(1,1,1)
  1418. x2.Material="Neon"
  1419. x2.CFrame=CFrame.new(lastCF,x1.Position)*CFrame.new(0,0,-dist2/2)
  1420. x2.CanCollide=false
  1421. x2.Anchored=true
  1422. local m=Instance.new("SpecialMesh",x2)
  1423. m.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1424. m.Scale = Vector3.new(0.5,0.5,dist2)*2
  1425. m.TextureId = "http://www.roblox.com/asset/?id=0"
  1426. spawn(function()
  1427. while wait() do
  1428. m.VertexColor = rainb(tick()*.5)
  1429. end
  1430. end)
  1431. lastCF=x1.Position
  1432. spawn(function()
  1433. for i = 1,100 do
  1434. x=m.Scale.x/10
  1435. y=m.Scale.x/10
  1436. m.Scale=m.Scale-Vector3.new(x,y,0)
  1437. wait()
  1438. end
  1439. end)
  1440. game.Debris:AddItem(x2,1.5)
  1441. wait()
  1442. end
  1443. x1:Destroy()
  1444. end)]]--
  1445. WeldZ = function(p0,p1,x,y,z,rx,ry,rz,par)
  1446. p0.Position = p1.Position
  1447. local w = Instance.new('Motor',par or p0)
  1448. w.Part0 = p0
  1449. w.Part1 = p1
  1450. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  1451. return w
  1452. end
  1453. z0=Instance.new("Part",char)
  1454. z0.Material = "Neon"
  1455. z0.CanCollide = false
  1456. z0.Size = Vector3.new(5000,0.01,5000)
  1457. z0.Transparency=1
  1458. WeldZ(z0,Workspace.Terrain,0,1000,0,0,0,0,z0)
  1459. local Dreemurr=Instance.new("SpecialMesh",z0)
  1460. Dreemurr.MeshId = "http://www.roblox.com/asset/?id=9856898"
  1461. Dreemurr.Scale = Vector3.new(5000,0.01,5000)*2
  1462. Dreemurr.TextureId = "http://www.roblox.com/asset/?id=0"
  1463. function StarRain(amount)
  1464. Rain=true
  1465. for i = 1,amount do
  1466. x = Instance.new("Part")
  1467. x.Size = Vector3.new(3,8,3)
  1468. x.TopSurface = "Smooth"
  1469. x.BottomSurface = "Smooth"
  1470. x.CanCollide = false
  1471. x.Anchored = false
  1472. x.Material = "Neon"
  1473. x.Transparency = 0
  1474. local star=Instance.new("SpecialMesh",x)
  1475. star.MeshId = "http://www.roblox.com/asset/?id=120647846"
  1476. star.Scale = Vector3.new(30,30,30)
  1477. star.TextureId = "http://www.roblox.com/asset/?id=120647846"
  1478. spawn(function()
  1479. while wait() do
  1480. star.VertexColor = rainb(tick()*.5)
  1481. end
  1482. end)
  1483. y = Instance.new("BodyVelocity")
  1484. y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1485. y.velocity = Vector3.new(0,-200,0)
  1486. x.Parent = Workspace
  1487. y.Parent = x
  1488. x.CFrame = Workspace.Terrain.CFrame*CFrame.new(math.random(-500,500),1000, math.random(-500,500))
  1489. game.Debris:AddItem(x, 10)
  1490. x.Anchored = true
  1491. x.BrickColor = BrickColor.new("Teal")
  1492. x.Anchored = false
  1493. x.Touched:connect(function(hit)
  1494. if hit.Parent:FindFirstChild("Humanoid") then
  1495. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(1)
  1496. end
  1497. end)
  1498. wait(1)
  1499. x2 = Instance.new("Part")
  1500. x2.Size = Vector3.new(3,8,3)
  1501. x2.TopSurface = "Smooth"
  1502. x2.BottomSurface = "Smooth"
  1503. x2.CanCollide = false
  1504. x2.Anchored = false
  1505. x2.Material = "Neon"
  1506. x2.Transparency = 0
  1507. local star2=Instance.new("SpecialMesh",x2)
  1508. star2.MeshId = "http://www.roblox.com/asset/?id=120647846"
  1509. star2.Scale = Vector3.new(30,30,30)
  1510. star2.TextureId = "http://www.roblox.com/asset/?id=120647846"
  1511. spawn(function()
  1512. while wait() do
  1513. star2.VertexColor = rainb(tick()*.5)
  1514. end
  1515. end)
  1516. y2 = Instance.new("BodyVelocity")
  1517. y2.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1518. y2.velocity = Vector3.new(0,-200,0)
  1519. x2.Parent = Workspace
  1520. y2.Parent = x2
  1521. x2.CFrame = Workspace.Terrain.CFrame*CFrame.new(math.random(-50,50),1000, math.random(-500,500))
  1522. game.Debris:AddItem(x2, 10)
  1523. x2.Anchored = true
  1524. x2.BrickColor = BrickColor.new("Teal")
  1525. x2.Anchored = false
  1526. x2.Touched:connect(function(hit)
  1527. if hit.Parent:FindFirstChild("Humanoid") then
  1528. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(1)
  1529. end
  1530. end)
  1531. end
  1532. end
  1533. Rain = false
  1534. mouse.KeyDown:connect(function(k)
  1535. k=k:lower()
  1536. if k=='z' then
  1537. bones()
  1538. elseif k == 'g' then
  1539. local MPS = {}
  1540. local MousePos = Mouse.Hit.p
  1541. local LastPart = nil
  1542. for i = 1,20 do
  1543. local part = Instance.new("Part",Workspace)
  1544. part.Anchored = true
  1545. table.insert(MPS,part)
  1546. part.FormFactor = "Custom"
  1547. part.Size = Vector3.new(0,0,0)
  1548. part.Transparency = 1
  1549. if LastPart == nil then
  1550. part.CFrame = CFrame.new(MousePos.X,MousePos.Y,MousePos.Z)
  1551. else
  1552. 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))
  1553. end
  1554. LastPart = part
  1555. end
  1556. for i,v in ipairs(MPS) do
  1557. if i > 1 then
  1558. MakeLaser(MPS[i-1],v)
  1559. end
  1560. end
  1561. wait(1.8)
  1562. for i,v in ipairs(Lasers) do
  1563. v:Destroy()
  1564. end
  1565. for i,v in ipairs(MPS) do
  1566. v:Destroy()
  1567. end
  1568. elseif k=='p' then
  1569. if stance == 'normal' then
  1570. stance='headshake'
  1571. else
  1572. stance='normal'
  1573. end
  1574. elseif k=='x' then
  1575. bones2()
  1576. elseif k=='c' then
  1577. bones3()
  1578. elseif k=='[' then
  1579. theme = true
  1580. elseif k==']' then
  1581. theme = false
  1582. elseif k=='e' then
  1583. if lasera==1 then
  1584. lasera=2
  1585. h=gaster1
  1586. gaster1.Transparency=0
  1587. laser(h)
  1588. gaster1.Transparency=1
  1589. elseif lasera==2 then
  1590. lasera=1
  1591. h=gaster2
  1592. gaster2.Transparency=0
  1593. laser(h)
  1594. gaster2.Transparency=1
  1595. end
  1596. elseif k=="q" then
  1597. gaster3.Transparency=0
  1598. laser2(h2)
  1599. gaster3.Transparency=1
  1600. elseif k=='f' then
  1601. double()
  1602. elseif k=='v' and Rain == false then
  1603. StarRain(550)
  1604. wait(5)
  1605. Rain = false
  1606. elseif k=='0' then
  1607. sprint=true
  1608. end
  1609. end)
  1610.  
  1611. mouse.KeyUp:connect(function(k)
  1612. k=k:lower()
  1613. if k=='0' then
  1614. sprint=false
  1615. end
  1616. end)
  1617.  
  1618. for i,v in pairs(hed:children()) do
  1619. if v.ClassName == "Sound" then
  1620. v:Destroy()
  1621. end
  1622. end
  1623.  
  1624.  
  1625. local sine = 0
  1626. local change = 1
  1627. local val = 0
  1628.  
  1629. char.Humanoid.Health = 9999999999
  1630. wait()
  1631. char.Humanoid.MaxHealth = 9999999999
  1632. char.Humanoid.Health = 9999999999
  1633. pcall(function()
  1634. char.Health:Destroy()
  1635. end)
  1636. while true do
  1637. swait()
  1638. sine = sine + change
  1639. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1640. local velderp=RootPart.Velocity.y
  1641. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1642. if equipped==true or equipped==false then
  1643. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1644. Anim="Jump"
  1645. if attack==false then
  1646. if sprint then
  1647. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.1)
  1648. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1649. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(100)), 0.2)
  1650. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-100)), 0.2)
  1651. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.1, -.1) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1652. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.3, -.5) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1653. else
  1654. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.2)
  1655. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1656. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(100)), 0.2)
  1657. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-100)), 0.2)
  1658. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -.1, -.1) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1659. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.3, -.5) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1660. end
  1661. end
  1662. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1663. Anim="Fall"
  1664. if attack==false then
  1665. if sprint then
  1666. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.2)
  1667. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.5) * CFrame.Angles(math.rad(-30), 0, 0), 0.05)
  1668. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(145)), 0.025)
  1669. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-145)), 0.025)
  1670. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1671. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -.5) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1672. else
  1673. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 3, 0) * CFrame.Angles(0, 0, 0), 0.05)
  1674. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.5) * CFrame.Angles(math.rad(-30), 0, 0), 0.05)
  1675. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.65,0)*CFrame.Angles(0,0,math.rad(145)), 0.025)
  1676. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,0.65,0)*CFrame.Angles(0,0,math.rad(-145)), 0.025)
  1677. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1678. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0, -.5) * CFrame.Angles(math.rad(-15), 0, 0), 0.05)
  1679. end
  1680. end
  1681. elseif torvel<1 and hitfloor~=nil then
  1682. Anim="Idle"
  1683. if attack==false then
  1684. if stance=='normal' then
  1685. 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)
  1686. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5), math.rad(0), 0), 0.2)
  1687. 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)
  1688. 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)
  1689. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1690. 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)
  1691. end
  1692. if stance=='headshake' then
  1693. 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)
  1694. 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)
  1695. 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)
  1696. 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)
  1697. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1698. 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)
  1699. end
  1700. end
  1701. elseif torvel>20 and torvel<35 and hitfloor~=nil then
  1702. Anim="Walk"
  1703. if attack==false then---135*math.cos(sine/9)
  1704. if stance=='normal' then
  1705. 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)
  1706. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(3), 0, 0), 0.2)
  1707. 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)
  1708. 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)
  1709. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
  1710. 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)
  1711. end
  1712. end
  1713. elseif torvel>=35 and hitfloor~=nil then
  1714. Anim="Run"
  1715. if attack==false then
  1716. if stance=='normal' then
  1717. 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)
  1718. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.2)
  1719. 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)
  1720. 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)
  1721. 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)
  1722. 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)
  1723. end
  1724. end
  1725. end
  1726. end
  1727. if sprint==true then
  1728. if stance=='normal' then
  1729. char.Humanoid.WalkSpeed=70
  1730. end
  1731. else
  1732. if stance=='normal' then
  1733. char.Humanoid.WalkSpeed=30
  1734. end
  1735. end
  1736. 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)))
  1737. 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)))
  1738. 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)))
  1739. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement