Advertisement
Blueisim

god of hyperdeath

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