Advertisement
Upscalefanatic3

Asriel

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