Advertisement
soubrhomi

scp

Oct 5th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.78 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --[[SCP-178 by SezHu.
  88.  
  89. If you want a creation like this of your own, shoot me a friend request me on Discord! (Sezzie
  90. #1875) Prices start at 350 robux.]]--
  91.  
  92. wait(1 / 60)
  93. local sfx = {
  94. 619083295,
  95. }
  96.  
  97.  
  98. Effects = { }
  99. local Player = owner
  100. local Character = Player.Character
  101. local Humanoid = Character.Humanoid
  102. local Head = Character.Head
  103. local RootPart = Character.HumanoidRootPart
  104. local Torso = Character.Torso
  105. local LeftArm = Character["Left Arm"]
  106. local RightArm = Character["Right Arm"]
  107. local LeftLeg = Character["Left Leg"]
  108. local RightLeg = Character["Right Leg"]
  109. local Camera = game.Workspace.CurrentCamera
  110. local RootJoint = RootPart.RootJoint
  111. local Equipped = false
  112. local Attack = false
  113. local Anim = 'Idle'
  114. local Idle = 0
  115. local Combo = 1
  116. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  117. local Velocity = RootPart.Velocity.y
  118. local Sine = 0
  119. local Change = 1
  120.  
  121. local RbxUtility = LoadLibrary("RbxUtility")
  122. local Create = RbxUtility.Create
  123.  
  124. Humanoid.WalkSpeed = 10
  125. Humanoid.JumpPower = 50
  126. Humanoid.Animator.Parent = nil
  127. Character.Animate.Parent = nil
  128.  
  129. local newMotor = function(part0, part1, c0, c1)
  130. local w = Create('Motor'){
  131. Parent = part0,
  132. Part0 = part0,
  133. Part1 = part1,
  134. C0 = c0,
  135. C1 = c1,
  136. }
  137. return w
  138. end
  139.  
  140.  
  141.  
  142. function clerp(a, b, t)
  143. return a:lerp(b, t)
  144. end
  145.  
  146. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  147. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  148.  
  149. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  150. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  151. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  152. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  153. RootJoint.C1 = CFrame.new(0, 0, 0)
  154. RootJoint.C0 = CFrame.new(0, 0, 0)
  155. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  156. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  157.  
  158. local rarmc1 = RW.C1
  159. local larmc1 = LW.C1
  160. local rlegc1 = RH.C1
  161. local llegc1 = LH.C1
  162.  
  163. local resetc1 = false
  164.  
  165. function PlayAnimationFromTable(table, speed, bool)
  166. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  167. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  168. RW.C0 = clerp(RW.C0, table[3], speed)
  169. LW.C0 = clerp(LW.C0, table[4], speed)
  170. RH.C0 = clerp(RH.C0, table[5], speed)
  171. LH.C0 = clerp(LH.C0, table[6], speed)
  172. if bool == true then
  173. if resetc1 == false then
  174. resetc1 = true
  175. RootJoint.C1 = RootJoint.C1
  176. Torso.Neck.C1 = Torso.Neck.C1
  177. RW.C1 = rarmc1
  178. LW.C1 = larmc1
  179. RH.C1 = rlegc1
  180. LH.C1 = llegc1
  181. end
  182. end
  183. end
  184.  
  185. ArtificialHB = Create("BindableEvent"){
  186. Parent = script,
  187. Name = "Heartbeat",
  188. }
  189.  
  190. script:WaitForChild("Heartbeat")
  191.  
  192. frame = 1 / 30
  193. tf = 0
  194. allowframeloss = false
  195. tossremainder = false
  196. lastframe = tick()
  197. script.Heartbeat:Fire()
  198.  
  199.  
  200. spawn(function()
  201. while true do
  202. if Anim == "Walk" then
  203. CFuncs.Sound.Create(sfx[math.random(#sfx)], Head, .5, 1)
  204. end
  205. wait(.6)
  206. end
  207. end)
  208.  
  209.  
  210.  
  211. local function soundbork(obj)
  212. if obj:IsA("Sound") and obj.Name ~= "important" then
  213. obj.Volume = 0
  214. return
  215. end
  216.  
  217.  
  218. local children = obj:GetChildren()
  219. for i = 1, #children do
  220. soundbork(children[i])
  221. end
  222.  
  223. return
  224. end
  225.  
  226. game:GetService("RunService").Heartbeat:connect(function(s, p)
  227. tf = tf + s
  228. if tf >= frame then
  229. if allowframeloss then
  230. script.Heartbeat:Fire()
  231. lastframe = tick()
  232. else
  233. for i = 1, math.floor(tf / frame) do
  234. script.Heartbeat:Fire()
  235. end
  236. lastframe = tick()
  237. end
  238. if tossremainder then
  239. tf = 0
  240. else
  241. tf = tf - frame * math.floor(tf / frame)
  242. end
  243. end
  244. end)
  245.  
  246. function swait(num)
  247. if num == 0 or num == nil then
  248. ArtificialHB.Event:wait()
  249. else
  250. for i = 0, num do
  251. ArtificialHB.Event:wait()
  252. end
  253. end
  254. end
  255.  
  256. local m = Create("Model"){
  257. Parent = Character,
  258. Name = "WeaponModel"
  259. }
  260.  
  261. function RemoveOutlines(part)
  262. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  263. end
  264.  
  265. CFuncs = {
  266. Part = {
  267. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  268. local Part = Create("Part"){
  269. Parent = Parent,
  270. Reflectance = Reflectance,
  271. Transparency = Transparency,
  272. CanCollide = false,
  273. Locked = true,
  274. BrickColor = BrickColor.new(tostring(BColor)),
  275. Name = Name,
  276. Size = Size,
  277. Material = Material,
  278. }
  279. RemoveOutlines(Part)
  280. if Size == Vector3.new() then
  281. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  282. else
  283. Part.Size = Size
  284. end
  285. return Part
  286. end;
  287. };
  288.  
  289. Mesh = {
  290. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  291. local Msh = Create(Mesh){
  292. Parent = Part,
  293. Offset = OffSet,
  294. Scale = Scale,
  295. }
  296. if Mesh == "SpecialMesh" then
  297. Msh.MeshType = MeshType
  298. Msh.MeshId = MeshId
  299. end
  300. return Msh
  301. end;
  302. };
  303.  
  304. Weld = {
  305. Create = function(Parent, Part0, Part1, C0, C1)
  306. local Weld = Create("Weld"){
  307. Parent = Parent,
  308. Part0 = Part0,
  309. Part1 = Part1,
  310. C0 = C0,
  311. C1 = C1,
  312. }
  313. return Weld
  314. end;
  315. };
  316.  
  317. Sound = {
  318. Create = function(id, par, vol, pit)
  319. coroutine.resume(coroutine.create(function()
  320. local S = Create("Sound"){
  321. Volume = vol,
  322. Pitch = pit or 1,
  323. SoundId = "rbxassetid://" .. id,
  324. Parent = par or workspace,
  325. Name = "important"
  326. }
  327. wait()
  328. S:play()
  329. game:GetService("Debris"):AddItem(S, 10)
  330. end))
  331. end;
  332. };
  333.  
  334. Sound2 = {
  335. Create = function(id, par, vol, pit)
  336. coroutine.resume(coroutine.create(function()
  337. local S = Create("Sound"){
  338. Volume = vol,
  339. Pitch = pit or 1,
  340. SoundId = "rbxassetid://" .. id,
  341. Parent = par or workspace,
  342. Name = "important",
  343. Looped = true
  344. }
  345. wait()
  346. S:play()
  347. game:GetService("Debris"):AddItem(S, 10)
  348. end))
  349. end;
  350. };
  351.  
  352. ParticleEmitter = {
  353. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  354. local Particle = Create("ParticleEmitter"){
  355. Parent = Parent,
  356. Color = ColorSequence.new(Color1, Color2),
  357. LightEmission = LightEmission,
  358. Size = Size,
  359. Texture = Texture,
  360. Transparency = Transparency,
  361. ZOffset = ZOffset,
  362. Acceleration = Accel,
  363. Drag = Drag,
  364. LockedToPart = LockedToPart,
  365. VelocityInheritance = VelocityInheritance,
  366. EmissionDirection = EmissionDirection,
  367. Enabled = Enabled,
  368. Lifetime = LifeTime,
  369. Rate = Rate,
  370. Rotation = Rotation,
  371. RotSpeed = RotSpeed,
  372. Speed = Speed,
  373. VelocitySpread = VelocitySpread,
  374. }
  375. return Particle
  376. end;
  377. };
  378.  
  379. CreateTemplate = {
  380.  
  381. };
  382. }
  383.  
  384.  
  385.  
  386. function RayCast(Position, Direction, Range, Ignore)
  387. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  388. end
  389.  
  390. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Handle",Vector3.new(0.779999912, 0.780000091, 0.750000238))
  391. HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.33985698, 0.205783844, -0.0249519944, 0, -1, 0, -1, 0, 0, 0, 0, -1))
  392.  
  393. FHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Handle",Vector3.new(0.779999912, 0.780000091, 0.750000238))
  394. FHandleWeld=CFuncs.Weld.Create(m,FHandle,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.33985698, 0.205783844, -0.0249519944, 0, -1, 0, -1, 0, 0, 0, 0, -1))
  395.  
  396. Glasses=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Institutional white","Glasses",Vector3.new(1.04999995, 1, 1))
  397. GlassesWeld=CFuncs.Weld.Create(m,FHandle,Glasses,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.019271493, -0.20810318, 0.170232952, -1, -6.50000002e-05, 0, -6.50000002e-05, 1, 0, 0, 0, -1))
  398. gl00ses=CFuncs.Mesh.Create("SpecialMesh",Glasses,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=22053998",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999))
  399. gl00ses.TextureId = "http://www.roblox.com/asset/?id=38205002"
  400.  
  401.  
  402. FauxHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","FauxHandle",Vector3.new(0.779999912, 0.780000091, 0.750000238))
  403. FauxHandleWeld=CFuncs.Weld.Create(workspace.CurrentCamera,Character["Head"],FauxHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00429534912, -0.0208046436, -0.0191295743, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  404. FauxGlasses=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Institutional white","FauxGlasses",Vector3.new(1.04999995, 1, 1))
  405. FauxGlassesWeld=CFuncs.Weld.Create(m,FauxHandle,FauxGlasses,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00775146484, -0.208105445, 0.170232952, -1, -6.50000002e-05, 0, -6.50000002e-05, 1, 0, 0, 0, -1))
  406. gl00ses2=CFuncs.Mesh.Create("SpecialMesh",FauxGlasses,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=22053998",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999))
  407. gl00ses2.TextureId = "http://www.roblox.com/asset/?id=38205002"
  408.  
  409. --Converted with ttyyuu12345's model to script plugin v4
  410. function sandbox(var,func)
  411. local env = getfenv(func)
  412. local newenv = setmetatable({},{
  413. __index = function(self,k)
  414. if k=="script" then
  415. return var
  416. else
  417. return env[k]
  418. end
  419. end,
  420. })
  421. setfenv(func,newenv)
  422. return func
  423. end
  424. cors = {}
  425. mas = Instance.new("Model",Camera)
  426. Model0 = Instance.new("Model")
  427. Part1 = Instance.new("Part")
  428. Part2 = Instance.new("Part")
  429. Part3 = Instance.new("Part")
  430. Part4 = Instance.new("Part")
  431. Part5 = Instance.new("Part")
  432. Part6 = Instance.new("Part")
  433. Part7 = Instance.new("Part")
  434. Model0.Name = "Netherworld"
  435. Model0.Parent = mas
  436. Part1.Name = "Spart"
  437. Part1.Parent = Camera
  438. Part1.Material = Enum.Material.Neon
  439. Part1.Transparency = 1
  440. Part1.Anchored = true
  441. Part1.CanCollide = false
  442. Part1.Size = Vector3.new(4, 1, 2)
  443. Part1.CFrame = CFrame.new(144.5, 1290.63574, 2.74698257, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  444. Part1.BottomSurface = Enum.SurfaceType.Smooth
  445. Part1.TopSurface = Enum.SurfaceType.Smooth
  446. Part1.Position = Vector3.new(144.5, 1290.63574, 2.74698257)
  447. Part2.Parent = Camera
  448. Part2.Material = Enum.Material.Neon
  449. Part2.BrickColor = BrickColor.new("Really black")
  450. Part2.Transparency = 0.0099999997764826
  451. Part2.Anchored = true
  452. Part2.Size = Vector3.new(233.790359, 1.15406489, 245.924103)
  453. Part2.CFrame = CFrame.new(130.757782, 1311.9447, 21.3496704, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  454. Part2.BottomSurface = Enum.SurfaceType.Smooth
  455. Part2.TopSurface = Enum.SurfaceType.Smooth
  456. Part2.Position = Vector3.new(130.757782, 1311.9447, 21.3496704)
  457. Part3.Parent = Camera
  458. Part3.Material = Enum.Material.Neon
  459. Part3.BrickColor = BrickColor.new("Really black")
  460. Part3.Transparency = 0.0099999997764826
  461. Part3.Rotation = Vector3.new(90, 90, 0)
  462. Part3.Anchored = true
  463. Part3.Size = Vector3.new(233.790359, 1.15406489, 233.317429)
  464. Part3.CFrame = CFrame.new(131.542297, 1193.58923, -99.4936905, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  465. Part3.BottomSurface = Enum.SurfaceType.Smooth
  466. Part3.TopSurface = Enum.SurfaceType.Smooth
  467. Part3.Position = Vector3.new(131.542297, 1193.58923, -99.4936905)
  468. Part3.Orientation = Vector3.new(0, 90, 90)
  469. Part4.Parent = Camera
  470. Part4.Material = Enum.Material.Neon
  471. Part4.BrickColor = BrickColor.new("Really black")
  472. Part4.Transparency = 0.0099999997764826
  473. Part4.Rotation = Vector3.new(0, 0, 90)
  474. Part4.Anchored = true
  475. Part4.Size = Vector3.new(232.420349, 1.15406489, 242.134125)
  476. Part4.CFrame = CFrame.new(246.358215, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  477. Part4.BottomSurface = Enum.SurfaceType.Smooth
  478. Part4.TopSurface = Enum.SurfaceType.Smooth
  479. Part4.Position = Vector3.new(246.358215, 1194.35278, 22.2144928)
  480. Part4.Orientation = Vector3.new(0, 0, 90)
  481. Part5.Parent = Camera
  482. Part5.Material = Enum.Material.Neon
  483. Part5.BrickColor = BrickColor.new("Really black")
  484. Part5.Transparency = 0.0099999997764826
  485. Part5.Rotation = Vector3.new(90, 90, 0)
  486. Part5.Anchored = true
  487. Part5.Size = Vector3.new(233.790359, 1.15406489, 233.317429)
  488. Part5.CFrame = CFrame.new(131.542297, 1193.58923, 143.942886, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  489. Part5.BottomSurface = Enum.SurfaceType.Smooth
  490. Part5.TopSurface = Enum.SurfaceType.Smooth
  491. Part5.Position = Vector3.new(131.542297, 1193.58923, 143.942886)
  492. Part5.Orientation = Vector3.new(0, 90, 90)
  493. Part6.Parent = Camera
  494. Part6.Material = Enum.Material.Neon
  495. Part6.BrickColor = BrickColor.new("Really black")
  496. Part6.Transparency = 0.0099999997764826
  497. Part6.Rotation = Vector3.new(0, 0, 90)
  498. Part6.Anchored = true
  499. Part6.Size = Vector3.new(232.420349, 1.15406489, 242.134125)
  500. Part6.CFrame = CFrame.new(18, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  501. Part6.BottomSurface = Enum.SurfaceType.Smooth
  502. Part6.TopSurface = Enum.SurfaceType.Smooth
  503. Part6.Orientation = Vector3.new(0, 0, 90)
  504. Part7.Parent = Camera
  505. Part7.Material = Enum.Material.Neon
  506. Part7.BrickColor = BrickColor.new("Really black")
  507. Part7.Transparency = 0.0099999997764826
  508. Part7.Anchored = true
  509. Part7.Size = Vector3.new(233.790359, 1.15406489, 244.754089)
  510. Part7.CFrame = CFrame.new(130.757782, 1077.43396, 20.7646637, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  511. Part7.BottomSurface = Enum.SurfaceType.Smooth
  512. Part7.TopSurface = Enum.SurfaceType.Smooth
  513. Part7.Position = Vector3.new(130.757782, 1077.43396, 20.7646637)
  514. for i,v in pairs(mas:GetChildren()) do
  515. v.Parent = workspace
  516. pcall(function() v:MakeJoints() end)
  517. end
  518. mas:Destroy()
  519. for i,v in pairs(cors) do
  520. spawn(function()
  521. pcall(v)
  522. end)
  523. end
  524.  
  525. local houseBackup = mas:Clone()
  526.  
  527.  
  528.  
  529.  
  530.  
  531. FindNearestTorso = function(pos)
  532. local list = (game.Workspace:children())
  533. local torso = nil
  534. local dist = 1000
  535. local temp, human, temp2 = nil, nil, nil
  536. for x = 1, #list do
  537. temp2 = list[x]
  538. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  539. temp = temp2:findFirstChild("Torso")
  540. human = temp2:findFirstChild("Humanoid")
  541. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  542. local dohit = true
  543. if dohit == true then
  544. torso = temp
  545. dist = (temp.Position - pos).magnitude
  546. end
  547. end
  548. end
  549. end
  550. return torso, dist
  551. end
  552.  
  553. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  554. if hit.Parent == nil then
  555. return
  556. end
  557. local h = hit.Parent:FindFirstChild("Humanoid")
  558. for _, v in pairs(hit.Parent:children()) do
  559. if v:IsA("Humanoid") then
  560. h = v
  561. end
  562. end
  563. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  564. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  565. if hit.Parent.DebounceHit.Value == true then
  566. return
  567. end
  568. end
  569. local c = Create("ObjectValue"){
  570. Name = "creator",
  571. Value = owner,
  572. Parent = h,
  573. }
  574. game:GetService("Debris"):AddItem(c, .5)
  575. if HitSound ~= nil and HitPitch ~= nil then
  576. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  577. end
  578. local Damage = math.random(minim, maxim)
  579. local blocked = false
  580. local block = hit.Parent:findFirstChild("Block")
  581. if block ~= nil then
  582. if block.className == "IntValue" then
  583. if block.Value > 0 then
  584. blocked = true
  585. block.Value = block.Value - 1
  586. print(block.Value)
  587. end
  588. end
  589. end
  590. if blocked == false then
  591. h.Health = h.Health - Damage
  592. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  593. else
  594. h.Health = h.Health - (Damage / 2)
  595. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  596. end
  597. if Type == "Knockdown" then
  598. local hum = hit.Parent.Humanoid
  599. hum.PlatformStand = true
  600. coroutine.resume(coroutine.create(function(HHumanoid)
  601. swait(1)
  602. HHumanoid.PlatformStand = false
  603. end), hum)
  604. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  605. local bodvol = Create("BodyVelocity"){
  606. velocity = angle * knockback,
  607. P = 5000,
  608. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  609. Parent = hit,
  610. }
  611. local rl = Create("BodyAngularVelocity"){
  612. P = 3000,
  613. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  614. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  615. Parent = hit,
  616. }
  617. game:GetService("Debris"):AddItem(bodvol, .5)
  618. game:GetService("Debris"):AddItem(rl, .5)
  619. elseif Type == "Normal" then
  620. local vp = Create("BodyVelocity"){
  621. P = 500,
  622. maxForce = Vector3.new(math.huge, 0, math.huge),
  623. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  624. }
  625. if knockback > 0 then
  626. vp.Parent = hit.Parent.Torso
  627. end
  628. game:GetService("Debris"):AddItem(vp, .5)
  629. elseif Type == "Up" then
  630. local bodyVelocity = Create("BodyVelocity"){
  631. velocity = Vector3.new(0, 20, 0),
  632. P = 5000,
  633. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  634. Parent = hit,
  635. }
  636. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  637. elseif Type == "DarkUp" then
  638. coroutine.resume(coroutine.create(function()
  639. for i = 0, 1, 0.1 do
  640. swait()
  641. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  642. end
  643. end))
  644. local bodyVelocity = Create("BodyVelocity"){
  645. velocity = Vector3.new(0, 20, 0),
  646. P = 5000,
  647. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  648. Parent = hit,
  649. }
  650. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  651. elseif Type == "Snare" then
  652. local bp = Create("BodyPosition"){
  653. P = 2000,
  654. D = 100,
  655. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  656. position = hit.Parent.Torso.Position,
  657. Parent = hit.Parent.Torso,
  658. }
  659. game:GetService("Debris"):AddItem(bp, 1)
  660. elseif Type == "Freeze" then
  661. local BodPos = Create("BodyPosition"){
  662. P = 50000,
  663. D = 1000,
  664. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  665. position = hit.Parent.Torso.Position,
  666. Parent = hit.Parent.Torso,
  667. }
  668. local BodGy = Create("BodyGyro") {
  669. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  670. P = 20e+003,
  671. Parent = hit.Parent.Torso,
  672. cf = hit.Parent.Torso.CFrame,
  673. }
  674. hit.Parent.Torso.Anchored = true
  675. coroutine.resume(coroutine.create(function(Part)
  676. swait(1.5)
  677. Part.Anchored = false
  678. end), hit.Parent.Torso)
  679. game:GetService("Debris"):AddItem(BodPos, 3)
  680. game:GetService("Debris"):AddItem(BodGy, 3)
  681. end
  682. local debounce = Create("BoolValue"){
  683. Name = "DebounceHit",
  684. Parent = hit.Parent,
  685. Value = true,
  686. }
  687. game:GetService("Debris"):AddItem(debounce, Delay)
  688. c = Create("ObjectValue"){
  689. Name = "creator",
  690. Value = Player,
  691. Parent = h,
  692. }
  693. game:GetService("Debris"):AddItem(c, .5)
  694. end
  695. end
  696.  
  697. function ShowDamage(Pos, Text, Time, Color)
  698. local Rate = (1 / 30)
  699. local Pos = (Pos or Vector3.new(0, 0, 0))
  700. local Text = (Text or "")
  701. local Time = (Time or 2)
  702. local Color = (Color or Color3.new(1, 0, 1))
  703. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  704. EffectPart.Anchored = true
  705. local BillboardGui = Create("BillboardGui"){
  706. Size = UDim2.new(3, 0, 3, 0),
  707. Adornee = EffectPart,
  708. Parent = EffectPart,
  709. }
  710. local TextLabel = Create("TextLabel"){
  711. BackgroundTransparency = 1,
  712. Size = UDim2.new(1, 0, 1, 0),
  713. Text = Text,
  714. Font = "SciFi",
  715. TextColor3 = Color,
  716. TextScaled = true,
  717. Parent = BillboardGui,
  718. }
  719. game.Debris:AddItem(EffectPart, (Time))
  720. EffectPart.Parent = game:GetService("Workspace")
  721. delay(0, function()
  722. local Frames = (Time / Rate)
  723. for Frame = 1, Frames do
  724. wait(Rate)
  725. local Percent = (Frame / Frames)
  726. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  727. TextLabel.TextTransparency = Percent
  728. end
  729. if EffectPart and EffectPart.Parent then
  730. EffectPart:Destroy()
  731. end
  732. end)
  733. end
  734.  
  735. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  736. for _, c in pairs(workspace:children()) do
  737. local hum = c:findFirstChild("Humanoid")
  738. if hum ~= nil then
  739. local head = c:findFirstChild("Torso")
  740. if head ~= nil then
  741. local targ = head.Position - Part.Position
  742. local mag = targ.magnitude
  743. if mag <= Magnitude and c.Name ~= Player.Name then
  744. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  745. end
  746. end
  747. end
  748. end
  749. end
  750.  
  751. EffectModel = Create("Model"){
  752. Parent = Character,
  753. Name = "EffectModel",
  754. }
  755.  
  756. Effects = {
  757. Block = {
  758. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  759. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  760. prt.Anchored = true
  761. prt.CFrame = cframe
  762. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  763. game:GetService("Debris"):AddItem(prt, 10)
  764. if Type == 1 or Type == nil then
  765. table.insert(Effects, {
  766. prt,
  767. "Block1",
  768. delay,
  769. x3,
  770. y3,
  771. z3,
  772. msh
  773. })
  774. elseif Type == 2 then
  775. table.insert(Effects, {
  776. prt,
  777. "Block2",
  778. delay,
  779. x3,
  780. y3,
  781. z3,
  782. msh
  783. })
  784. elseif Type == 3 then
  785. table.insert(Effects, {
  786. prt,
  787. "Block3",
  788. delay,
  789. x3,
  790. y3,
  791. z3,
  792. msh,
  793. Part
  794. })
  795. elseif Type == 4 then
  796. table.insert(Effects, {
  797. prt,
  798. "Block2Fire",
  799. delay,
  800. x3,
  801. y3,
  802. z3,
  803. msh
  804. })
  805. end
  806. end
  807. };
  808.  
  809. Sphere = {
  810. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  811. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  812. prt.Anchored = true
  813. prt.CFrame = cframe
  814. if parent == nil then
  815. prt.Parent = workspace
  816. else
  817. prt.Parent = parent
  818. end
  819. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  820. game:GetService("Debris"):AddItem(prt, 10)
  821. table.insert(Effects, {
  822. prt,
  823. "Cylinder",
  824. delay,
  825. x3,
  826. y3,
  827. z3,
  828. msh
  829. })
  830. end
  831. };
  832.  
  833. Blood = {
  834. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  835. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  836. prt.Anchored = true
  837. prt.CFrame = cframe
  838. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  839. game:GetService("Debris"):AddItem(prt, 10)
  840. table.insert(Effects, {
  841. prt,
  842. "Blood",
  843. delay,
  844. x3,
  845. y3,
  846. z3,
  847. msh
  848. })
  849. end
  850. };
  851.  
  852. Blast = {
  853. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  854. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  855. prt.Anchored = true
  856. prt.CFrame = cframe
  857. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  858. game:GetService("Debris"):AddItem(prt, 10)
  859. table.insert(Effects, {
  860. prt,
  861. "Block4",
  862. delay,
  863. x3,
  864. y3,
  865. z3,
  866. msh,
  867. Part
  868. })
  869. end
  870. };
  871.  
  872. Ring = {
  873. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  874. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  875. prt.Anchored = true
  876. prt.CFrame = cframe
  877. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  878. game:GetService("Debris"):AddItem(prt, 10)
  879. table.insert(Effects, {
  880. prt,
  881. "Cylinder",
  882. delay,
  883. x3,
  884. y3,
  885. z3,
  886. msh
  887. })
  888. end
  889. };
  890.  
  891. Cylinder = {
  892. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  893. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  894. prt.Anchored = true
  895. prt.CFrame = cframe
  896. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  897. game:GetService("Debris"):AddItem(prt, 10)
  898. table.insert(Effects, {
  899. prt,
  900. "Cylinder",
  901. delay,
  902. x3,
  903. y3,
  904. z3,
  905. msh
  906. })
  907. end
  908. };
  909.  
  910. Head = {
  911. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  912. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  913. prt.Anchored = true
  914. prt.CFrame = cframe
  915. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  916. game:GetService("Debris"):AddItem(prt, 10)
  917. table.insert(Effects, {
  918. prt,
  919. "Cylinder",
  920. delay,
  921. x3,
  922. y3,
  923. z3,
  924. msh
  925. })
  926. end
  927. };
  928.  
  929. Wave = {
  930. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  931. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  932. prt.Anchored = true
  933. prt.CFrame = cframe
  934. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  935. game:GetService("Debris"):AddItem(prt, 10)
  936. table.insert(Effects, {
  937. prt,
  938. "Cylinder",
  939. delay,
  940. x3,
  941. y3,
  942. z3,
  943. msh
  944. })
  945. end
  946. };
  947.  
  948. Break = {
  949. Create = function(brickcolor, cframe, x1, y1, z1)
  950. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  951. prt.Anchored = true
  952. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  953. game:GetService("Debris"):AddItem(prt, 10)
  954. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  955. local num = math.random(10, 50) / 1000
  956. table.insert(Effects, {
  957. prt,
  958. "Shatter",
  959. num,
  960. prt.CFrame,
  961. math.random() - math.random(),
  962. 0,
  963. math.random(50, 100) / 100
  964. })
  965. end
  966. };
  967.  
  968. Elec = {
  969. Create = function(brickcolor, cff, x, y, z)
  970. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  971. prt.Anchored = true
  972. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  973. prt.CFrame = CFrame.new(prt.Position)
  974. game:GetService("Debris"):AddItem(prt, 10)
  975. xval = math.random() / 9
  976. yval = math.random() / 9
  977. zval = math.random() / 9
  978. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  979. eul1 = math.random(-50, 50)
  980. eul2 = math.random(-50, 50)
  981. eul3 = math.random(-50, 50)
  982. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  983. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  984. table.insert(Effects, {
  985. prt,
  986. "Elec",
  987. .05,
  988. x,
  989. y,
  990. z,
  991. xval,
  992. yval,
  993. zval,
  994. msh,
  995. euld,
  996. euld2
  997. })
  998. end
  999. };
  1000.  
  1001. Elec2 = {
  1002. Create = function(brickcolor, cff, x, y, z)
  1003. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  1004. prt.Anchored = true
  1005. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  1006. prt.CFrame = CFrame.new(prt.Position)
  1007. game:GetService("Debris"):AddItem(prt, 10)
  1008. xval = math.random() / 7
  1009. yval = math.random() / 7
  1010. zval = math.random() / 7
  1011. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1012. eul1 = math.random(-50, 50)
  1013. eul2 = math.random(-50, 50)
  1014. eul3 = math.random(-50, 50)
  1015. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  1016. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  1017. table.insert(Effects, {
  1018. prt,
  1019. "Elec",
  1020. .1,
  1021. x,
  1022. y,
  1023. z,
  1024. xval,
  1025. yval,
  1026. zval,
  1027. msh,
  1028. euld,
  1029. euld2
  1030. })
  1031. end
  1032. };
  1033.  
  1034. Clone = {
  1035. Create = function()
  1036. for _, v in pairs(Torso.Parent:children()) do
  1037. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  1038. local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  1039. c.Anchored = true
  1040. c.CFrame = v.CFrame
  1041. game:GetService("Debris"):AddItem(c, 5)
  1042. local cmsh = nil
  1043. if v.Name == "Head" then
  1044. cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  1045. else
  1046. cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  1047. end
  1048. table.insert(Effects, {
  1049. c,
  1050. "Cylinder",
  1051. 0.05,
  1052. 0.1,
  1053. 0.1,
  1054. 0.1,
  1055. cmsh
  1056. })
  1057. end
  1058. end
  1059. end
  1060. };
  1061.  
  1062. EffectTemplate = {
  1063.  
  1064. };
  1065. }
  1066.  
  1067. --gross code
  1068.  
  1069. demon1=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
  1070. demon1.Anchored = false
  1071. local mbewm2 = Instance.new("SpecialMesh", demon1)
  1072. mbewm2.MeshType = "Sphere"
  1073. mbewm2.Scale = Vector3.new(1,1,1)
  1074. demon1.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80))
  1075.  
  1076. demon2=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
  1077. demon2.Anchored = false
  1078. local mbewm2 = Instance.new("SpecialMesh", demon2)
  1079. mbewm2.MeshType = "Sphere"
  1080. mbewm2.Scale = Vector3.new(1,1,1)
  1081. demon2.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80))
  1082.  
  1083. demon2=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
  1084. demon2.Anchored = false
  1085. local mbewm2 = Instance.new("SpecialMesh", demon2)
  1086. mbewm2.MeshType = "Sphere"
  1087. mbewm2.Scale = Vector3.new(1,1,1)
  1088. demon2.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80))
  1089.  
  1090. demon3=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
  1091. demon3.Anchored = false
  1092. local mbewm2 = Instance.new("SpecialMesh", demon3)
  1093. mbewm2.MeshType = "Sphere"
  1094. mbewm2.Scale = Vector3.new(1,1,1)
  1095. demon3.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80))
  1096.  
  1097. demon4=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
  1098. demon4.Anchored = false
  1099. local mbewm2 = Instance.new("SpecialMesh", demon4)
  1100. mbewm2.MeshType = "Sphere"
  1101. mbewm2.Scale = Vector3.new(1,1,1)
  1102. demon4.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80))
  1103.  
  1104. demon5=CFuncs.Part.Create(Camera, "Neon", 0, 0, BrickColor.new("Really red"), "ref", Vector3.new(1,1,1))
  1105. demon5.Anchored = false
  1106. local mbewm2 = Instance.new("SpecialMesh", demon5)
  1107. mbewm2.MeshType = "Sphere"
  1108. mbewm2.Scale = Vector3.new(1,1,1)
  1109. demon5.CFrame = Part1.CFrame * CFrame.new(math.random(-80,80), -200 , math.random(-80,80))
  1110.  
  1111. whisper1 = Instance.new("Sound",demon1)
  1112. whisper1.SoundId = "http://www.roblox.com/asset/?id=228797800"
  1113. whisper1.Looped = true
  1114. whisper1.Volume = .6
  1115. whisper1.Name = "important"
  1116. whisper1:Play()
  1117.  
  1118.  
  1119. whisper2 = Instance.new("Sound",demon2)
  1120. whisper2.SoundId = "http://www.roblox.com/asset/?id=228797800"
  1121. whisper2.Looped = true
  1122. whisper2.Volume = .6
  1123. whisper2.Name = "important"
  1124. whisper2:Play()
  1125.  
  1126. whisper3 = Instance.new("Sound",demon3)
  1127. whisper3.SoundId = "http://www.roblox.com/asset/?id=228797800"
  1128. whisper3.Looped = true
  1129. whisper3.Volume = .6
  1130. whisper3.Name = "important"
  1131. whisper3:Play()
  1132.  
  1133. whisper4 = Instance.new("Sound",demon4)
  1134. whisper4.SoundId = "http://www.roblox.com/asset/?id=228797800"
  1135. whisper4.Looped = true
  1136. whisper4.Volume = .6
  1137. whisper4.Name = "important"
  1138. whisper4:Play()
  1139.  
  1140. whisper5 = Instance.new("Sound",demon5)
  1141. whisper5.SoundId = "http://www.roblox.com/asset/?id=228797800"
  1142. whisper5.Looped = true
  1143. whisper5.Volume = .6
  1144. whisper5.Name = "important"
  1145. whisper5:Play()
  1146.  
  1147.  
  1148. bp1 = Instance.new("BodyPosition",demon1)
  1149. bp1.P = 1500
  1150. bp1.Position = demon1.Position
  1151. local roketsped = 0
  1152. local spawnPosition = (demon1.CFrame).p
  1153. demon1.CFrame = CFrame.new(spawnPosition, Torso.Position)
  1154. demon1.Velocity = demon1.CFrame.lookVector * roketsped
  1155. local GRAVITY_ACCELERATION = 196.2
  1156. bodyForce = Instance.new('BodyForce', demon1)
  1157. bodyForce.Name = 'Antigravity'
  1158. bodyForce.force = Vector3.new(0, demon1:GetMass() * GRAVITY_ACCELERATION, 0)
  1159.  
  1160. bp2 = Instance.new("BodyPosition",demon2)
  1161. bp2.P = 1500
  1162. bp2.Position = demon2.Position
  1163. local roketsped = 0
  1164. local spawnPosition = (demon2.CFrame).p
  1165. demon2.CFrame = CFrame.new(spawnPosition, Torso.Position)
  1166. demon2.Velocity = demon1.CFrame.lookVector * roketsped
  1167. local GRAVITY_ACCELERATION = 196.2
  1168. bodyForce = Instance.new('BodyForce', demon2)
  1169. bodyForce.Name = 'Antigravity'
  1170. bodyForce.force = Vector3.new(0, demon2:GetMass() * GRAVITY_ACCELERATION, 0)
  1171.  
  1172. bp3 = Instance.new("BodyPosition",demon3)
  1173. bp3.P = 1500
  1174. bp3.Position = demon3.Position
  1175. local roketsped = 0
  1176. local spawnPosition = (demon3.CFrame).p
  1177. demon3.CFrame = CFrame.new(spawnPosition, Torso.Position)
  1178. demon3.Velocity = demon3.CFrame.lookVector * roketsped
  1179. local GRAVITY_ACCELERATION = 196.2
  1180. bodyForce = Instance.new('BodyForce', demon3)
  1181. bodyForce.Name = 'Antigravity'
  1182. bodyForce.force = Vector3.new(0, demon3:GetMass() * GRAVITY_ACCELERATION, 0)
  1183.  
  1184. bp4 = Instance.new("BodyPosition",demon4)
  1185. bp4.P = 1500
  1186. bp4.Position = demon4.Position
  1187. local roketsped = 0
  1188. local spawnPosition = (demon4.CFrame).p
  1189. demon4.CFrame = CFrame.new(spawnPosition, Torso.Position)
  1190. demon4.Velocity = demon4.CFrame.lookVector * roketsped
  1191. local GRAVITY_ACCELERATION = 196.2
  1192. bodyForce = Instance.new('BodyForce', demon4)
  1193. bodyForce.Name = 'Antigravity'
  1194. bodyForce.force = Vector3.new(0, demon4:GetMass() * GRAVITY_ACCELERATION, 0)
  1195.  
  1196. bp5 = Instance.new("BodyPosition",demon5)
  1197. bp5.P = 1500
  1198. bp5.Position = demon5.Position
  1199. local roketsped = 0
  1200. local spawnPosition = (demon5.CFrame).p
  1201. demon5.CFrame = CFrame.new(spawnPosition, Torso.Position)
  1202. demon5.Velocity = demon5.CFrame.lookVector * roketsped
  1203. local GRAVITY_ACCELERATION = 196.2
  1204. bodyForce = Instance.new('BodyForce', demon5)
  1205. bodyForce.Name = 'Antigravity'
  1206. bodyForce.force = Vector3.new(0, demon5:GetMass() * GRAVITY_ACCELERATION, 0)
  1207.  
  1208. demon1.Name = "bad"
  1209. demon2.Name = "bad"
  1210. demon3.Name = "bad"
  1211. demon4.Name = "bad"
  1212. demon5.Name = "bad"
  1213.  
  1214. local con1 = demon1.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
  1215. RightArm.CanCollide = true end end)
  1216.  
  1217. local con2 = demon2.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
  1218. RightArm.CanCollide = true end end)
  1219.  
  1220. local con3 = demon3.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
  1221. RightArm.CanCollide = true end end)
  1222.  
  1223. local con4 = demon4.Touched:connect(function(hit) if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
  1224. RightArm.CanCollide = true end end)
  1225.  
  1226. local con4 = demon5.Touched:connect(function(hit)if hit.Name ~= "bad" then Player.CameraMode = Enum.CameraMode.Classic Torso:Destroy() CFuncs.Sound.Create(209527203, Head, 1, 1) CFuncs.Sound.Create(432629066, Head, 1, 1) LeftArm.CanCollide = true game:GetService("Debris"):AddItem(LeftArm, 5) game:GetService("Debris"):AddItem(RightArm, 5)
  1227. RightArm.CanCollide = true end end)
  1228.  
  1229.  
  1230.  
  1231. local tp=CFuncs.Part.Create(Camera, "Glass", 0, .99, BrickColor.new("White"), "ref", Vector3.new(10000,1,10000))
  1232. tp.CFrame = Torso.CFrame * CFrame.new(0,100,0)
  1233. tp.Anchored = true
  1234.  
  1235.  
  1236.  
  1237. function glasseson()
  1238. Attack = true
  1239. Humanoid.WalkSpeed = 0
  1240. Humanoid.JumpPower = 0
  1241. tp=CFuncs.Part.Create(Torso, "Neon", 0, 1, BrickColor.new("Really black"), "ref", Vector3.new(1,1,1))
  1242. tp.CFrame = Torso.CFrame
  1243. tp.Anchored = true
  1244. for i = 0, 1, 0.1 do
  1245. swait()
  1246. PlayAnimationFromTable({
  1247. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1248. CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1249. CFrame.new(1.21651638, 0.0496894419, -0.74465692, 0.939692616, 0.342020124, 1.00488698e-07, -0.219845921, 0.604022026, -0.766045153, -0.262002915, 0.719846964, 0.642786741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1250. CFrame.new(-1.07138252, 0.0392258763, -0.822793722, 0.939692974, -0.342019349, 4.83909517e-08, 0.196173996, 0.538984954, -0.819152594, 0.280166, 0.769751906, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1251. CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1252. CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1253. }, .3, false)
  1254. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(350)), 1)
  1255. end
  1256. for i = 0, .5, 0.1 do
  1257. swait()
  1258. PlayAnimationFromTable({
  1259. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1260. CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1261. CFrame.new(1.33964431, 0.724650919, -0.651913106, 0.983905137, 0.0593908615, -0.16853331, -0.0901150107, -0.649520218, -0.754985332, -0.154305011, 0.758021295, -0.633714259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1262. CFrame.new(-1.11699426, 0.573325932, -1.04379082, 0.925419092, -0.163175523, 0.342013717, 0.0509470068, -0.840772271, -0.538986504, 0.37550506, 0.516213, -0.769753337) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1263. CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1264. CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1265. }, .3, false)
  1266. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(360), math.rad(0)), 1)
  1267. end
  1268. local mosic2 = Instance.new("Sound",Torso)
  1269. mosic2.SoundId = "http://www.roblox.com/asset/?id=406943544"
  1270. mosic2.Looped = true
  1271. mosic2.Volume = 1
  1272. mosic2.Name = "important"
  1273. mosic2:Play()
  1274. local smonk = Instance.new("ParticleEmitter",Torso)
  1275. smonk.LightEmission = .1
  1276. smonk.Size = NumberSequence.new(0.2)
  1277. smonk.Texture = "http://www.roblox.com/asset/?ID=137243001"
  1278. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
  1279. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1280. smonk.Transparency = bbb
  1281. smonk.Size = aaa
  1282. smonk.ZOffset = 0
  1283. smonk.Acceleration = Vector3.new(0, -5, 0)
  1284. smonk.LockedToPart = false
  1285. smonk.EmissionDirection = "Back"
  1286. smonk.Lifetime = NumberRange.new(.1, .5)
  1287. smonk.Rate = 1000
  1288. smonk.Rotation = NumberRange.new(-100, 100)
  1289. smonk.RotSpeed = NumberRange.new(-100, 100)
  1290. smonk.Speed = NumberRange.new(4)
  1291. smonk.VelocitySpread = 100
  1292. smonk.Enabled=true
  1293. CFuncs.Sound.Create(177359995, Head, 1, 1)
  1294. Player.CameraMode = Enum.CameraMode.LockFirstPerson
  1295. for i = 0, 5, 0.1 do
  1296. swait()
  1297. PlayAnimationFromTable({
  1298. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1299. CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1300. CFrame.new(1.35316098, 0.789045751, -0.264938205, 0.998222768, 0.053874854, -0.025473481, 0.0423549898, -0.94208312, -0.332694232, -0.0419219881, 0.331024021, -0.942690611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1301. CFrame.new(-1.25144863, 0.784832895, -0.439222217, 0.974767983, -0.0652274415, 0.213477939, -0.0166469999, -0.974933088, -0.221875042, 0.222599, 0.212722927, -0.951419353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1302. CFrame.new(0.692465484, -1.98315263, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1303. CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1304. }, .3, false)
  1305. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1.3, -.8, .35) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(180)), 1)
  1306. end
  1307. glasses = true
  1308. LeftArm.Parent = workspace
  1309. RightArm.Parent = workspace
  1310. LeftArm.CanCollide = false
  1311. RightArm.CanCollide = false
  1312. CFuncs.Sound.Create(263609923, Head, 1, 1)
  1313. smonk:Destroy()
  1314. Humanoid.WalkSpeed = 10
  1315. Humanoid.JumpPower = 50
  1316. mosic2:Destroy()
  1317. FauxGlasses.Transparency = 0
  1318. Glasses.Transparency = 1
  1319. Attack = false
  1320. end
  1321.  
  1322.  
  1323. function glassesoff()
  1324. Attack = true
  1325. Humanoid.WalkSpeed = 0
  1326. Humanoid.JumpPower = 0
  1327. Glasses.Parent = workspace
  1328. for i = 0, 1, 0.1 do
  1329. swait()
  1330. PlayAnimationFromTable({
  1331. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1332. CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1333. CFrame.new(1.35316098, 0.789045751, -0.264938205, 0.998222768, 0.053874854, -0.025473481, 0.0423549898, -0.94208312, -0.332694232, -0.0419219881, 0.331024021, -0.942690611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1334. CFrame.new(-1.25144863, 0.784832895, -0.439222217, 0.974767983, -0.0652274415, 0.213477939, -0.0166469999, -0.974933088, -0.221875042, 0.222599, 0.212722927, -0.951419353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1335. CFrame.new(0.692465484, -1.98315263, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1336. CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1337. }, .3, false)
  1338. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1.3, -.8, .35) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(180)), 1)
  1339. end
  1340. FauxGlasses.Transparency = 1
  1341. Glasses.Transparency = 0
  1342. for i = 0, .5, 0.1 do
  1343. swait()
  1344. PlayAnimationFromTable({
  1345. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1346. CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1347. CFrame.new(1.33964431, 0.724650919, -0.651913106, 0.983905137, 0.0593908615, -0.16853331, -0.0901150107, -0.649520218, -0.754985332, -0.154305011, 0.758021295, -0.633714259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1348. CFrame.new(-1.11699426, 0.573325932, -1.04379082, 0.925419092, -0.163175523, 0.342013717, 0.0509470068, -0.840772271, -0.538986504, 0.37550506, 0.516213, -0.769753337) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1349. CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1350. CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1351. }, .3, false)
  1352. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(360), math.rad(0)), 1)
  1353. end
  1354.  
  1355. for i = 0, .5, 0.1 do
  1356. swait()
  1357. PlayAnimationFromTable({
  1358. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1359. CFrame.new(0, 1.53798831, -0.0607271641, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1360. CFrame.new(1.21651638, 0.0496894419, -0.74465692, 0.939692616, 0.342020124, 1.00488698e-07, -0.219845921, 0.604022026, -0.766045153, -0.262002915, 0.719846964, 0.642786741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1361. CFrame.new(-1.07138252, 0.0392258763, -0.822793722, 0.939692974, -0.342019349, 4.83909517e-08, 0.196173996, 0.538984954, -0.819152594, 0.280166, 0.769751906, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1362. CFrame.new(0.692459702, -1.98315287, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1363. CFrame.new(-0.5, -1.99999046, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1364. }, .3, false)
  1365. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(350)), 1)
  1366. end
  1367. glasses = false
  1368. Player.CameraMode = Enum.CameraMode.Classic
  1369. Glasses.Parent = m
  1370. Humanoid.WalkSpeed = 10
  1371. Humanoid.JumpPower = 50
  1372. Attack = false
  1373. end
  1374.  
  1375.  
  1376.  
  1377.  
  1378. glasses = false
  1379.  
  1380. Mouse.KeyDown:connect(function(Key)
  1381. Key = Key:lower()
  1382. if Attack == false and Key == 'f' and glasses == false then
  1383. glasseson()
  1384. RootPart.CFrame = Part1.CFrame
  1385. mosic = Instance.new("Sound",Player.PlayerGui)
  1386. mosic.SoundId = "http://www.roblox.com/asset/?id=406943544"
  1387. mosic.Looped = true
  1388. mosic.Volume = 1
  1389. mosic.Name = "important"
  1390. mosic:Play()
  1391. elseif Attack == false and Key == 'f' and glasses == true then
  1392. glassesoff()
  1393. Character.Parent = workspace
  1394. LeftArm.Parent = Character
  1395. RightArm.Parent = Character
  1396. RootPart.CFrame = tp.CFrame
  1397. CFuncs.Sound.Create("263609898", Head, 1, 1)
  1398. mosic:Destroy()
  1399. tp:Destroy()
  1400. end
  1401. end)
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415. while true do
  1416. swait()
  1417. for i, v in pairs(Character:GetChildren()) do
  1418. if v:IsA("Part") then
  1419. v.Material = "SmoothPlastic"
  1420. elseif v:IsA("Accessory") then
  1421. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1422. end
  1423. end
  1424. for i, v in pairs(Character:GetChildren()) do
  1425. if v:IsA'Model' then
  1426. for _, c in pairs(v:GetChildren()) do
  1427. if c:IsA'Part' then
  1428. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1429. end
  1430. end
  1431. end
  1432. end
  1433. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1434. Velocity = RootPart.Velocity.y
  1435. Sine = Sine + Change
  1436. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1437. if RootPart.Velocity.y > 1 and hit == nil then
  1438. Anim = "Jump"
  1439. if Attack == false then
  1440. Change = 1
  1441. PlayAnimationFromTable({
  1442. CFrame.new(-0.0142319221, 0.0233184248, 0.0206878185, 1.00000012, 1.49011612e-08, 0, 2.72463048e-08, 0.965925992, 0.258818656, 2.98023224e-08, -0.258818597, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1443. CFrame.new(0.0172861218, 1.54588914, -0.00366462767, 0.999084175, 0.00742999092, -0.0421376228, -0.011074245, 0.996153653, -0.0869220346, 0.0413297117, 0.0873090774, 0.995323658) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1444. CFrame.new(1.54051697, 0.254249156, -0.521965742, 0.890014946, -0.152965426, -0.429505706, -0.32768172, 0.440404594, -0.835864007, 0.317014515, 0.884672523, 0.341842651) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1445. CFrame.new(-1.55745959, 0.112057857, 0.343250573, 0.986049891, 0.113037676, 0.12218184, -0.158506706, 0.861737013, 0.481959641, -0.050808996, -0.49460274, 0.867632747) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1446. CFrame.new(0.566533923, -1.59700418, -0.481964171, 0.999206185, -0.0385679156, -0.00998616219, 0.0397087261, 0.94381088, 0.328091979, -0.00322881341, -0.328228056, 0.944592893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1447. CFrame.new(-0.433014154, -1.95977831, 0.0051856637, 1, 0, 0, 0, 0.965925813, 0.258819401, -2.98023224e-08, -0.258819431, 0.965925753) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1448. }, .3, false)
  1449. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3)
  1450. end
  1451. elseif RootPart.Velocity.y < -1 and hit == nil then
  1452. Anim = "Fall"
  1453. if Attack == false then
  1454. Change = 1
  1455. PlayAnimationFromTable({
  1456. CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1457. CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1458. CFrame.new(1.44003379, 0.0510732532, -0.418421805, 0.890014946, -0.0760585517, -0.449542671, -0.298804998, 0.647417247, -0.701118112, 0.344367683, 0.75833106, 0.553484201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1459. CFrame.new(-1.55745959, 0.141547889, 0.332177758, 0.986049891, 0.113037676, 0.12218184, -0.162331849, 0.815350056, 0.555745184, -0.036800772, -0.567826271, 0.822325349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1460. CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1461. CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1462. }, .3, false)
  1463. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3)
  1464. end
  1465. elseif TorsoVelocity < 1 and hit ~= nil then
  1466. Anim = "Idle"
  1467. if Attack == false then
  1468. Change = 1
  1469. PlayAnimationFromTable({
  1470. CFrame.new(-0, -0, 0, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0 + .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1471. CFrame.new(1.34110451e-07, 1.49998593, -1.49011612e-07, 0.76604414, 0.0560228154, -0.640341997, 0, 0.996194661, 0.087155968, 0.642788053, -0.0667653158, 0.763129056) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .02 * math.cos(Sine/15), 0, 0),
  1472. CFrame.new(1.62554669, 0.0800072104, -0.00825580303, 0.98480773, -0.173648, 4.47034836e-07, 0.173647985, 0.984807849, -5.96214491e-08, -4.76837158e-07, 1.34110451e-07, 1.00000012) * CFrame.new(0, 0 + .02 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0 - .03 * math.cos(Sine/15)),
  1473. CFrame.new(-1.61308134, 0.0621920712, 0.0519417189, 0.98480773, 0.173648, 4.47034836e-07, -0.173647985, 0.984807849, 5.96214491e-08, -4.76837158e-07, -1.34110451e-07, 1.00000012) * CFrame.new(0, 0 + .02 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0 + .03 * math.cos(Sine/15)),
  1474. CFrame.new(0.651529193, -1.96177566, 0.0285208113, 0.996194839, -0.0871560052, -1.49011612e-07, 0.0871560052, 0.996194661, 1.05878144e-06, 0, -1.06170774e-06, 1) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1475. CFrame.new(-0.481398791, -1.99999607, -0.035370484, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773) * CFrame.new(0, 0 - .05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0),
  1476. }, .3, false)
  1477. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3)
  1478. end
  1479. elseif TorsoVelocity > 2 and hit ~= nil then
  1480. Anim = "Walk"
  1481. if Attack == false then
  1482. PlayAnimationFromTable({
  1483. CFrame.new(-0.0142326364, 0.023318341, 0.0206875801, 1.00000012, 1.5803721e-08, 5.96046448e-08, 2.72463048e-08, 1, 5.61747235e-08, 2.98023224e-08, 2.44280045e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-.2, math.rad(0 - 10 * math.cos(Sine/6)/2), 0),
  1484. CFrame.new(1.03447394e-06, 1.49992573, -8.27737608e-07, 0.999084234, 2.72463048e-08, -0.0427876711, 2.93197502e-08, 1, 2.55612349e-08, 0.0427877009, 5.61747235e-08, 0.999084353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1485. CFrame.new(1.66816366, 0.125450149, 0.167713135, 0.975411952, -0.217704624, -0.0342991352, 0.22028406, 0.9678877, 0.12111339, 0.0068307519, -0.125690982, 0.992045999) * CFrame.new(0, 0, 0 + .2 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 - 30 * math.cos(Sine/6)/2), 0, 0),
  1486. CFrame.new(-1.58983934, 0.0268005617, -0.146883398, 0.986049891, 0.166255936, -0.00805497169, -0.16625604, 0.981399775, -0.0959867239, -0.00805321336, 0.0959868878, 0.995350063) * CFrame.new(0, 0, 0 - .3 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 + 30 * math.cos(Sine/6)/2), 0, 0),
  1487. CFrame.new(.5, -1.64 - 0.8 * math.cos(Sine / 6) / 2, 0 + 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(-50 * math.sin(Sine / 6)), math.rad(-3), math.rad(0)),
  1488. CFrame.new(-.5, -1.64 + 0.8 * math.cos(Sine / 6) / 2, 0 - 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(50 * math.sin(Sine / 6)), math.rad(3), math.rad(0)),}, .3, false)
  1489. FHandleWeld.C0 = clerp(FHandleWeld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.3)
  1490. end
  1491. end
  1492. if #Effects > 0 then
  1493. for e = 1, #Effects do
  1494. if Effects[e] ~= nil then
  1495. local Thing = Effects[e]
  1496. if Thing ~= nil then
  1497. local Part = Thing[1]
  1498. local Mode = Thing[2]
  1499. local Delay = Thing[3]
  1500. local IncX = Thing[4]
  1501. local IncY = Thing[5]
  1502. if Thing[1].Transparency <= 1 then
  1503. if Thing[2] == "Block1" then
  1504. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1505. Mesh = Thing[7]
  1506. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1507. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1508. elseif Thing[2] == "Ice" then
  1509. if Thing[6] <= Thing[5] then
  1510. Thing[6] = Thing[6] + .05
  1511. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  1512. else
  1513. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1514. end
  1515. elseif Thing[2] == "Shatter" then
  1516. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1517. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1518. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1519. Thing[6] = Thing[6] + Thing[5]
  1520. elseif Thing[2] == "Block2" then
  1521. Thing[1].CFrame = Thing[1].CFrame
  1522. Mesh = Thing[7]
  1523. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1524. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1525. elseif Thing[2] == "Block3" then
  1526. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1527. Mesh = Thing[7]
  1528. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1529. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1530. elseif Thing[2] == "Block4" then
  1531. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1532. Mesh = Thing[7]
  1533. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1534. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1535. elseif Thing[2] == "Block2Fire" then
  1536. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1537. Mesh = Thing[7]
  1538. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1539. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1540. if Thing[1].Transparency >= .3 then
  1541. Thing[1].BrickColor = BrickColor.new("Bright red")
  1542. else
  1543. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  1544. end
  1545. elseif Thing[2] == "Cylinder" then
  1546. Mesh = Thing[7]
  1547. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1548. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1549. elseif Thing[2] == "Blood" then
  1550. Mesh = Thing[7]
  1551. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  1552. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1553. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1554. elseif Thing[2] == "Elec" then
  1555. Mesh = Thing[10]
  1556. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1557. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1558. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  1559. Thing[1].Rotation = Vector3.new(0, 0, 0)
  1560. elseif Thing[2] == "Disappear" then
  1561. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1562. end
  1563. else
  1564. Part.Parent = nil
  1565. table.remove(Effects, e)
  1566. end
  1567. end
  1568. end
  1569. end
  1570. end
  1571. soundbork(Character)
  1572. Humanoid.Health = math.huge
  1573. if glasses == true then
  1574. bp1.Position = Torso.Position
  1575. bp2.Position = Torso.Position
  1576. bp3.Position = Torso.Position
  1577. bp4.Position = Torso.Position
  1578. bp5.Position = Torso.Position
  1579. end
  1580.  
  1581. if glasses == false then
  1582. bp1.Position = demon1.Position
  1583. bp2.Position = demon2.Position
  1584. bp3.Position = demon3.Position
  1585. bp4.Position = demon4.Position
  1586. bp5.Position = demon5.Position
  1587. end
  1588.  
  1589. if not Part1 then
  1590. function sandbox(var,func)
  1591. local env = getfenv(func)
  1592. local newenv = setmetatable({},{
  1593. __index = function(self,k)
  1594. if k=="script" then
  1595. return var
  1596. else
  1597. return env[k]
  1598. end
  1599. end,
  1600. })
  1601. setfenv(func,newenv)
  1602. return func
  1603. end
  1604. cors = {}
  1605. mas = Instance.new("Model",Camera)
  1606. Model0 = Instance.new("Model")
  1607. Part1 = Instance.new("Part")
  1608. Part2 = Instance.new("Part")
  1609. Part3 = Instance.new("Part")
  1610. Part4 = Instance.new("Part")
  1611. Part5 = Instance.new("Part")
  1612. Part6 = Instance.new("Part")
  1613. Part7 = Instance.new("Part")
  1614. Model0.Name = "Netherworld"
  1615. Model0.Parent = mas
  1616. Part1.Name = "Spart"
  1617. Part1.Parent = Model0
  1618. Part1.Material = Enum.Material.Neon
  1619. Part1.Transparency = 1
  1620. Part1.Anchored = true
  1621. Part1.CanCollide = false
  1622. Part1.Size = Vector3.new(4, 1, 2)
  1623. Part1.CFrame = CFrame.new(144.5, 1290.63574, 2.74698257, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1624. Part1.BottomSurface = Enum.SurfaceType.Smooth
  1625. Part1.TopSurface = Enum.SurfaceType.Smooth
  1626. Part1.Position = Vector3.new(144.5, 1290.63574, 2.74698257)
  1627. Part2.Parent = Model0
  1628. Part2.Material = Enum.Material.Neon
  1629. Part2.BrickColor = BrickColor.new("Really black")
  1630. Part2.Transparency = 0.0099999997764826
  1631. Part2.Anchored = true
  1632. Part2.Size = Vector3.new(233.790359, 1.15406489, 245.924103)
  1633. Part2.CFrame = CFrame.new(130.757782, 1311.9447, 21.3496704, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1634. Part2.BottomSurface = Enum.SurfaceType.Smooth
  1635. Part2.TopSurface = Enum.SurfaceType.Smooth
  1636. Part2.Position = Vector3.new(130.757782, 1311.9447, 21.3496704)
  1637. Part3.Parent = Model0
  1638. Part3.Material = Enum.Material.Neon
  1639. Part3.BrickColor = BrickColor.new("Really black")
  1640. Part3.Transparency = 0.0099999997764826
  1641. Part3.Rotation = Vector3.new(90, 90, 0)
  1642. Part3.Anchored = true
  1643. Part3.Size = Vector3.new(233.790359, 1.15406489, 233.317429)
  1644. Part3.CFrame = CFrame.new(131.542297, 1193.58923, -99.4936905, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  1645. Part3.BottomSurface = Enum.SurfaceType.Smooth
  1646. Part3.TopSurface = Enum.SurfaceType.Smooth
  1647. Part3.Position = Vector3.new(131.542297, 1193.58923, -99.4936905)
  1648. Part3.Orientation = Vector3.new(0, 90, 90)
  1649. Part4.Parent = Model0
  1650. Part4.Material = Enum.Material.Neon
  1651. Part4.BrickColor = BrickColor.new("Really black")
  1652. Part4.Transparency = 0.0099999997764826
  1653. Part4.Rotation = Vector3.new(0, 0, 90)
  1654. Part4.Anchored = true
  1655. Part4.Size = Vector3.new(232.420349, 1.15406489, 242.134125)
  1656. Part4.CFrame = CFrame.new(246.358215, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  1657. Part4.BottomSurface = Enum.SurfaceType.Smooth
  1658. Part4.TopSurface = Enum.SurfaceType.Smooth
  1659. Part4.Position = Vector3.new(246.358215, 1194.35278, 22.2144928)
  1660. Part4.Orientation = Vector3.new(0, 0, 90)
  1661. Part5.Parent = Model0
  1662. Part5.Material = Enum.Material.Neon
  1663. Part5.BrickColor = BrickColor.new("Really black")
  1664. Part5.Transparency = 0.0099999997764826
  1665. Part5.Rotation = Vector3.new(90, 90, 0)
  1666. Part5.Anchored = true
  1667. Part5.Size = Vector3.new(233.790359, 1.15406489, 233.317429)
  1668. Part5.CFrame = CFrame.new(131.542297, 1193.58923, 143.942886, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  1669. Part5.BottomSurface = Enum.SurfaceType.Smooth
  1670. Part5.TopSurface = Enum.SurfaceType.Smooth
  1671. Part5.Position = Vector3.new(131.542297, 1193.58923, 143.942886)
  1672. Part5.Orientation = Vector3.new(0, 90, 90)
  1673. Part6.Parent = Model0
  1674. Part6.Material = Enum.Material.Neon
  1675. Part6.BrickColor = BrickColor.new("Really black")
  1676. Part6.Transparency = 0.0099999997764826
  1677. Part6.Rotation = Vector3.new(0, 0, 90)
  1678. Part6.Anchored = true
  1679. Part6.Size = Vector3.new(232.420349, 1.15406489, 242.134125)
  1680. Part6.CFrame = CFrame.new(18, 1194.35278, 22.2144928, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  1681. Part6.BottomSurface = Enum.SurfaceType.Smooth
  1682. Part6.TopSurface = Enum.SurfaceType.Smooth
  1683. Part6.Orientation = Vector3.new(0, 0, 90)
  1684. Part7.Parent = Model0
  1685. Part7.Material = Enum.Material.Neon
  1686. Part7.BrickColor = BrickColor.new("Really black")
  1687. Part7.Transparency = 0.0099999997764826
  1688. Part7.Anchored = true
  1689. Part7.Size = Vector3.new(233.790359, 1.15406489, 244.754089)
  1690. Part7.CFrame = CFrame.new(130.757782, 1077.43396, 20.7646637, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1691. Part7.BottomSurface = Enum.SurfaceType.Smooth
  1692. Part7.TopSurface = Enum.SurfaceType.Smooth
  1693. Part7.Position = Vector3.new(130.757782, 1077.43396, 20.7646637)
  1694. for i,v in pairs(mas:GetChildren()) do
  1695. v.Parent = workspace
  1696. pcall(function() v:MakeJoints() end)
  1697. end
  1698. mas:Destroy()
  1699. for i,v in pairs(cors) do
  1700. spawn(function()
  1701. pcall(v)
  1702. end)
  1703. end
  1704. end
  1705. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement