Advertisement
StarzoZero

Roblox FE SCP 178

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