Advertisement
memberhero

scp-178 filtering enabled

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