Advertisement
ItzInfern

i dont know

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