Tensa Zangetsu


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 12:31 p.m.

FORMAT: Lua

SIZE: 73.3 kB

HITS: 1099

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

comments powered by Disqus