Advertisement
SyntaxIsHere

Untitled

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