Advertisement
ERROR_CODE

My nightmare 3

Dec 6th, 2023 (edited)
1,493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 114.07 KB | None | 0 0
  1. if loaded then
  2. game.Players.LocalPlayer:Kick("Restart")
  3. local TeleportService = game:GetService("TeleportService")
  4. local Players = game:GetService("Players")
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. local Rejoin = coroutine.create(function()
  8.     local Success, ErrorMessage = pcall(function()
  9.         TeleportService:Teleport(game.PlaceId, LocalPlayer)
  10.     end)
  11.  
  12.     if ErrorMessage and not Success then
  13.         warn(ErrorMessage)
  14.     end
  15. end)
  16.  
  17. coroutine.resume(Rejoin)
  18. end
  19. pcall(function()
  20.     getgenv().loaded = true
  21. game:GetObjects("rbxassetid://15507196763")[1].Parent = game.Workspace
  22. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  23. wait()
  24. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
  25.  
  26. local View = Instance.new("ColorCorrectionEffect")
  27. View.Parent = game.Lighting
  28.  
  29. local CameraPart = Instance.new("Part")
  30. CameraPart.Parent = workspace
  31. CameraPart.Anchored = true
  32. CameraPart.Size = Vector3.new(4, 1, 2)
  33. CameraPart.CanCollide = false
  34. CameraPart.Rotation = Vector3.new(0, 180, 0)
  35. CameraPart.Position = Vector3.new(-12.463, 909.978, 198.854)
  36. CameraPart.Transparency = 1
  37. local player = game.Players.LocalPlayer
  38. local character = player.Character
  39. local cam = workspace.CurrentCamera
  40.  
  41. local EyeSound = Instance.new("Sound")
  42. local Id = "4474746611"
  43. EyeSound.Parent = game.Workspace
  44. EyeSound.SoundId = "rbxassetid://"..Id
  45. EyeSound.Playing = true
  46. EyeSound.Looped = false
  47. EyeSound.Volume = 1
  48. EyeSound:Stop()
  49.  
  50. local IntroMusic = Instance.new("Sound")
  51. local Id = "1837127229"
  52. IntroMusic.Parent = game.Workspace
  53. IntroMusic.SoundId = "rbxassetid://"..Id
  54. IntroMusic.Playing = true
  55. IntroMusic.Looped = false
  56. IntroMusic.Volume = 1
  57.  
  58. local SafeFromNightmare = Instance.new("Part")
  59. SafeFromNightmare.Parent = workspace
  60. SafeFromNightmare.Anchored = true
  61. SafeFromNightmare.Size = Vector3.new(6, 8, 2)
  62. SafeFromNightmare.CanCollide = true
  63. SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
  64. SafeFromNightmare.Transparency = 1
  65.  
  66.  
  67. local ScreenGui = Instance.new("ScreenGui")
  68. local RunLabel = Instance.new("TextLabel")
  69. local HeartBeat = Instance.new("Sound")
  70. local Id = "9116795681"
  71. HeartBeat.Parent = game.Workspace
  72. HeartBeat.SoundId = "rbxassetid://"..Id
  73. HeartBeat.Playing = true
  74. HeartBeat.Looped = false
  75. HeartBeat.Volume = 1
  76. HeartBeat:Stop()
  77. ScreenGui.Parent = game.CoreGui
  78.  
  79. function createZombie()
  80. function sandbox(var,func)
  81.     local env = getfenv(func)
  82.     local newenv = setmetatable({},{
  83.         __index = function(self,k)
  84.             if k=="script" then
  85.                 return var
  86.             else
  87.                 return env[k]
  88.             end
  89.         end,
  90.     })
  91.     setfenv(func,newenv)
  92.     return func
  93. end
  94. cors = {}
  95. mas = Instance.new("Model",game:GetService("Lighting"))
  96. Model0 = Instance.new("Model")
  97. Script1 = Instance.new("Script")
  98. Part1AA = Instance.new("Part")
  99. SpecialMesh2 = Instance.new("SpecialMesh")
  100. Vector3Value3 = Instance.new("Vector3Value")
  101. Motor6D4 = Instance.new("Motor6D")
  102. Decal5 = Instance.new("Decal")
  103. Decal5A = Instance.new("Decal")
  104. Decal5B = Instance.new("Decal")
  105. Decal5C = Instance.new("Decal")
  106. Decal5D = Instance.new("Decal")
  107. Decal5E = Instance.new("Decal")
  108. Decal5F = Instance.new("Decal")
  109. Decal5G = Instance.new("Decal")
  110. Decal5H = Instance.new("Decal")
  111. Decal6H = Instance.new("Decal")
  112. Decal7H = Instance.new("Decal")
  113. Decal8H = Instance.new("Decal")
  114. Decal9H = Instance.new("Decal")
  115. Decal10H = Instance.new("Decal")
  116. Decal11H = Instance.new("Decal")
  117. Decal12H = Instance.new("Decal")
  118. Decal13H = Instance.new("Decal")
  119. Decal14H = Instance.new("Decal")
  120. Decal15H = Instance.new("Decal")
  121. Decal16H = Instance.new("Decal")
  122. Sound6 = Instance.new("Sound")
  123. Sound7 = Instance.new("Sound")
  124. Sound8 = Instance.new("Sound")
  125. Sound9 = Instance.new("Sound")
  126. Sound10 = Instance.new("Sound")
  127. Part11 = Instance.new("Part")
  128. Vector3Value12 = Instance.new("Vector3Value")
  129. BodyColors13 = Instance.new("BodyColors")
  130. MeshPart14 = Instance.new("MeshPart")
  131. Vector3Value15 = Instance.new("Vector3Value")
  132. Motor6D16 = Instance.new("Motor6D")
  133. Script17 = Instance.new("Script")
  134. Humanoid18 = Instance.new("Humanoid")
  135. Script19 = Instance.new("Script")
  136. MeshPart20 = Instance.new("MeshPart")
  137. Vector3Value21 = Instance.new("Vector3Value")
  138. Motor6D22 = Instance.new("Motor6D")
  139. MeshPart23 = Instance.new("MeshPart")
  140. Vector3Value24 = Instance.new("Vector3Value")
  141. Motor6D25 = Instance.new("Motor6D")
  142. MeshPart26 = Instance.new("MeshPart")
  143. Vector3Value27 = Instance.new("Vector3Value")
  144. Motor6D28 = Instance.new("Motor6D")
  145. MeshPart29 = Instance.new("MeshPart")
  146. Vector3Value30 = Instance.new("Vector3Value")
  147. Motor6D31 = Instance.new("Motor6D")
  148. MeshPart32 = Instance.new("MeshPart")
  149. Vector3Value33 = Instance.new("Vector3Value")
  150. Motor6D34 = Instance.new("Motor6D")
  151. MeshPart35 = Instance.new("MeshPart")
  152. Vector3Value36 = Instance.new("Vector3Value")
  153. Motor6D37 = Instance.new("Motor6D")
  154. MeshPart38 = Instance.new("MeshPart")
  155. Vector3Value39 = Instance.new("Vector3Value")
  156. Motor6D40 = Instance.new("Motor6D")
  157. MeshPart41 = Instance.new("MeshPart")
  158. Vector3Value42 = Instance.new("Vector3Value")
  159. Motor6D43 = Instance.new("Motor6D")
  160. Script44 = Instance.new("Script")
  161. MeshPart45 = Instance.new("MeshPart")
  162. Vector3Value46 = Instance.new("Vector3Value")
  163. Motor6D47 = Instance.new("Motor6D")
  164. MeshPart48 = Instance.new("MeshPart")
  165. Vector3Value49 = Instance.new("Vector3Value")
  166. Motor6D50 = Instance.new("Motor6D")
  167. MeshPart51 = Instance.new("MeshPart")
  168. Vector3Value52 = Instance.new("Vector3Value")
  169. Motor6D53 = Instance.new("Motor6D")
  170. MeshPart54 = Instance.new("MeshPart")
  171. Vector3Value55 = Instance.new("Vector3Value")
  172. Motor6D56 = Instance.new("Motor6D")
  173. MeshPart57 = Instance.new("MeshPart")
  174. Vector3Value58 = Instance.new("Vector3Value")
  175. Motor6D59 = Instance.new("Motor6D")
  176. Script60 = Instance.new("Script")
  177. Script61 = Instance.new("Script")
  178. Script62 = Instance.new("Script")
  179. StringValue63 = Instance.new("StringValue")
  180. StringValue64 = Instance.new("StringValue")
  181. Animation65 = Instance.new("Animation")
  182. StringValue66 = Instance.new("StringValue")
  183. Animation67 = Instance.new("Animation")
  184. StringValue68 = Instance.new("StringValue")
  185. Animation69 = Instance.new("Animation")
  186. NumberValue70 = Instance.new("NumberValue")
  187. Animation71 = Instance.new("Animation")
  188. NumberValue72 = Instance.new("NumberValue")
  189. StringValue73 = Instance.new("StringValue")
  190. Animation74 = Instance.new("Animation")
  191. StringValue75 = Instance.new("StringValue")
  192. Animation76 = Instance.new("Animation")
  193. StringValue77 = Instance.new("StringValue")
  194. Animation78 = Instance.new("Animation")
  195. StringValue79 = Instance.new("StringValue")
  196. Animation80 = Instance.new("Animation")
  197. StringValue81 = Instance.new("StringValue")
  198. Animation82 = Instance.new("Animation")
  199. StringValue83 = Instance.new("StringValue")
  200. Animation84 = Instance.new("Animation")
  201. Script85 = Instance.new("Script")
  202. Model0.Name = "Nightmare"
  203. Model0.Parent = mas
  204. Part1AA.Name = "Head"
  205. Part1AA.Parent = Model0
  206. Part1AA.CFrame = CFrame.new(-0.695644557, 4.56509781, -2.19861078, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  207. Part1AA.Orientation = Vector3.new(0, 90.1399994, 0)
  208. Part1AA.Position = Vector3.new(-0.695644557, 4.56509781, -2.19861078)
  209. Part1AA.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  210. Part1AA.Color = Color3.new(0, 0, 0)
  211. Part1AA.Size = Vector3.new(1, 1, 1)
  212. Part1AA.BottomSurface = Enum.SurfaceType.Smooth
  213. Part1AA.BrickColor = BrickColor.new("Artichoke")
  214. Part1AA.TopSurface = Enum.SurfaceType.Smooth
  215. Part1AA.brickColor = BrickColor.new("Artichoke")
  216. Part1AA.FormFactor = Enum.FormFactor.Custom
  217. Part1AA.formFactor = Enum.FormFactor.Custom
  218. SpecialMesh2.Parent = Part1AA
  219. SpecialMesh2.MeshId = "http://www.roblox.com/asset?id=419776358"
  220. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  221. Vector3Value3.Name = "OriginalSize"
  222. Vector3Value3.Parent = Part1AA
  223. Vector3Value3.Value = Vector3.new(1, 1, 1)
  224. Motor6D4.Name = "Neck"
  225. Motor6D4.Parent = Part1AA
  226. Motor6D4.C0 = CFrame.new(0.000338107347, 0.806032121, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  227. Motor6D4.C1 = CFrame.new(-2.72095203e-05, -0.565615535, 0.00386685133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  228. Motor6D4.Part0 = MeshPart14
  229. Motor6D4.Part1 = Part1AA
  230. Motor6D4.part1 = Part1AA
  231. Decal5.Parent = Part1AA
  232. Decal5.Texture = "http://www.roblox.com/asset/?id=2939749348"
  233. Sound6.Name = "Moan"
  234. Sound6.Parent = Part1AA
  235. Sound6.SoundId = "rbxassetid://8248226944"
  236. Sound6.Volume = 1
  237. Sound7.Name = "Moan2"
  238. Sound7.Parent = Part1AA
  239. Sound7.SoundId = "rbxassetid://5786242867"
  240. Sound7.Volume = 1
  241. Sound8.Name = "Moan3"
  242. Sound8.Parent = Part1AA
  243. Sound8.SoundId = "rbxassetid://5721184414"
  244. Sound8.Volume = 1
  245. Sound9.Parent = Part1AA
  246. Sound9.SoundId = "rbxassetid://9067505447"
  247. Sound9.Volume = 1
  248. Sound10.Name = "Death"
  249. Sound10.Parent = Part1AA
  250. Part11.Name = "HumanoidRootPart"
  251. Part11.Parent = Model0
  252. Part11.CFrame = CFrame.new(-0.691856027, 2.32588005, -2.1985929, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  253. Part11.Orientation = Vector3.new(0, 90.1399994, 0)
  254. Part11.Position = Vector3.new(-145.023, 910.978, 334.575)
  255. Part11.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  256. Part11.Transparency = 1
  257. Part11.Size = Vector3.new(2, 2, 1)
  258. Part11.CanCollide = false
  259. Vector3Value12.Name = "OriginalSize"
  260. Vector3Value12.Parent = Part11
  261. Vector3Value12.Value = Vector3.new(2, 2, 1)
  262. BodyColors13.Parent = Model0
  263. BodyColors13.HeadColor = BrickColor.new("Really Black")
  264. BodyColors13.HeadColor3 = Color3.new(0, 0, 0)
  265. BodyColors13.LeftArmColor = BrickColor.new("Really Black")
  266. BodyColors13.LeftArmColor3 = Color3.new(0, 0, 0)
  267. BodyColors13.LeftLegColor = BrickColor.new("Really Black")
  268. BodyColors13.LeftLegColor3 = Color3.new(0, 0, 0)
  269. BodyColors13.RightArmColor = BrickColor.new("Really Black")
  270. BodyColors13.RightArmColor3 = Color3.new(0, 0, 0)
  271. BodyColors13.RightLegColor = BrickColor.new("Really Black")
  272. BodyColors13.RightLegColor3 = Color3.new(0, 0, 0)
  273. BodyColors13.TorsoColor = BrickColor.new("Really Black")
  274. BodyColors13.TorsoColor3 = Color3.new(0, 0, 0)
  275. MeshPart14.Name = "UpperTorso"
  276. MeshPart14.Parent = Model0
  277. MeshPart14.Transparency = 1
  278. Decal5A.Parent = MeshPart14
  279. Decal5A.Texture = "http://www.roblox.com/asset/?id=15507643492"
  280. MeshPart14.CFrame = CFrame.new(-0.676263928, 3.1934495, -2.19829226, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  281. MeshPart14.Orientation = Vector3.new(0, 90.1399994, 0)
  282. MeshPart14.Position = Vector3.new(-0.676263928, 3.1934495, -2.19829226)
  283. MeshPart14.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  284. MeshPart14.Color = Color3.new(0, 0, 0)
  285. MeshPart14.Size = Vector3.new(2.00029206, 1.60093355, 1.0005368)
  286. MeshPart14.BrickColor = BrickColor.new("Dark green")
  287. MeshPart14.brickColor = BrickColor.new("Dark green")
  288. Vector3Value15.Name = "OriginalSize"
  289. Vector3Value15.Parent = MeshPart14
  290. Vector3Value15.Value = Vector3.new(2.00029206, 1.60093355, 1.0005368)
  291. Motor6D16.Name = "Waist"
  292. Motor6D16.Parent = MeshPart14
  293. Motor6D16.C0 = CFrame.new(0.000280171633, 0.537143946, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  294. Motor6D16.C1 = CFrame.new(0.000338107347, -0.463463932, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  295. Motor6D16.Part0 = MeshPart41
  296. Motor6D16.Part1 = MeshPart14
  297. Motor6D16.part1 = MeshPart14
  298. Script17.Name = "Damage Script"
  299. Script17.Parent = MeshPart14
  300. table.insert(cors,sandbox(Script17,function()
  301. function onTouched(hit)
  302.         local human = hit.Parent:findFirstChild("Humanoid")
  303.         if (human ~= nil) then
  304.                 human.Health = human.Health - 999
  305.         end
  306. end
  307. script.Parent.Touched:connect(onTouched)
  308. end))
  309. Humanoid18.Name = "Zombie"
  310. Humanoid18.Parent = Model0
  311. Humanoid18.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Subject
  312. Humanoid18.Health = 125
  313. Humanoid18.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  314. Humanoid18.HipHeight = 1.3500000238419
  315. Humanoid18.LeftLeg = MeshPart45
  316. Humanoid18.MaxHealth = 125
  317. Humanoid18.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  318. Humanoid18.RigType = Enum.HumanoidRigType.R15
  319. Humanoid18.RightLeg = MeshPart20
  320. Humanoid18.Torso = Part11
  321. Humanoid18.WalkSpeed = 16
  322. Humanoid18.maxHealth = 125
  323. Script19.Parent = Model0
  324. table.insert(cors,sandbox(Script19,function()
  325. local larm = script.Parent:FindFirstChild("HumanoidRootPart")
  326. local rarm = script.Parent:FindFirstChild("HumanoidRootPart")
  327. local char = script.Parent
  328. local pathFinder = game:GetService("PathfindingService")
  329. local path = pathFinder:CreatePath()
  330.  
  331. function findNearestTorso(pos)
  332.     local list = game.Workspace:children()
  333.     local torso = nil
  334.     local dist = 100
  335.     local temp = nil
  336.     local human = nil
  337.     local temp2 = nil
  338.     for x = 1, #list do
  339.         temp2 = list[x]
  340.         if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  341.             temp = temp2:findFirstChild("HumanoidRootPart")
  342.             human = temp2:findFirstChild("Humanoid")
  343.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  344.                 if (temp.Position - pos).magnitude < dist then
  345.                     torso = temp
  346.                     dist = (temp.Position - pos).magnitude
  347.                 end
  348.             end
  349.         end
  350.     end
  351.     return torso
  352. end
  353.  
  354. while true do
  355.     wait()
  356.     local target = findNearestTorso(script.Parent.HumanoidRootPart.Position)
  357.     if target ~= nil then
  358.         path:ComputeAsync(char.HumanoidRootPart.Position, target.Position)
  359.  
  360.         for i, wayPoint in pairs(path:GetWaypoints()) do
  361.             char.Zombie:MoveTo(wayPoint.Position)
  362.  
  363.             if wayPoint.Action == Enum.PathWaypointAction.Jump then
  364.                 char.Zombie:ChangeState(Enum.HumanoidStateType.Jumping)
  365.             end
  366.  
  367.             char.Zombie.MoveToFinished:wait()
  368.         end
  369.     end
  370. end
  371.  
  372. end))
  373. MeshPart20.Name = "RightUpperLeg"
  374. MeshPart20.Parent = Model0
  375. MeshPart20.Transparency = 1
  376. Decal5B.Parent = MeshPart20
  377. Decal5B.Texture = "http://www.roblox.com/asset/?id=15507643492"
  378. MeshPart20.CFrame = CFrame.new(-0.67828238, 1.46466565, -2.69960117, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  379. MeshPart20.Orientation = Vector3.new(0, 90.1399994, 0)
  380. MeshPart20.Position = Vector3.new(-0.67828238, 1.46466565, -2.69960117)
  381. MeshPart20.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  382. MeshPart20.Color = Color3.new(0, 0, 0)
  383. MeshPart20.Size = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  384. MeshPart20.BrickColor = BrickColor.new("Bright blue")
  385. MeshPart20.CanCollide = false
  386. MeshPart20.brickColor = BrickColor.new("Bright blue")
  387. Vector3Value21.Name = "OriginalSize"
  388. Vector3Value21.Parent = MeshPart20
  389. Vector3Value21.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  390. Motor6D22.Name = "RightHip"
  391. Motor6D22.Parent = MeshPart20
  392. Motor6D22.C0 = CFrame.new(0.505080223, -0.243262246, 0.00102789141, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  393. Motor6D22.C1 = CFrame.new(0.00382620096, 0.484913796, 0.000486815348, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  394. Motor6D22.Part0 = MeshPart41
  395. Motor6D22.Part1 = MeshPart20
  396. Motor6D22.part1 = MeshPart20
  397. MeshPart23.Name = "RightUpperArm"
  398. MeshPart23.Parent = Model0
  399. MeshPart23.Transparency = 1
  400. MeshPart23.CFrame = CFrame.new(-0.685997844, 3.29312539, -3.69646788, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  401. MeshPart23.Orientation = Vector3.new(0, 90.1399994, 0)
  402. MeshPart23.Position = Vector3.new(-0.685997844, 3.29312539, -3.69646788)
  403. MeshPart23.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  404. MeshPart23.Color = Color3.new(0, 0, 0)
  405. MeshPart23.Size = Vector3.new(1.00027633, 1.39554, 1.00025082)
  406. MeshPart23.BrickColor = BrickColor.new("Cool yellow")
  407. MeshPart23.CanCollide = false
  408. Decal5C.Parent = MeshPart23
  409. Decal5C.Texture = "http://www.roblox.com/asset/?id=15507643492"
  410. MeshPart23.brickColor = BrickColor.new("Cool yellow")
  411. Vector3Value24.Name = "OriginalSize"
  412. Vector3Value24.Parent = MeshPart23
  413. Vector3Value24.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  414. Motor6D25.Name = "RightShoulder"
  415. Motor6D25.Parent = MeshPart23
  416. Motor6D25.C0 = CFrame.new(1.25031853, 0.5565539, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  417. Motor6D25.C1 = CFrame.new(-0.24787569, 0.456878304, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  418. Motor6D25.Part0 = MeshPart14
  419. Motor6D25.Part1 = MeshPart23
  420. Motor6D25.part1 = MeshPart23
  421. MeshPart26.Name = "RightLowerLeg"
  422. MeshPart26.Parent = Model0
  423. MeshPart26.Transparency = 1
  424. MeshPart26.CFrame = CFrame.new(-0.678020656, 0.910310864, -2.69960189, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  425. MeshPart26.Orientation = Vector3.new(0, 90.1399994, 0)
  426. MeshPart26.Position = Vector3.new(-0.678020656, 0.910310864, -2.69960189)
  427. MeshPart26.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  428. MeshPart26.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  429. MeshPart26.Size = Vector3.new(1.00027585, 1.48964536, 1.00032854)
  430. MeshPart26.BrickColor = BrickColor.new("Bright blue")
  431. MeshPart26.CanCollide = false
  432. Decal5D.Parent = MeshPart26
  433. Decal5D.Texture = "http://www.roblox.com/asset/?id=15507643492"
  434. MeshPart26.brickColor = BrickColor.new("Bright blue")
  435. Vector3Value27.Name = "OriginalSize"
  436. Vector3Value27.Parent = MeshPart26
  437. Vector3Value27.Value = Vector3.new(1.00027585, 1.48964536, 1.00032854)
  438. Motor6D28.Name = "RightKnee"
  439. Motor6D28.Parent = MeshPart26
  440. Motor6D28.C0 = CFrame.new(0.00382620096, -0.265086174, 0.000426991843, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  441. Motor6D28.C1 = CFrame.new(0.00382620096, 0.289268613, 0.000145851634, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  442. Motor6D28.Part0 = MeshPart20
  443. Motor6D28.Part1 = MeshPart26
  444. Motor6D28.part1 = MeshPart26
  445. MeshPart29.Name = "RightLowerArm"
  446. MeshPart29.Parent = Model0
  447. MeshPart29.Transparency = 1
  448. local RightLowerArmFire = Instance.new("Fire", MeshPart29)
  449. RightLowerArmFire.Size = 2
  450. RightLowerArmFire.Color = Color3.new(255,255,255)
  451. RightLowerArmFire.Heat = 0
  452. Decal5E.Parent = MeshPart29
  453. Decal5E.Texture = "http://www.roblox.com/asset/?id=15507643492"
  454. MeshPart29.CFrame = CFrame.new(-0.685555518, 2.90703535, -3.69646835, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  455. MeshPart29.Orientation = Vector3.new(0, 90.1399994, 0)
  456. MeshPart29.Position = Vector3.new(-0.685555518, 2.90703535, -3.69646835)
  457. MeshPart29.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  458. MeshPart29.Color = Color3.new(0.992157, 0.917647, 0.552941)
  459. MeshPart29.Size = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  460. MeshPart29.BrickColor = BrickColor.new("Cool yellow")
  461. MeshPart29.CanCollide = false
  462. MeshPart29.brickColor = BrickColor.new("Cool yellow")
  463. Vector3Value30.Name = "OriginalSize"
  464. Vector3Value30.Parent = MeshPart29
  465. Vector3Value30.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  466. Motor6D31.Name = "RightElbow"
  467. Motor6D31.Parent = MeshPart29
  468. Motor6D31.C0 = CFrame.new(0.00214397907, -0.263139546, -0.00944012403, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  469. Motor6D31.C1 = CFrame.new(0.00214457512, 0.122950554, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  470. Motor6D31.Part0 = MeshPart23
  471. Motor6D31.Part1 = MeshPart29
  472. Motor6D31.part1 = MeshPart29
  473. MeshPart32.Name = "RightHand"
  474. MeshPart32.Parent = Model0
  475. MeshPart32.Transparency = 1
  476. Decal5F.Parent = MeshPart32
  477. Decal5F.Texture = "http://www.roblox.com/asset/?id=15507643492"
  478. MeshPart32.CFrame = CFrame.new(-0.680041432, 2.1668787, -3.69776106, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  479. MeshPart32.Orientation = Vector3.new(0, 90.1399994, 0)
  480. MeshPart32.Position = Vector3.new(-0.680041432, 2.1668787, -3.69776106)
  481. MeshPart32.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  482. MeshPart32.Color = Color3.new(0.992157, 0.917647, 0.552941)
  483. MeshPart32.Size = Vector3.new(0.999299049, 0.335255772, 1.00029743)
  484. MeshPart32.BrickColor = BrickColor.new("Cool yellow")
  485. MeshPart32.CanCollide = false
  486. MeshPart32.brickColor = BrickColor.new("Cool yellow")
  487. Vector3Value33.Name = "OriginalSize"
  488. Vector3Value33.Parent = MeshPart32
  489. Vector3Value33.Value = Vector3.new(0.999299049, 0.335255772, 1.00029743)
  490. Motor6D34.Name = "RightWrist"
  491. Motor6D34.Parent = MeshPart32
  492. Motor6D34.C0 = CFrame.new(0.00214457512, -0.682049513, -0.00989595056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  493. Motor6D34.C1 = CFrame.new(0.000865101814, 0.058106944, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  494. Motor6D34.Part0 = MeshPart29
  495. Motor6D34.Part1 = MeshPart32
  496. Motor6D34.part1 = MeshPart32
  497. MeshPart35.Name = "RightFoot"
  498. MeshPart35.Parent = Model0
  499. MeshPart35.Transparency = 1
  500. Decal5G.Parent = MeshPart35
  501. Decal5G.Texture = "http://www.roblox.com/asset/?id=15507643492"
  502. MeshPart35.CFrame = CFrame.new(-0.677906275, 0.167736173, -2.69441152, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  503. MeshPart35.Orientation = Vector3.new(0, 90.1399994, 0)
  504. MeshPart35.Position = Vector3.new(-0.677906275, 0.167736173, -2.69441152)
  505. MeshPart35.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  506. MeshPart35.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  507. MeshPart35.Size = Vector3.new(1.00063133, 0.335407376, 1.00020337)
  508. MeshPart35.BrickColor = BrickColor.new("Bright blue")
  509. MeshPart35.CanCollide = false
  510. MeshPart35.brickColor = BrickColor.new("Bright blue")
  511. Vector3Value36.Name = "OriginalSize"
  512. Vector3Value36.Parent = MeshPart35
  513. Vector3Value36.Value = Vector3.new(1.00063133, 0.335407376, 1.00020337)
  514. Motor6D37.Name = "RightAnkle"
  515. Motor6D37.Parent = MeshPart35
  516. Motor6D37.C0 = CFrame.new(0.00382620096, -0.710731506, 0.000283418223, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  517. Motor6D37.C1 = CFrame.new(0.00901681185, 0.0318431854, 0.000155551359, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  518. Motor6D37.Part0 = MeshPart26
  519. Motor6D37.Part1 = MeshPart35
  520. Motor6D37.part1 = MeshPart35
  521. MeshPart38.Name = "LeftFoot"
  522. MeshPart38.Parent = Model0
  523. MeshPart38.Transparency = 1
  524. Decal5H.Parent = MeshPart38
  525. Decal5H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  526. MeshPart38.CFrame = CFrame.new(-0.675512314, 0.167736173, -1.70284736, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  527. MeshPart38.Orientation = Vector3.new(0, 90.1399994, 0)
  528. MeshPart38.Position = Vector3.new(-0.675512314, 0.167736173, -1.70284736)
  529. MeshPart38.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  530. MeshPart38.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  531. MeshPart38.Size = Vector3.new(1.00063133, 0.335407257, 1.00020337)
  532. MeshPart38.BrickColor = BrickColor.new("Bright blue")
  533. MeshPart38.CanCollide = false
  534. MeshPart38.brickColor = BrickColor.new("Bright blue")
  535. Vector3Value39.Name = "OriginalSize"
  536. Vector3Value39.Parent = MeshPart38
  537. Vector3Value39.Value = Vector3.new(1.00063133, 0.335407257, 1.00020337)
  538. Motor6D40.Name = "LeftAnkle"
  539. Motor6D40.Parent = MeshPart38
  540. Motor6D40.C0 = CFrame.new(-0.00382620096, -0.710131407, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  541. Motor6D40.C1 = CFrame.new(-0.00901681185, 0.032443285, 0.000177569687, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  542. Motor6D40.Part0 = MeshPart51
  543. Motor6D40.Part1 = MeshPart38
  544. Motor6D40.part1 = MeshPart38
  545. MeshPart41.Name = "LowerTorso"
  546. MeshPart41.Parent = Model0
  547. MeshPart41.Transparency = 1
  548. Decal6H.Parent = MeshPart41
  549. Decal6H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  550. MeshPart41.CFrame = CFrame.new(-0.677587926, 2.19284177, -2.19834709, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  551. MeshPart41.Orientation = Vector3.new(0, 90.1399994, 0)
  552. MeshPart41.Position = Vector3.new(-0.677587926, 2.19284177, -2.19834709)
  553. MeshPart41.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  554. MeshPart41.Color = Color3.new(0.156863, 0.498039, 0.278431)
  555. MeshPart41.Size = Vector3.new(2.00017595, 0.400037616, 1.00021255)
  556. MeshPart41.BrickColor = BrickColor.new("Dark green")
  557. MeshPart41.brickColor = BrickColor.new("Dark green")
  558. Vector3Value42.Name = "OriginalSize"
  559. Vector3Value42.Parent = MeshPart41
  560. Vector3Value42.Value = Vector3.new(2.00017595, 0.400037616, 1.00021255)
  561. Motor6D43.Name = "Root"
  562. Motor6D43.Parent = MeshPart41
  563. Motor6D43.C1 = CFrame.new(0.000280171633, 0.133037761, -0.0142721087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  564. Motor6D43.Part0 = Part11
  565. Motor6D43.Part1 = MeshPart41
  566. Motor6D43.part1 = MeshPart41
  567. Script44.Name = "Damage Script"
  568. Script44.Parent = MeshPart41
  569. table.insert(cors,sandbox(Script44,function()
  570. function onTouched(hit)
  571.         local human = hit.Parent:findFirstChild("Humanoid")
  572.         if (human ~= nil) then
  573.                 human.Health = human.Health - 999
  574.         end
  575. end
  576. script.Parent.Touched:connect(onTouched)
  577. end))
  578. MeshPart45.Name = "LeftUpperLeg"
  579. MeshPart45.Parent = Model0
  580. MeshPart45.Transparency = 1
  581. Decal7H.Parent = MeshPart45
  582. Decal7H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  583. MeshPart45.CFrame = CFrame.new(-0.675863564, 1.46466565, -1.69765592, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  584. MeshPart45.Orientation = Vector3.new(0, 90.1399994, 0)
  585. MeshPart45.Position = Vector3.new(-0.675863564, 1.46466565, -1.69765592)
  586. MeshPart45.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  587. MeshPart45.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  588. MeshPart45.Size = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  589. MeshPart45.BrickColor = BrickColor.new("Bright blue")
  590. MeshPart45.CanCollide = false
  591. MeshPart45.brickColor = BrickColor.new("Bright blue")
  592. Vector3Value46.Name = "OriginalSize"
  593. Vector3Value46.Parent = MeshPart45
  594. Vector3Value46.Value = Vector3.new(1.00027561, 1.5362649, 1.00092912)
  595. Motor6D47.Name = "LeftHip"
  596. Motor6D47.Parent = MeshPart45
  597. Motor6D47.C0 = CFrame.new(-0.50451982, -0.243062243, 0.00122789107, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  598. Motor6D47.C1 = CFrame.new(-0.00382620096, 0.4851138, 0.000686740503, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  599. Motor6D47.Part0 = MeshPart41
  600. Motor6D47.Part1 = MeshPart45
  601. Motor6D47.part1 = MeshPart45
  602. MeshPart48.Name = "LeftUpperArm"
  603. MeshPart48.Parent = Model0
  604. MeshPart48.Transparency = 1
  605. Decal8H.Parent = MeshPart48
  606. Decal8H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  607. MeshPart48.CFrame = CFrame.new(-0.678766429, 3.29312539, -0.700763106, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  608. MeshPart48.Orientation = Vector3.new(0, 90.1399994, 0)
  609. MeshPart48.Position = Vector3.new(-0.678766429, 3.29312539, -0.700763106)
  610. MeshPart48.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  611. MeshPart48.Color = Color3.new(0.992157, 0.917647, 0.552941)
  612. MeshPart48.Size = Vector3.new(1.00027633, 1.39554, 1.00025082)
  613. MeshPart48.BrickColor = BrickColor.new("Cool yellow")
  614. MeshPart48.CanCollide = false
  615. MeshPart48.brickColor = BrickColor.new("Cool yellow")
  616. Vector3Value49.Name = "OriginalSize"
  617. Vector3Value49.Parent = MeshPart48
  618. Vector3Value49.Value = Vector3.new(1.00027633, 1.39554, 1.00025082)
  619. Motor6D50.Name = "LeftShoulder"
  620. Motor6D50.Parent = MeshPart48
  621. Motor6D50.C0 = CFrame.new(-1.24955308, 0.556408584, -0.015560925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  622. Motor6D50.C1 = CFrame.new(0.247964978, 0.456732988, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  623. Motor6D50.Part0 = MeshPart14
  624. Motor6D50.Part1 = MeshPart48
  625. Motor6D50.part1 = MeshPart48
  626. MeshPart51.Name = "LeftLowerLeg"
  627. MeshPart51.Parent = Model0
  628. MeshPart51.Transparency = 1
  629. Decal9H.Parent = MeshPart51
  630. Decal9H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  631. MeshPart51.CFrame = CFrame.new(-0.67560178, 0.910310864, -1.69765651, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  632. MeshPart51.Orientation = Vector3.new(0, 90.1399994, 0)
  633. MeshPart51.Position = Vector3.new(-0.67560178, 0.910310864, -1.69765651)
  634. MeshPart51.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  635. MeshPart51.Color = Color3.new(0, 0, 0)
  636. MeshPart51.Size = Vector3.new(1.00027585, 1.48964536, 1.00032866)
  637. MeshPart51.BrickColor = BrickColor.new("Bright blue")
  638. MeshPart51.CanCollide = false
  639. MeshPart51.brickColor = BrickColor.new("Bright blue")
  640. Vector3Value52.Name = "OriginalSize"
  641. Vector3Value52.Parent = MeshPart51
  642. Vector3Value52.Value = Vector3.new(1.00027585, 1.48964536, 1.00032866)
  643. Motor6D53.Name = "LeftKnee"
  644. Motor6D53.Parent = MeshPart51
  645. Motor6D53.C0 = CFrame.new(-0.00382620096, -0.264486194, 0.000586740673, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  646. Motor6D53.C1 = CFrame.new(-0.00382620096, 0.289868593, 0.00030554086, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  647. Motor6D53.Part0 = MeshPart45
  648. Motor6D53.Part1 = MeshPart51
  649. Motor6D53.part1 = MeshPart51
  650. MeshPart54.Name = "LeftLowerArm"
  651. MeshPart54.Parent = Model0
  652. MeshPart54.Transparency = 1
  653. local LeftLowerArmFire = Instance.new("Fire", MeshPart54)
  654. LeftLowerArmFire.Size = 2
  655. LeftLowerArmFire.Color = Color3.new(255,255,255)
  656. LeftLowerArmFire.Heat = 0
  657. Decal10H.Parent = MeshPart54
  658. Decal10H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  659. MeshPart54.CFrame = CFrame.new(-0.678323925, 2.90703535, -0.700764775, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  660. MeshPart54.Orientation = Vector3.new(0, 90.1399994, 0)
  661. MeshPart54.Position = Vector3.new(-0.678323925, 2.90703535, -0.700764775)
  662. MeshPart54.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  663. MeshPart54.Color = Color3.new(0.992157, 0.917647, 0.552941)
  664. MeshPart54.Size = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  665. MeshPart54.BrickColor = BrickColor.new("Cool yellow")
  666. MeshPart54.CanCollide = false
  667. MeshPart54.brickColor = BrickColor.new("Cool yellow")
  668. Vector3Value55.Name = "OriginalSize"
  669. Vector3Value55.Parent = MeshPart54
  670. Vector3Value55.Value = Vector3.new(1.00027657, 1.26567209, 1.00025082)
  671. Motor6D56.Name = "LeftElbow"
  672. Motor6D56.Parent = MeshPart54
  673. Motor6D56.C0 = CFrame.new(-0.00166511536, -0.263139546, -0.00943991542, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  674. Motor6D56.C1 = CFrame.new(-0.0016657114, 0.122950554, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  675. Motor6D56.Part0 = MeshPart48
  676. Motor6D56.Part1 = MeshPart54
  677. Motor6D56.part1 = MeshPart54
  678. MeshPart57.Name = "LeftHand"
  679. MeshPart57.Parent = Model0
  680. MeshPart57.Transparency = 1
  681. Decal11H.Parent = MeshPart57
  682. Decal11H.Texture = "http://www.roblox.com/asset/?id=15507643492"
  683. MeshPart57.CFrame = CFrame.new(-0.67280364, 2.1668787, -0.699498653, -0.00241400092, 3.49997972e-05, 0.999997497, 0, 1, -3.499991e-05, -0.999997497, -8.44897698e-08, -0.00241400092)
  684. MeshPart57.Orientation = Vector3.new(0, 90.1399994, 0)
  685. MeshPart57.Position = Vector3.new(-0.67280364, 2.1668787, -0.699498653)
  686. MeshPart57.Rotation = Vector3.new(179.169998, 89.8700027, -179.169998)
  687. MeshPart57.Color = Color3.new(0.992157, 0.917647, 0.552941)
  688. MeshPart57.Size = Vector3.new(0.999299049, 0.335255831, 1.00029743)
  689. MeshPart57.BrickColor = BrickColor.new("Cool yellow")
  690. MeshPart57.CanCollide = false
  691. MeshPart57.brickColor = BrickColor.new("Cool yellow")
  692. Vector3Value58.Name = "OriginalSize"
  693. Vector3Value58.Parent = MeshPart57
  694. Vector3Value58.Value = Vector3.new(0.999299049, 0.335255831, 1.00029743)
  695. Motor6D59.Name = "LeftWrist"
  696. Motor6D59.Parent = MeshPart57
  697. Motor6D59.C0 = CFrame.new(-0.0016657114, -0.682255626, -0.00989592075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  698. Motor6D59.C1 = CFrame.new(-0.000386238098, 0.0579008311, -0.0154390335, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  699. Motor6D59.Part0 = MeshPart54
  700. Motor6D59.Part1 = MeshPart57
  701. Motor6D59.part1 = MeshPart57
  702. Script60.Name = "Respawn"
  703. Script60.Parent = Model0
  704. table.insert(cors,sandbox(Script60,function()
  705. z = Part11
  706.  
  707. backup = z:clone()
  708.  
  709. while true do
  710.     wait(5)
  711.     if z.Zombie.Health == 0 then
  712.         z:Remove()
  713.         wait(4)
  714.         backup.Parent = game.Workspace
  715.         backup.Head:MakeJoints()
  716.         backup.Torso:MakeJoints()
  717.     end
  718.     if z == nil then
  719.         wait(4)
  720.         backup.Parent = game.Workspace
  721.         backup.Head:MakeJoints()
  722.         backup.Torso:MakeJoints()
  723.     end
  724. end
  725. end))
  726. Script61.Name = "Health"
  727. Script61.Parent = Model0
  728. table.insert(cors,sandbox(Script61,function()
  729. --Responsible for regening a player's humanoid's health
  730.  
  731. -- declarations
  732. local Figure = script.Parent
  733. local Head = Figure:WaitForChild("Head")
  734. local Humanoid = Figure:WaitForChild("Humanoid")
  735. local regening = false
  736.  
  737. -- regeneration
  738. function regenHealth()
  739.     if regening then return end
  740.     regening = true
  741.    
  742.     while Humanoid.Health < Humanoid.MaxHealth do
  743.         local s = wait(1)
  744.         local health = Humanoid.Health
  745.         if health > 0 and health < Humanoid.MaxHealth then
  746.             local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  747.             health = health + newHealthDelta
  748.             Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  749.         end
  750.     end
  751.    
  752.     if Humanoid.Health > Humanoid.MaxHealth then
  753.         Humanoid.Health = Humanoid.MaxHealth
  754.     end
  755.    
  756.     regening = false
  757. end
  758.  
  759. Humanoid.HealthChanged:connect(regenHealth)
  760.  
  761. end))
  762. Script62.Name = "Animate"
  763. Script62.Parent = Model0
  764. table.insert(cors,sandbox(Script62,function()
  765. function   waitForChild(parent, childName)
  766.     local child = parent:findFirstChild(childName)
  767.     if child then return child end
  768.     while true do
  769.         child = parent.ChildAdded:wait()
  770.         if child.Name==childName then return child end
  771.     end
  772. end
  773.  
  774. local Figure = script.Parent
  775. local Humanoid = waitForChild(Figure, "Zombie")
  776. local pose = "Standing"
  777.  
  778. local currentAnim = ""
  779. local currentAnimInstance = nil
  780. local currentAnimTrack = nil
  781. local currentAnimKeyframeHandler = nil
  782. local currentAnimSpeed = 1.0
  783. local animTable = {}
  784. local animNames = {
  785.     idle =  {  
  786.                 { id = "http://www.roblox.com/asset/?id=", weight = 1 },
  787.                 { id = "http://www.roblox.com/asset/?id=", weight = 1 },
  788.                 { id = "http://www.roblox.com/asset/?id=", weight = 9 }
  789.             },
  790.     walk =  {  
  791.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  792.             },
  793.     run =   {
  794.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  795.             },
  796.     swim =  {
  797.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  798.             },
  799.     swimidle =  {
  800.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  801.             },
  802.     jump =  {
  803.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  804.             },
  805.     fall =  {
  806.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  807.             },
  808.     climb = {
  809.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  810.             },
  811.     sit =   {
  812.                 { id = "http://www.roblox.com/asset/?id=", weight = 10 }
  813.             }, 
  814.     toolnone = {
  815.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  816.             },
  817.     toolslash = {
  818.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  819. --              { id = "slash.xml", weight = 10 }
  820.             },
  821.     toollunge = {
  822.                 { id = "http://www.roblox.com/asset/?id=507768375", weight = 10 }
  823.             },
  824.     wave = {
  825.                 { id = "http://www.roblox.com/asset/?id=507770239", weight = 10 }
  826.             },
  827.     point = {
  828.                 { id = "http://www.roblox.com/asset/?id=507770453", weight = 10 }
  829.             },
  830.     dance = {
  831.                 { id = "http://www.roblox.com/asset/?id=507771019", weight = 10 },
  832.                 { id = "http://www.roblox.com/asset/?id=507771955", weight = 10 },
  833.                 { id = "http://www.roblox.com/asset/?id=507772104", weight = 10 }
  834.             },
  835.     dance2 = {
  836.                 { id = "http://www.roblox.com/asset/?id=507776043", weight = 10 },
  837.                 { id = "http://www.roblox.com/asset/?id=507776720", weight = 10 },
  838.                 { id = "http://www.roblox.com/asset/?id=507776879", weight = 10 }
  839.             },
  840.     dance3 = {
  841.                 { id = "http://www.roblox.com/asset/?id=507777268", weight = 10 },
  842.                 { id = "http://www.roblox.com/asset/?id=507777451", weight = 10 },
  843.                 { id = "http://www.roblox.com/asset/?id=507777623", weight = 10 }
  844.             },
  845.     laugh = {
  846.                 { id = "http://www.roblox.com/asset/?id=507770818", weight = 10 }
  847.             },
  848.     cheer = {
  849.                 { id = "http://www.roblox.com/asset/?id=507770677", weight = 10 }
  850.             },
  851. }
  852.  
  853. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  854. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  855.  
  856. math.randomseed(tick())
  857.  
  858. function configureAnimationSet(name, fileList)
  859.     if (animTable[name] ~= nil) then
  860.         for _, connection in pairs(animTable[name].connections) do
  861.             connection:disconnect()
  862.         end
  863.     end
  864.     animTable[name] = {}
  865.     animTable[name].count = 0
  866.     animTable[name].totalWeight = 0
  867.     animTable[name].connections = {}
  868.  
  869.     -- check for config values
  870.     local config = script:FindFirstChild(name)
  871.     if (config ~= nil) then
  872. --      print("Loading anims " .. name)
  873.         table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  874.         table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  875.         local idx = 1
  876.         for _, childPart in pairs(config:GetChildren()) do
  877.             if (childPart:IsA("Animation")) then
  878.                 table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  879.                 animTable[name][idx] = {}
  880.                 animTable[name][idx].anim = childPart
  881.                 local weightObject = childPart:FindFirstChild("Weight")
  882.                 if (weightObject == nil) then
  883.                     animTable[name][idx].weight = 1
  884.                 else
  885.                     animTable[name][idx].weight = weightObject.Value
  886.                 end
  887.                 animTable[name].count = animTable[name].count + 1
  888.                 animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  889. --              print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  890.                 idx = idx + 1
  891.             end
  892.         end
  893.     end
  894.  
  895.     -- fallback to defaults
  896.     if (animTable[name].count <= 0) then
  897.         for idx, anim in pairs(fileList) do
  898.             animTable[name][idx] = {}
  899.             animTable[name][idx].anim = Instance.new("Animation")
  900.             animTable[name][idx].anim.Name = name
  901.             animTable[name][idx].anim.AnimationId = anim.id
  902.             animTable[name][idx].weight = anim.weight
  903.             animTable[name].count = animTable[name].count + 1
  904.             animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  905. --          print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  906.         end
  907.     end
  908. end
  909.  
  910. -- Setup animation objects
  911. function scriptChildModified(child)
  912.     local fileList = animNames[child.Name]
  913.     if (fileList ~= nil) then
  914.         configureAnimationSet(child.Name, fileList)
  915.     end
  916. end
  917.  
  918. script.ChildAdded:connect(scriptChildModified)
  919. script.ChildRemoved:connect(scriptChildModified)
  920.  
  921.  
  922. for name, fileList in pairs(animNames) do
  923.     configureAnimationSet(name, fileList)
  924. end
  925.  
  926. -- ANIMATION
  927.  
  928. -- declarations
  929. local toolAnim = "None"
  930. local toolAnimTime = 0
  931.  
  932. local jumpAnimTime = 0
  933. local jumpAnimDuration = 0.31
  934.  
  935. local toolTransitionTime = 0.1
  936. local fallTransitionTime = 0.2
  937.  
  938. -- functions
  939.  
  940. function stopAllAnimations()
  941.     local oldAnim = currentAnim
  942.  
  943.     -- return to idle if finishing an emote
  944.     if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  945.         oldAnim = "idle"
  946.     end
  947.  
  948.     currentAnim = ""
  949.     currentAnimInstance = nil
  950.     if (currentAnimKeyframeHandler ~= nil) then
  951.         currentAnimKeyframeHandler:disconnect()
  952.     end
  953.  
  954.     if (currentAnimTrack ~= nil) then
  955.         currentAnimTrack:Stop()
  956.         currentAnimTrack:Destroy()
  957.         currentAnimTrack = nil
  958.     end
  959.     return oldAnim
  960. end
  961.  
  962. function setAnimationSpeed(speed)
  963.     if speed ~= currentAnimSpeed then
  964.         currentAnimSpeed = speed
  965.         currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  966.     end
  967. end
  968.  
  969. function keyFrameReachedFunc(frameName)
  970.     if (frameName == "End") then
  971. --      print("Keyframe : ".. frameName)
  972.  
  973.         local repeatAnim = currentAnim
  974.         -- return to idle if finishing an emote
  975.         if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  976.             repeatAnim = "idle"
  977.         end
  978.        
  979.         local animSpeed = currentAnimSpeed
  980.         playAnimation(repeatAnim, 0.15, Humanoid)
  981.         setAnimationSpeed(animSpeed)
  982.     end
  983. end
  984.  
  985. -- Preload animations
  986. function playAnimation(animName, transitionTime, humanoid)
  987.        
  988.     local roll = math.random(1, animTable[animName].totalWeight)
  989.     local origRoll = roll
  990.     local idx = 1
  991.     while (roll > animTable[animName][idx].weight) do
  992.         roll = roll - animTable[animName][idx].weight
  993.         idx = idx + 1
  994.     end
  995.    
  996.  
  997.    
  998.     local anim = animTable[animName][idx].anim
  999.  
  1000.    
  1001.     if (anim ~= currentAnimInstance) then
  1002.        
  1003.         if (currentAnimTrack ~= nil) then
  1004.             currentAnimTrack:Stop(transitionTime)
  1005.             currentAnimTrack:Destroy()
  1006.         end
  1007.  
  1008.         currentAnimSpeed = 1.0
  1009.    
  1010.         -- load it to the humanoid; get AnimationTrack
  1011.         currentAnimTrack = humanoid:LoadAnimation(anim)
  1012.          
  1013.         -- play the animation
  1014.         currentAnimTrack:Play(transitionTime)
  1015.         currentAnim = animName
  1016.         currentAnimInstance = anim
  1017.  
  1018.         -- set up keyframe name triggers
  1019.         if (currentAnimKeyframeHandler ~= nil) then
  1020.             currentAnimKeyframeHandler:disconnect()
  1021.         end
  1022.         currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  1023.        
  1024.     end
  1025.  
  1026. end
  1027.  
  1028.  
  1029.  
  1030. local toolAnimName = ""
  1031. local toolAnimTrack = nil
  1032. local toolAnimInstance = nil
  1033. local currentToolAnimKeyframeHandler = nil
  1034.  
  1035. function toolKeyFrameReachedFunc(frameName)
  1036.     if (frameName == "End") then
  1037. --      print("Keyframe : ".. frameName)   
  1038.         playToolAnimation(toolAnimName, 0.0, Humanoid)
  1039.     end
  1040. end
  1041.  
  1042.  
  1043. function playToolAnimation(animName, transitionTime, humanoid)   
  1044.        
  1045.         local roll = math.random(1, animTable[animName].totalWeight)
  1046.         local origRoll = roll
  1047.         local idx = 1
  1048.         while (roll > animTable[animName][idx].weight) do
  1049.             roll = roll - animTable[animName][idx].weight
  1050.             idx = idx + 1
  1051.         end
  1052. --      print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  1053.         local anim = animTable[animName][idx].anim
  1054.  
  1055.         if (toolAnimInstance ~= anim) then
  1056.            
  1057.             if (toolAnimTrack ~= nil) then
  1058.                 toolAnimTrack:Stop()
  1059.                 toolAnimTrack:Destroy()
  1060.                 transitionTime = 0
  1061.             end
  1062.                    
  1063.             -- load it to the humanoid; get AnimationTrack
  1064.             toolAnimTrack = humanoid:LoadAnimation(anim)
  1065.              
  1066.             -- play the animation
  1067.             toolAnimTrack:Play(transitionTime)
  1068.             toolAnimName = animName
  1069.             toolAnimInstance = anim
  1070.  
  1071.             currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  1072.         end
  1073. end
  1074.  
  1075. function stopToolAnimations()
  1076.     local oldAnim = toolAnimName
  1077.  
  1078.     if (currentToolAnimKeyframeHandler ~= nil) then
  1079.         currentToolAnimKeyframeHandler:disconnect()
  1080.     end
  1081.  
  1082.     toolAnimName = ""
  1083.     toolAnimInstance = nil
  1084.     if (toolAnimTrack ~= nil) then
  1085.         toolAnimTrack:Stop()
  1086.         toolAnimTrack:Destroy()
  1087.         toolAnimTrack = nil
  1088.     end
  1089.  
  1090.  
  1091.     return oldAnim
  1092. end
  1093.  
  1094.  
  1095.  
  1096.  
  1097. function onRunning(speed)
  1098.     if speed > 0.01 then
  1099.         local scale = 15.0
  1100.         playAnimation("walk", 0.1, Humanoid)
  1101.         setAnimationSpeed(speed / scale)
  1102.         pose = "Running"
  1103.     else
  1104.         playAnimation("idle", 0.1, Humanoid)
  1105.         pose = "Standing"
  1106.     end
  1107. end
  1108.  
  1109. function onDied()
  1110.     pose = "Dead"
  1111. end
  1112.  
  1113. function onJumping()
  1114.     playAnimation("jump", 0.1, Humanoid)
  1115.     jumpAnimTime = jumpAnimDuration
  1116.     pose = "Jumping"
  1117. end
  1118.  
  1119. function onClimbing(speed)
  1120.     local scale = 5.0
  1121.     playAnimation("climb", 0.1, Humanoid)
  1122.     setAnimationSpeed(speed / scale)
  1123.     pose = "Climbing"
  1124. end
  1125.  
  1126. function onGettingUp()
  1127.     pose = "GettingUp"
  1128. end
  1129.  
  1130. function onFreeFall()
  1131.     if (jumpAnimTime <= 0) then
  1132.         playAnimation("fall", fallTransitionTime, Humanoid)
  1133.     end
  1134.     pose = "FreeFall"
  1135. end
  1136.  
  1137. function onFallingDown()
  1138.     pose = "FallingDown"
  1139. end
  1140.  
  1141. function onSeated()
  1142.     pose = "Seated"
  1143. end
  1144.  
  1145. function onPlatformStanding()
  1146.     pose = "PlatformStanding"
  1147. end
  1148.  
  1149. function onSwimming(speed)
  1150.     if speed > 1.00 then
  1151.         local scale = 10.0
  1152.         playAnimation("swim", 0.4, Humanoid)
  1153.         setAnimationSpeed(speed / scale)
  1154.         pose = "Swimming"
  1155.     else
  1156.         playAnimation("swimidle", 0.4, Humanoid)
  1157.         pose = "Standing"
  1158.     end
  1159. end
  1160.  
  1161. function getTool() 
  1162.     for _, kid in ipairs(Figure:GetChildren()) do
  1163.         if kid.className == "Tool" then return kid end
  1164.     end
  1165.     return nil
  1166. end
  1167.  
  1168. function getToolAnim(tool)
  1169.     for _, c in ipairs(tool:GetChildren()) do
  1170.         if c.Name == "toolanim" and c.className == "StringValue" then
  1171.             return c
  1172.         end
  1173.     end
  1174.     return nil
  1175. end
  1176.  
  1177. function animateTool()
  1178.    
  1179.     if (toolAnim == "None") then
  1180.         playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1181.         return
  1182.     end
  1183.  
  1184.     if (toolAnim == "Slash") then
  1185.         playToolAnimation("toolslash", 0, Humanoid)
  1186.         return
  1187.     end
  1188.  
  1189.     if (toolAnim == "Lunge") then
  1190.         playToolAnimation("toollunge", 0, Humanoid)
  1191.         return
  1192.     end
  1193. end
  1194.  
  1195. function moveSit()
  1196.     RightShoulder.MaxVelocity = 0.15
  1197.     LeftShoulder.MaxVelocity = 0.15
  1198.     RightShoulder:SetDesiredAngle(3.14 /2)
  1199.     LeftShoulder:SetDesiredAngle(-3.14 /2)
  1200.     RightHip:SetDesiredAngle(3.14 /2)
  1201.     LeftHip:SetDesiredAngle(-3.14 /2)
  1202. end
  1203.  
  1204. local lastTick = 0
  1205.  
  1206. function move(time)
  1207.     local amplitude = 1
  1208.     local frequency = 1
  1209.     local deltaTime = time - lastTick
  1210.     lastTick = time
  1211.  
  1212.     local climbFudge = 0
  1213.     local setAngles = false
  1214.  
  1215.     if (jumpAnimTime > 0) then
  1216.         jumpAnimTime = jumpAnimTime - deltaTime
  1217.     end
  1218.  
  1219.     if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1220.         playAnimation("fall", fallTransitionTime, Humanoid)
  1221.     elseif (pose == "Seated") then
  1222.         playAnimation("sit", 0.5, Humanoid)
  1223.         return
  1224.     elseif (pose == "Running") then
  1225.         playAnimation("walk", 0.1, Humanoid)
  1226.     elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1227.         stopAllAnimations()
  1228.         amplitude = 0.1
  1229.         frequency = 1
  1230.         setAngles = true
  1231.     end
  1232.  
  1233.     -- Tool Animation handling
  1234.     local tool = getTool()
  1235.     if tool then
  1236.    
  1237.         animStringValueObject = getToolAnim(tool)
  1238.  
  1239.         if animStringValueObject then
  1240.             toolAnim = animStringValueObject.Value
  1241.             -- message recieved, delete StringValue
  1242.             animStringValueObject.Parent = nil
  1243.             toolAnimTime = time + .3
  1244.         end
  1245.  
  1246.         if time > toolAnimTime then
  1247.             toolAnimTime = 0
  1248.             toolAnim = "None"
  1249.         end
  1250.  
  1251.         animateTool()      
  1252.     else
  1253.         stopToolAnimations()
  1254.         toolAnim = "None"
  1255.         toolAnimInstance = nil
  1256.         toolAnimTime = 0
  1257.     end
  1258. end
  1259.  
  1260. -- connect events
  1261. Humanoid.Died:connect(onDied)
  1262. Humanoid.Running:connect(onRunning)
  1263. Humanoid.Jumping:connect(onJumping)
  1264. Humanoid.Climbing:connect(onClimbing)
  1265. Humanoid.GettingUp:connect(onGettingUp)
  1266. Humanoid.FreeFalling:connect(onFreeFall)
  1267. Humanoid.FallingDown:connect(onFallingDown)
  1268. Humanoid.Seated:connect(onSeated)
  1269. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1270. Humanoid.Swimming:connect(onSwimming)
  1271.  
  1272. -- setup emote chat hook
  1273. script.msg.Changed:connect(function(msg)
  1274.     script.msg.Value = ""
  1275.     local emote = ""
  1276.     if (string.sub(msg, 1, 3) == "/e ") then
  1277.         emote = string.sub(msg, 4)
  1278.     elseif (string.sub(msg, 1, 7) == "/emote ") then
  1279.         emote = string.sub(msg, 8)
  1280.     end
  1281.    
  1282.     if (pose == "Standing" and emoteNames[emote] ~= nil) then
  1283.         playAnimation(emote, 0.1, Humanoid)
  1284.     end
  1285. --  print("===> " .. string.sub(msg, 1, 3) .. "(" .. emote .. ")")
  1286. end)
  1287.  
  1288.  
  1289. -- main program
  1290.  
  1291. local runService = game:service("RunService");
  1292.  
  1293. -- print("bottom")
  1294.  
  1295. -- initialize to idle
  1296. playAnimation("idle", 0.1, Humanoid)
  1297. pose = "Standing"
  1298.  
  1299. while Figure.Parent~=nil do
  1300.     local _, time = wait(0.1)
  1301.     move(time)
  1302. end
  1303.  
  1304.  
  1305.  
  1306. end))
  1307. StringValue63.Name = "msg"
  1308. StringValue63.Parent = Script62
  1309. StringValue64.Name = "climb"
  1310. StringValue64.Parent = Script62
  1311. Animation65.Name = "ClimbAnim"
  1312. Animation65.Parent = StringValue64
  1313. Animation65.AnimationId = "http://www.roblox.com/asset/?id="
  1314. StringValue66.Name = "fall"
  1315. StringValue66.Parent = Script62
  1316. Animation67.Name = "FallAnim"
  1317. Animation67.Parent = StringValue66
  1318. Animation67.AnimationId = "http://www.roblox.com/asset/?id="
  1319. StringValue68.Name = "idle"
  1320. StringValue68.Parent = Script62
  1321. Animation69.Name = "Animation1"
  1322. Animation69.Parent = StringValue68
  1323. Animation69.AnimationId = "http://www.roblox.com/asset/?id="
  1324. NumberValue70.Name = "Weight"
  1325. NumberValue70.Parent = Animation69
  1326. NumberValue70.Value = 9
  1327. Animation71.Name = "Animation2"
  1328. Animation71.Parent = StringValue68
  1329. Animation71.AnimationId = "http://www.roblox.com/asset/?id="
  1330. NumberValue72.Name = "Weight"
  1331. NumberValue72.Parent = Animation71
  1332. NumberValue72.Value = 1
  1333. StringValue73.Name = "jump"
  1334. StringValue73.Parent = Script62
  1335. Animation74.Name = "JumpAnim"
  1336. Animation74.Parent = StringValue73
  1337. Animation74.AnimationId = "http://www.roblox.com/asset/?id="
  1338. StringValue75.Name = "sit"
  1339. StringValue75.Parent = Script62
  1340. Animation76.Name = "SitAnim"
  1341. Animation76.Parent = StringValue75
  1342. Animation76.AnimationId = "http://www.roblox.com/asset/?id="
  1343. StringValue77.Name = "swim"
  1344. StringValue77.Parent = Script62
  1345. Animation78.Name = "Swim"
  1346. Animation78.Parent = StringValue77
  1347. Animation78.AnimationId = "http://www.roblox.com/asset/?id="
  1348. StringValue79.Name = "swimidle"
  1349. StringValue79.Parent = Script62
  1350. Animation80.Name = "SwimIdle"
  1351. Animation80.Parent = StringValue79
  1352. Animation80.AnimationId = "http://www.roblox.com/asset/?id="
  1353. StringValue81.Name = "toolnone"
  1354. StringValue81.Parent = Script62
  1355. Animation82.Name = "ToolNoneAnim"
  1356. Animation82.Parent = StringValue81
  1357. Animation82.AnimationId = "http://www.roblox.com/asset/?id="
  1358. StringValue83.Name = "walk"
  1359. StringValue83.Parent = Script62
  1360. Animation84.Name = "RunAnim"
  1361. Animation84.Parent = StringValue83
  1362. Animation84.AnimationId = "http://www.roblox.com/asset/?id="
  1363. Script85.Name = "SoundScript"
  1364. Script85.Parent = Model0
  1365. table.insert(cors,sandbox(Script85,function()
  1366. local moan = script.Parent.Head.Moan
  1367. local moan2 = script.parent.Head.Moan2
  1368. local moan3 = script.parent.Head.Moan3
  1369. local moan4 = script.Parent.Head.Moan4
  1370.  
  1371. while true do
  1372.     moan:Play()
  1373.     wait(8)
  1374.    
  1375.     moan2:Play()
  1376.     wait(5)
  1377.    
  1378.     moan3:Play()
  1379.     wait(7)
  1380.    
  1381.     moan4:Play()
  1382.     wait(6)
  1383. end
  1384.  
  1385.  
  1386. local death = script.Parent.Head.Death
  1387.  
  1388.  
  1389. end))
  1390. for i,v in pairs(mas:GetChildren()) do
  1391.     v.Parent = workspace
  1392.     pcall(function() v:MakeJoints() end)
  1393. end
  1394. mas:Destroy()
  1395. for i,v in pairs(cors) do
  1396.     spawn(function()
  1397.         pcall(v)
  1398.     end)
  1399. end
  1400. end
  1401.  
  1402. for i = 1,1 do
  1403. createZombie()
  1404. end
  1405.  
  1406.  
  1407. RunLabel.Parent = ScreenGui
  1408. RunLabel.BackgroundTransparency = 1
  1409. RunLabel.Size = UDim2.new(2, 0, 2, 0)
  1410. RunLabel.Position = UDim2.new(-0.5, 0, -0.4 ,-255)
  1411. RunLabel.TextXAlignment = Enum.TextXAlignment.Center
  1412. RunLabel.TextScaled = true
  1413. RunLabel.Text = ""
  1414. RunLabel.TextColor3 = Color3.new(155, 0, 0)
  1415. RunLabel.Font = Enum.Font.IndieFlower
  1416.  
  1417.  
  1418. game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
  1419. game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.Classic
  1420. game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
  1421.  
  1422.  
  1423. local EyesLabel = Instance.new("TextLabel")
  1424. local EyeImage = Instance.new("ImageButton")
  1425. local EyeImageUICorner = Instance.new("UICorner")
  1426. local Eye = 9
  1427.  
  1428.  
  1429.  
  1430. EyesLabel.Name = "EyesLabel"
  1431. EyesLabel.Parent = ScreenGui
  1432. EyesLabel.Position = UDim2.new(0.88, 0, 0.2, 0)
  1433. EyesLabel.Size = UDim2.new(0, 155, 0, 95)
  1434. EyesLabel.Font = Enum.Font.IndieFlower
  1435. EyesLabel.Text = "X10"
  1436. EyesLabel.BackgroundTransparency = 1
  1437. EyesLabel.TextColor3 = Color3.new(255, 255, 255)
  1438. EyesLabel.TextSize = 85
  1439.  
  1440.  
  1441. EyeImage.Name = "EyeImage"
  1442. EyeImage.Parent = ScreenGui
  1443. EyeImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1444. EyeImage.Position = UDim2.new(0.85, 0, 0.25, 0)
  1445. EyeImage.Size = UDim2.new(0, 70, 0, 50)
  1446. EyeImage.BorderSizePixel = 0
  1447. EyeImage.Image = "rbxassetid://15537763305"
  1448. EyeImageUICorner.Parent = EyeImage
  1449. EyeImageUICorner.CornerRadius = UDim.new(0.5, 0)
  1450. EyeImage.MouseButton1Down:connect(function()
  1451. EyeSound:Play()
  1452. View.Saturation = View.Saturation - 2
  1453. View.Contrast = View.Contrast + 2
  1454. cam.CameraSubject = Part1AA
  1455. local HeadLight = Instance.new("PointLight")
  1456. HeadLight.Parent = Part1AA
  1457. HeadLight.Color = Color3.new(255, 255, 255)
  1458. HeadLight.Range = 35
  1459. HeadLight.Brightness = 15
  1460. EyesLabel.Text = "X"..Eye
  1461. Eye = Eye - 1
  1462. wait(5)
  1463. View.Saturation = View.Saturation + 2
  1464. View.Contrast = View.Contrast - 2
  1465. HeadLight.Parent = AA
  1466. cam.CameraSubject = character
  1467. end)
  1468.  
  1469.  
  1470. EyeImage.Visible = false
  1471. EyesLabel.Visible = false
  1472.  
  1473. local SoulsLabel = Instance.new("TextLabel")
  1474. local SoulClickDetector1 = Instance.new("ClickDetector")
  1475. local SoulClickDetector2 = Instance.new("ClickDetector")
  1476. local SoulClickDetector3 = Instance.new("ClickDetector")
  1477. local SoulClickDetector4 = Instance.new("ClickDetector")
  1478. local SoulClickDetector5 = Instance.new("ClickDetector")
  1479. local SoulClickDetector6 = Instance.new("ClickDetector")
  1480. local SoulClickDetector7 = Instance.new("ClickDetector")
  1481. local SoulClickDetector8 = Instance.new("ClickDetector")
  1482. local SoulClickDetector9 = Instance.new("ClickDetector")
  1483. local SoulClickDetector10 = Instance.new("ClickDetector")
  1484. local SoulClickDetector11 = Instance.new("ClickDetector")
  1485. local SoulClickDetector12 = Instance.new("ClickDetector")
  1486. local SoulClickDetector13 = Instance.new("ClickDetector")
  1487. local SoulClickDetector14 = Instance.new("ClickDetector")
  1488. local SoulClickDetector15 = Instance.new("ClickDetector")
  1489. local SoulClickDetector16 = Instance.new("ClickDetector")
  1490. local SoulClickDetector17 = Instance.new("ClickDetector")
  1491. local SoulClickDetector18 = Instance.new("ClickDetector")
  1492. local SoulClickDetector19 = Instance.new("ClickDetector")
  1493. local SoulClickDetector20 = Instance.new("ClickDetector")
  1494. local SoulClickDetector21 = Instance.new("ClickDetector")
  1495. local SoulClickDetector22 = Instance.new("ClickDetector")
  1496. local SoulClickDetector23 = Instance.new("ClickDetector")
  1497. local SoulClickDetector24 = Instance.new("ClickDetector")
  1498. local SoulClickDetector25 = Instance.new("ClickDetector")
  1499. local SoulPart1 = Instance.new("Part")
  1500. local SoulPart2 = Instance.new("Part")
  1501. local SoulPart3 = Instance.new("Part")
  1502. local SoulPart4 = Instance.new("Part")
  1503. local SoulPart5 = Instance.new("Part")
  1504. local SoulPart6 = Instance.new("Part")
  1505. local SoulPart7 = Instance.new("Part")
  1506. local SoulPart8 = Instance.new("Part")
  1507. local SoulPart9 = Instance.new("Part")
  1508. local SoulPart10 = Instance.new("Part")
  1509. local SoulPart11 = Instance.new("Part")
  1510. local SoulPart12 = Instance.new("Part")
  1511. local SoulPart13 = Instance.new("Part")
  1512. local SoulPart14 = Instance.new("Part")
  1513. local SoulPart15 = Instance.new("Part")
  1514. local SoulPart16 = Instance.new("Part")
  1515. local SoulPart17 = Instance.new("Part")
  1516. local SoulPart18 = Instance.new("Part")
  1517. local SoulPart19 = Instance.new("Part")
  1518. local SoulPart20 = Instance.new("Part")
  1519. local SoulPart21 = Instance.new("Part")
  1520. local SoulPart22 = Instance.new("Part")
  1521. local SoulPart23 = Instance.new("Part")
  1522. local SoulPart24 = Instance.new("Part")
  1523. local SoulPart25 = Instance.new("Part")
  1524. local Soul = 1
  1525. local SoulSound = Instance.new("Sound")
  1526. local Id = "297569488"
  1527.  
  1528.  
  1529.  
  1530. SoulSound.Parent = game.Workspace
  1531. SoulSound.SoundId = "rbxassetid://"..Id
  1532. SoulSound.Playing = true
  1533. SoulSound.Looped = false
  1534. SoulSound.Volume = 1
  1535. SoulSound:Stop()
  1536.  
  1537.  
  1538.  
  1539.  
  1540. SoulsLabel.Name = "SoulsLabel"
  1541. SoulsLabel.Parent = ScreenGui
  1542. SoulsLabel.Position = UDim2.new(0.42, 0, 0.7, 0)
  1543. SoulsLabel.Size = UDim2.new(0, 155, 0, 95)
  1544. SoulsLabel.Font = Enum.Font.IndieFlower
  1545. SoulsLabel.BackgroundTransparency = 1
  1546. SoulsLabel.TextColor3 = Color3.new(255, 255, 255)
  1547. SoulsLabel.TextSize = 50
  1548. SoulsLabel.Visible = false
  1549.  
  1550.  
  1551.  
  1552. SoulPart1.Parent = workspace
  1553. SoulPart1.Anchored = true
  1554. SoulPart1.Size = Vector3.new(2, 2, 2)
  1555. SoulPart1.CanCollide = true
  1556. SoulPart1.Position = Vector3.new(-17.272, 910.659, 189.895)  
  1557. SoulPart1.BrickColor = BrickColor.new("Institutional white")
  1558. SoulPart1.Material = "ForceField"
  1559. local SoulPart1Mesh = Instance.new("SpecialMesh", SoulPart1)
  1560. SoulPart1Mesh.MeshType = Enum.MeshType.Sphere
  1561. local SoulPart1Fire = Instance.new("Fire", SoulPart1)
  1562. SoulPart1Fire.Size = 5
  1563. SoulPart1Fire.Color = Color3.new(255,255,255)
  1564. SoulPart1Fire.Heat = 0
  1565.  
  1566.  
  1567.  
  1568. SoulPart2.Parent = workspace
  1569. SoulPart2.Anchored = true
  1570. SoulPart2.Size = Vector3.new(2, 2, 2)
  1571. SoulPart2.CanCollide = true
  1572. SoulPart2.Position = Vector3.new(-34.207, 906.978, 229.859)  
  1573. SoulPart2.BrickColor = BrickColor.new("Institutional white")
  1574. SoulPart2.Material = "ForceField"
  1575. local SoulPart2Mesh = Instance.new("SpecialMesh", SoulPart2)
  1576. SoulPart2Mesh.MeshType = Enum.MeshType.Sphere
  1577. local SoulPart2Fire = Instance.new("Fire", SoulPart2)
  1578. SoulPart2Fire.Size = 5
  1579. SoulPart2Fire.Color = Color3.new(255,255,255)
  1580. SoulPart2Fire.Heat = 0
  1581.  
  1582.  
  1583.  
  1584.  
  1585. SoulPart3.Parent = workspace
  1586. SoulPart3.Anchored = true
  1587. SoulPart3.Size = Vector3.new(2, 2, 2)
  1588. SoulPart3.CanCollide = true
  1589. SoulPart3.Position = Vector3.new(-116.122, 908.978, 264.69)  
  1590. SoulPart3.BrickColor = BrickColor.new("Institutional white")
  1591. SoulPart3.Material = "ForceField"
  1592. local SoulPart3Mesh = Instance.new("SpecialMesh", SoulPart3)
  1593. SoulPart3Mesh.MeshType = Enum.MeshType.Sphere
  1594. local SoulPart3Fire = Instance.new("Fire", SoulPart3)
  1595. SoulPart3Fire.Size = 5
  1596. SoulPart3Fire.Color = Color3.new(255,255,255)
  1597. SoulPart3Fire.Heat = 0
  1598.  
  1599.  
  1600.  
  1601. SoulPart4.Parent = workspace
  1602. SoulPart4.Anchored = true
  1603. SoulPart4.Size = Vector3.new(2, 2, 2)
  1604. SoulPart4.CanCollide = true
  1605. SoulPart4.Position = Vector3.new(-140.741, 908.978, 304.415)  
  1606. SoulPart4.BrickColor = BrickColor.new("Institutional white")
  1607. SoulPart4.Material = "ForceField"
  1608. local SoulPart4Mesh = Instance.new("SpecialMesh", SoulPart4)
  1609. SoulPart4Mesh.MeshType = Enum.MeshType.Sphere
  1610. local SoulPart4Fire = Instance.new("Fire", SoulPart4)
  1611. SoulPart4Fire.Size = 5
  1612. SoulPart4Fire.Color = Color3.new(255,255,255)
  1613. SoulPart4Fire.Heat = 0
  1614.  
  1615.  
  1616.  
  1617. SoulPart5.Parent = workspace
  1618. SoulPart5.Anchored = true
  1619. SoulPart5.Size = Vector3.new(2, 2, 2)
  1620. SoulPart5.CanCollide = true
  1621. SoulPart5.Position = Vector3.new(-105.639, 907.978, 131.407)  
  1622. SoulPart5.BrickColor = BrickColor.new("Institutional white")
  1623. SoulPart5.Material = "ForceField"
  1624. local SoulPart5Mesh = Instance.new("SpecialMesh", SoulPart5)
  1625. SoulPart5Mesh.MeshType = Enum.MeshType.Sphere
  1626. local SoulPart5Fire = Instance.new("Fire", SoulPart5)
  1627. SoulPart5Fire.Size = 5
  1628. SoulPart5Fire.Color = Color3.new(255,255,255)
  1629. SoulPart5Fire.Heat = 0
  1630.  
  1631.  
  1632.  
  1633. SoulPart6.Parent = workspace
  1634. SoulPart6.Anchored = true
  1635. SoulPart6.Size = Vector3.new(2, 2, 2)
  1636. SoulPart6.CanCollide = true
  1637. SoulPart6.Position = Vector3.new(38.775, 911.424, 121.79)  
  1638. SoulPart6.BrickColor = BrickColor.new("Institutional white")
  1639. SoulPart6.Material = "ForceField"
  1640. local SoulPart6Mesh = Instance.new("SpecialMesh", SoulPart6)
  1641. SoulPart6Mesh.MeshType = Enum.MeshType.Sphere
  1642. local SoulPart6Fire = Instance.new("Fire", SoulPart6)
  1643. SoulPart6Fire.Size = 5
  1644. SoulPart6Fire.Color = Color3.new(255,255,255)
  1645. SoulPart6Fire.Heat = 0
  1646.  
  1647.  
  1648.  
  1649. SoulPart7.Parent = workspace
  1650. SoulPart7.Anchored = true
  1651. SoulPart7.Size = Vector3.new(2, 2, 2)
  1652. SoulPart7.CanCollide = true
  1653. SoulPart7.Position = Vector3.new(53.61, 907.978, 195.923)  
  1654. SoulPart7.BrickColor = BrickColor.new("Institutional white")
  1655. SoulPart7.Material = "ForceField"
  1656. local SoulPart7Mesh = Instance.new("SpecialMesh", SoulPart7)
  1657. SoulPart7Mesh.MeshType = Enum.MeshType.Sphere
  1658. local SoulPart7Fire = Instance.new("Fire", SoulPart7)
  1659. SoulPart7Fire.Size = 5
  1660. SoulPart7Fire.Color = Color3.new(255,255,255)
  1661. SoulPart7Fire.Heat = 0
  1662.  
  1663.  
  1664.  
  1665. SoulPart8.Parent = workspace
  1666. SoulPart8.Anchored = true
  1667. SoulPart8.Size = Vector3.new(2, 2, 2)
  1668. SoulPart8.CanCollide = true
  1669. SoulPart8.Position = Vector3.new(53.84, 907.978, 330.798)  
  1670. SoulPart8.BrickColor = BrickColor.new("Institutional white")
  1671. SoulPart8.Material = "ForceField"
  1672. local SoulPart8Mesh = Instance.new("SpecialMesh", SoulPart8)
  1673. SoulPart8Mesh.MeshType = Enum.MeshType.Sphere
  1674. local SoulPart8Fire = Instance.new("Fire", SoulPart8)
  1675. SoulPart8Fire.Size = 5
  1676. SoulPart8Fire.Color = Color3.new(255,255,255)
  1677. SoulPart8Fire.Heat = 0
  1678.  
  1679.  
  1680.  
  1681. SoulPart9.Parent = workspace
  1682. SoulPart9.Anchored = true
  1683. SoulPart9.Size = Vector3.new(2, 2, 2)
  1684. SoulPart9.CanCollide = true
  1685. SoulPart9.Position = Vector3.new(16.481, 907.978, 313.223)  
  1686. SoulPart9.BrickColor = BrickColor.new("Institutional white")
  1687. SoulPart9.Material = "ForceField"
  1688. local SoulPart9Mesh = Instance.new("SpecialMesh", SoulPart9)
  1689. SoulPart9Mesh.MeshType = Enum.MeshType.Sphere
  1690. local SoulPart9Fire = Instance.new("Fire", SoulPart9)
  1691. SoulPart9Fire.Size = 5
  1692. SoulPart9Fire.Color = Color3.new(255,255,255)
  1693. SoulPart9Fire.Heat = 0
  1694.  
  1695.  
  1696.  
  1697. SoulPart10.Parent = workspace
  1698. SoulPart10.Anchored = true
  1699. SoulPart10.Size = Vector3.new(2, 2, 2)
  1700. SoulPart10.CanCollide = true
  1701. SoulPart10.Position = Vector3.new(-20.907, 907.978, 335.521)  
  1702. SoulPart10.BrickColor = BrickColor.new("Institutional white")
  1703. SoulPart10.Material = "ForceField"
  1704. local SoulPart10Mesh = Instance.new("SpecialMesh", SoulPart10)
  1705. SoulPart10Mesh.MeshType = Enum.MeshType.Sphere
  1706. local SoulPart10Fire = Instance.new("Fire", SoulPart10)
  1707. SoulPart10Fire.Size = 5
  1708. SoulPart10Fire.Color = Color3.new(255,255,255)
  1709. SoulPart10Fire.Heat = 0
  1710.  
  1711.  
  1712.  
  1713. SoulPart11.Parent = workspace
  1714. SoulPart11.Anchored = true
  1715. SoulPart11.Size = Vector3.new(2, 2, 2)
  1716. SoulPart11.CanCollide = true
  1717. SoulPart11.Position = Vector3.new(-35.205, 910.532, 304.006)  
  1718. SoulPart11.BrickColor = BrickColor.new("Institutional white")
  1719. SoulPart11.Material = "ForceField"
  1720. local SoulPart11Mesh = Instance.new("SpecialMesh", SoulPart11)
  1721. SoulPart11Mesh.MeshType = Enum.MeshType.Sphere
  1722. local SoulPart11Fire = Instance.new("Fire", SoulPart11)
  1723. SoulPart11Fire.Size = 5
  1724. SoulPart11Fire.Color = Color3.new(255,255,255)
  1725. SoulPart11Fire.Heat = 0
  1726.  
  1727.  
  1728.  
  1729. SoulPart12.Parent = workspace
  1730. SoulPart12.Anchored = true
  1731. SoulPart12.Size = Vector3.new(2, 2, 2)
  1732. SoulPart12.CanCollide = true
  1733. SoulPart12.Position = Vector3.new(-60.018, 908.003, 270.883)  
  1734. SoulPart12.BrickColor = BrickColor.new("Institutional white")
  1735. SoulPart12.Material = "ForceField"
  1736. local SoulPart12Mesh = Instance.new("SpecialMesh", SoulPart12)
  1737. SoulPart12Mesh.MeshType = Enum.MeshType.Sphere
  1738. local SoulPart12Fire = Instance.new("Fire", SoulPart12)
  1739. SoulPart12Fire.Size = 5
  1740. SoulPart12Fire.Color = Color3.new(255,255,255)
  1741. SoulPart12Fire.Heat = 0
  1742.  
  1743.  
  1744.  
  1745. SoulPart13.Parent = workspace
  1746. SoulPart13.Anchored = true
  1747. SoulPart13.Size = Vector3.new(2, 2, 2)
  1748. SoulPart13.CanCollide = true
  1749. SoulPart13.Position = Vector3.new(-146.327, 907.978, 269.73)  
  1750. SoulPart13.BrickColor = BrickColor.new("Institutional white")
  1751. SoulPart13.Material = "ForceField"
  1752. local SoulPart13Mesh = Instance.new("SpecialMesh", SoulPart13)
  1753. SoulPart13Mesh.MeshType = Enum.MeshType.Sphere
  1754. local SoulPart13Fire = Instance.new("Fire", SoulPart13)
  1755. SoulPart13Fire.Size = 5
  1756. SoulPart13Fire.Color = Color3.new(255,255,255)
  1757. SoulPart13Fire.Heat = 0
  1758.  
  1759.  
  1760.  
  1761. SoulPart14.Parent = workspace
  1762. SoulPart14.Anchored = true
  1763. SoulPart14.Size = Vector3.new(2, 2, 2)
  1764. SoulPart14.CanCollide = true
  1765. SoulPart14.Position = Vector3.new(24.117, 907.978, 205.102)  
  1766. SoulPart14.BrickColor = BrickColor.new("Institutional white")
  1767. SoulPart14.Material = "ForceField"
  1768. local SoulPart14Mesh = Instance.new("SpecialMesh", SoulPart14)
  1769. SoulPart14Mesh.MeshType = Enum.MeshType.Sphere
  1770. local SoulPart14Fire = Instance.new("Fire", SoulPart14)
  1771. SoulPart14Fire.Size = 5
  1772. SoulPart14Fire.Color = Color3.new(255,255,255)
  1773. SoulPart14Fire.Heat = 0
  1774.  
  1775.  
  1776.  
  1777. SoulPart15.Parent = workspace
  1778. SoulPart15.Anchored = true
  1779. SoulPart15.Size = Vector3.new(2, 2, 2)
  1780. SoulPart15.CanCollide = true
  1781. SoulPart15.Position = Vector3.new(-116.44, 906.978, 207.709)  
  1782. SoulPart15.BrickColor = BrickColor.new("Institutional white")
  1783. SoulPart15.Material = "ForceField"
  1784. local SoulPart15Mesh = Instance.new("SpecialMesh", SoulPart15)
  1785. SoulPart15Mesh.MeshType = Enum.MeshType.Sphere
  1786. local SoulPart15Fire = Instance.new("Fire", SoulPart15)
  1787. SoulPart15Fire.Size = 5
  1788. SoulPart15Fire.Color = Color3.new(255,255,255)
  1789. SoulPart15Fire.Heat = 0
  1790.  
  1791.  
  1792.  
  1793. SoulPart16.Parent = workspace
  1794. SoulPart16.Anchored = true
  1795. SoulPart16.Size = Vector3.new(2, 2, 2)
  1796. SoulPart16.CanCollide = true
  1797. SoulPart16.Position = Vector3.new(-148.776, 907.978, 167.948)  
  1798. SoulPart16.BrickColor = BrickColor.new("Institutional white")
  1799. SoulPart16.Material = "ForceField"
  1800. local SoulPart16Mesh = Instance.new("SpecialMesh", SoulPart16)
  1801. SoulPart16Mesh.MeshType = Enum.MeshType.Sphere
  1802. local SoulPart16Fire = Instance.new("Fire", SoulPart16)
  1803. SoulPart16Fire.Size = 5
  1804. SoulPart16Fire.Color = Color3.new(255,255,255)
  1805. SoulPart16Fire.Heat = 0
  1806.  
  1807.  
  1808.  
  1809. SoulPart17.Parent = workspace
  1810. SoulPart17.Anchored = true
  1811. SoulPart17.Size = Vector3.new(2, 2, 2)
  1812. SoulPart17.CanCollide = true
  1813. SoulPart17.Position = Vector3.new(-40.15, 908.003, 103.196)  
  1814. SoulPart17.BrickColor = BrickColor.new("Institutional white")
  1815. SoulPart17.Material = "ForceField"
  1816. local SoulPart17Mesh = Instance.new("SpecialMesh", SoulPart17)
  1817. SoulPart17Mesh.MeshType = Enum.MeshType.Sphere
  1818. local SoulPart17Fire = Instance.new("Fire", SoulPart17)
  1819. SoulPart17Fire.Size = 5
  1820. SoulPart17Fire.Color = Color3.new(255,255,255)
  1821. SoulPart17Fire.Heat = 0
  1822.  
  1823.  
  1824.  
  1825. SoulPart18.Parent = workspace
  1826. SoulPart18.Anchored = true
  1827. SoulPart18.Size = Vector3.new(2, 2, 2)
  1828. SoulPart18.CanCollide = true
  1829. SoulPart18.Position = Vector3.new(57.8, 908.978, 107.934)  
  1830. SoulPart18.BrickColor = BrickColor.new("Institutional white")
  1831. SoulPart18.Material = "ForceField"
  1832. local SoulPart18Mesh = Instance.new("SpecialMesh", SoulPart18)
  1833. SoulPart18Mesh.MeshType = Enum.MeshType.Sphere
  1834. local SoulPart18Fire = Instance.new("Fire", SoulPart18)
  1835. SoulPart18Fire.Size = 5
  1836. SoulPart18Fire.Color = Color3.new(255,255,255)
  1837. SoulPart18Fire.Heat = 0
  1838.  
  1839.  
  1840.  
  1841. SoulPart19.Parent = workspace
  1842. SoulPart19.Anchored = true
  1843. SoulPart19.Size = Vector3.new(2, 2, 2)
  1844. SoulPart19.CanCollide = true
  1845. SoulPart19.Position = Vector3.new(-52.715, 907.978, 184.988)  
  1846. SoulPart19.BrickColor = BrickColor.new("Institutional white")
  1847. SoulPart19.Material = "ForceField"
  1848. local SoulPart19Mesh = Instance.new("SpecialMesh", SoulPart19)
  1849. SoulPart19Mesh.MeshType = Enum.MeshType.Sphere
  1850. local SoulPart19Fire = Instance.new("Fire", SoulPart19)
  1851. SoulPart19Fire.Size = 5
  1852. SoulPart19Fire.Color = Color3.new(255,255,255)
  1853. SoulPart19Fire.Heat = 0
  1854.  
  1855.  
  1856.  
  1857. SoulPart20.Parent = workspace
  1858. SoulPart20.Anchored = true
  1859. SoulPart20.Size = Vector3.new(2, 2, 2)
  1860. SoulPart20.CanCollide = true
  1861. SoulPart20.Position = Vector3.new(-48.748, 910.483, 255.352)  
  1862. SoulPart20.BrickColor = BrickColor.new("Institutional white")
  1863. SoulPart20.Material = "ForceField"
  1864. local SoulPart20Mesh = Instance.new("SpecialMesh", SoulPart20)
  1865. SoulPart20Mesh.MeshType = Enum.MeshType.Sphere
  1866. local SoulPart20Fire = Instance.new("Fire", SoulPart20)
  1867. SoulPart20Fire.Size = 5
  1868. SoulPart20Fire.Color = Color3.new(255,255,255)
  1869. SoulPart20Fire.Heat = 0
  1870.  
  1871.  
  1872.  
  1873. SoulPart21.Parent = workspace
  1874. SoulPart21.Anchored = true
  1875. SoulPart21.Size = Vector3.new(2, 2, 2)
  1876. SoulPart21.CanCollide = true
  1877. SoulPart21.Position = Vector3.new(-84.419, 908.003, 198.947)  
  1878. SoulPart21.BrickColor = BrickColor.new("Institutional white")
  1879. SoulPart21.Material = "ForceField"
  1880. local SoulPart21Mesh = Instance.new("SpecialMesh", SoulPart21)
  1881. SoulPart21Mesh.MeshType = Enum.MeshType.Sphere
  1882. local SoulPart21Fire = Instance.new("Fire", SoulPart21)
  1883. SoulPart21Fire.Size = 5
  1884. SoulPart21Fire.Color = Color3.new(255,255,255)
  1885. SoulPart21Fire.Heat = 0
  1886.  
  1887.  
  1888.  
  1889. SoulPart22.Parent = workspace
  1890. SoulPart22.Anchored = true
  1891. SoulPart22.Size = Vector3.new(2, 2, 2)
  1892. SoulPart22.CanCollide = true
  1893. SoulPart22.Position = Vector3.new(58.289, 913.177, 320.731)  
  1894. SoulPart22.BrickColor = BrickColor.new("Institutional white")
  1895. SoulPart22.Material = "ForceField"
  1896. local SoulPart22Mesh = Instance.new("SpecialMesh", SoulPart22)
  1897. SoulPart22Mesh.MeshType = Enum.MeshType.Sphere
  1898. local SoulPart22Fire = Instance.new("Fire", SoulPart22)
  1899. SoulPart22Fire.Size = 5
  1900. SoulPart22Fire.Color = Color3.new(255,255,255)
  1901. SoulPart22Fire.Heat = 0
  1902.  
  1903.  
  1904.  
  1905. SoulPart23.Parent = workspace
  1906. SoulPart23.Anchored = true
  1907. SoulPart23.Size = Vector3.new(2, 2, 2)
  1908. SoulPart23.CanCollide = true
  1909. SoulPart23.Position = Vector3.new(56.853, 913.149, 151.803)  
  1910. SoulPart23.BrickColor = BrickColor.new("Institutional white")
  1911. SoulPart23.Material = "ForceField"
  1912. local SoulPart23Mesh = Instance.new("SpecialMesh", SoulPart23)
  1913. SoulPart23Mesh.MeshType = Enum.MeshType.Sphere
  1914. local SoulPart23Fire = Instance.new("Fire", SoulPart23)
  1915. SoulPart23Fire.Size = 5
  1916. SoulPart23Fire.Color = Color3.new(255,255,255)
  1917. SoulPart23Fire.Heat = 0
  1918.  
  1919.  
  1920.  
  1921. SoulPart24.Parent = workspace
  1922. SoulPart24.Anchored = true
  1923. SoulPart24.Size = Vector3.new(2, 2, 2)
  1924. SoulPart24.CanCollide = true
  1925. SoulPart24.Position = Vector3.new(-151.096, 913.862, 338.621)  
  1926. SoulPart24.BrickColor = BrickColor.new("Institutional white")
  1927. SoulPart24.Material = "ForceField"
  1928. local SoulPart24Mesh = Instance.new("SpecialMesh", SoulPart24)
  1929. SoulPart24Mesh.MeshType = Enum.MeshType.Sphere
  1930. local SoulPart24Fire = Instance.new("Fire", SoulPart24)
  1931. SoulPart24Fire.Size = 5
  1932. SoulPart24Fire.Color = Color3.new(255,255,255)
  1933. SoulPart24Fire.Heat = 0
  1934.  
  1935.  
  1936.  
  1937. SoulPart25.Parent = workspace
  1938. SoulPart25.Anchored = true
  1939. SoulPart25.Size = Vector3.new(2, 2, 2)
  1940. SoulPart25.CanCollide = true
  1941. SoulPart25.Position = Vector3.new(-27.541, 914.076, 204.917)  
  1942. SoulPart25.BrickColor = BrickColor.new("Institutional white")
  1943. SoulPart25.Material = "ForceField"
  1944. local SoulPart25Mesh = Instance.new("SpecialMesh", SoulPart25)
  1945. SoulPart25Mesh.MeshType = Enum.MeshType.Sphere
  1946. local SoulPart25Fire = Instance.new("Fire", SoulPart25)
  1947. SoulPart25Fire.Size = 5
  1948. SoulPart25Fire.Color = Color3.new(255,255,255)
  1949. SoulPart25Fire.Heat = 0
  1950.  
  1951.  
  1952.  
  1953. SoulClickDetector1.Parent = SoulPart1
  1954. SoulClickDetector1.MouseClick:connect(function()
  1955. SoulSound:Play()
  1956. SoulPart1.Position = Vector3.new(9999, 9999, 9999)
  1957. if SoulsLabel.Visible == true then
  1958. SoulsLabel.Visible = false
  1959. end
  1960. SoulsLabel.Visible = true
  1961. SoulsLabel.Text = "Souls: "..Soul.."/25"
  1962. Soul = Soul + 1
  1963. if SoulsLabel.Visible == true then
  1964. wait(5)
  1965. SoulsLabel.Visible = false
  1966. end
  1967. end)
  1968.  
  1969.  
  1970. SoulClickDetector2.Parent = SoulPart2
  1971. SoulClickDetector2.MouseClick:connect(function()
  1972. SoulSound:Play()
  1973. SoulPart2.Position = Vector3.new(9999, 9999, 9999)
  1974. if SoulsLabel.Visible == true then
  1975. SoulsLabel.Visible = false
  1976. end
  1977. SoulsLabel.Visible = true
  1978. SoulsLabel.Text = "Souls: "..Soul.."/25"
  1979. Soul = Soul + 1
  1980. if SoulsLabel.Visible == true then
  1981. wait(5)
  1982. SoulsLabel.Visible = false
  1983. end
  1984. end)
  1985.  
  1986.  
  1987. SoulClickDetector3.Parent = SoulPart3
  1988. SoulClickDetector3.MouseClick:connect(function()
  1989. SoulSound:Play()
  1990. SoulPart3.Position = Vector3.new(9999, 9999, 9999)
  1991. if SoulsLabel.Visible == true then
  1992. SoulsLabel.Visible = false
  1993. end
  1994. SoulsLabel.Visible = true
  1995. SoulsLabel.Text = "Souls: "..Soul.."/25"
  1996. Soul = Soul + 1
  1997. if SoulsLabel.Visible == true then
  1998. wait(5)
  1999. SoulsLabel.Visible = false
  2000. end
  2001. end)
  2002.  
  2003.  
  2004. SoulClickDetector4.Parent = SoulPart4
  2005. SoulClickDetector4.MouseClick:connect(function()
  2006. SoulSound:Play()
  2007. SoulPart4.Position = Vector3.new(9999, 9999, 9999)
  2008. if SoulsLabel.Visible == true then
  2009. SoulsLabel.Visible = false
  2010. end
  2011. SoulsLabel.Visible = true
  2012. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2013. Soul = Soul + 1
  2014. if SoulsLabel.Visible == true then
  2015. wait(5)
  2016. SoulsLabel.Visible = false
  2017. end
  2018. end)
  2019.  
  2020.  
  2021. SoulClickDetector5.Parent = SoulPart5
  2022. SoulClickDetector5.MouseClick:connect(function()
  2023. SoulSound:Play()
  2024. SoulPart5.Position = Vector3.new(9999, 9999, 9999)
  2025. if SoulsLabel.Visible == true then
  2026. SoulsLabel.Visible = false
  2027. end
  2028. SoulsLabel.Visible = true
  2029. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2030. Soul = Soul + 1
  2031. if SoulsLabel.Visible == true then
  2032. wait(5)
  2033. SoulsLabel.Visible = false
  2034. end
  2035. end)
  2036.  
  2037.  
  2038. SoulClickDetector6.Parent = SoulPart6
  2039. SoulClickDetector6.MouseClick:connect(function()
  2040. SoulSound:Play()
  2041. SoulPart6.Position = Vector3.new(9999, 9999, 9999)
  2042. if SoulsLabel.Visible == true then
  2043. SoulsLabel.Visible = false
  2044. end
  2045. SoulsLabel.Visible = true
  2046. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2047. Soul = Soul + 1
  2048. if SoulsLabel.Visible == true then
  2049. wait(5)
  2050. SoulsLabel.Visible = false
  2051. end
  2052. end)
  2053.  
  2054.  
  2055. SoulClickDetector7.Parent = SoulPart7
  2056. SoulClickDetector7.MouseClick:connect(function()
  2057. SoulSound:Play()
  2058. SoulPart7.Position = Vector3.new(9999, 9999, 9999)
  2059. if SoulsLabel.Visible == true then
  2060. SoulsLabel.Visible = false
  2061. end
  2062. SoulsLabel.Visible = true
  2063. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2064. Soul = Soul + 1
  2065. if SoulsLabel.Visible == true then
  2066. wait(5)
  2067. SoulsLabel.Visible = false
  2068. end
  2069. end)
  2070.  
  2071.  
  2072. SoulClickDetector8.Parent = SoulPart8
  2073. SoulClickDetector8.MouseClick:connect(function()
  2074. SoulSound:Play()
  2075. SoulPart8.Position = Vector3.new(9999, 9999, 9999)
  2076. if SoulsLabel.Visible == true then
  2077. SoulsLabel.Visible = false
  2078. end
  2079. SoulsLabel.Visible = true
  2080. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2081. Soul = Soul + 1
  2082. if SoulsLabel.Visible == true then
  2083. wait(5)
  2084. SoulsLabel.Visible = false
  2085. end
  2086. end)
  2087.  
  2088.  
  2089. SoulClickDetector9.Parent = SoulPart9
  2090. SoulClickDetector9.MouseClick:connect(function()
  2091. SoulSound:Play()
  2092. SoulPart9.Position = Vector3.new(9999, 9999, 9999)
  2093. if SoulsLabel.Visible == true then
  2094. SoulsLabel.Visible = false
  2095. end
  2096. SoulsLabel.Visible = true
  2097. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2098. Soul = Soul + 1
  2099. if SoulsLabel.Visible == true then
  2100. wait(5)
  2101. SoulsLabel.Visible = false
  2102. end
  2103. end)
  2104.  
  2105.  
  2106. SoulClickDetector10.Parent = SoulPart10
  2107. SoulClickDetector10.MouseClick:connect(function()
  2108. SoulSound:Play()
  2109. SoulPart10.Position = Vector3.new(9999, 9999, 9999)
  2110. if SoulsLabel.Visible == true then
  2111. SoulsLabel.Visible = false
  2112. end
  2113. SoulsLabel.Visible = true
  2114. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2115. Soul = Soul + 1
  2116. if SoulsLabel.Visible == true then
  2117. wait(5)
  2118. SoulsLabel.Visible = false
  2119. end
  2120. end)
  2121.  
  2122.  
  2123. SoulClickDetector11.Parent = SoulPart11
  2124. SoulClickDetector11.MouseClick:connect(function()
  2125. SoulSound:Play()
  2126. SoulPart11.Position = Vector3.new(9999, 9999, 9999)
  2127. if SoulsLabel.Visible == true then
  2128. SoulsLabel.Visible = false
  2129. end
  2130. SoulsLabel.Visible = true
  2131. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2132. Soul = Soul + 1
  2133. if SoulsLabel.Visible == true then
  2134. wait(5)
  2135. SoulsLabel.Visible = false
  2136. end
  2137. end)
  2138.  
  2139.  
  2140. SoulClickDetector12.Parent = SoulPart12
  2141. SoulClickDetector12.MouseClick:connect(function()
  2142. SoulSound:Play()
  2143. SoulPart12.Position = Vector3.new(9999, 9999, 9999)
  2144. if SoulsLabel.Visible == true then
  2145. SoulsLabel.Visible = false
  2146. end
  2147. SoulsLabel.Visible = true
  2148. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2149. Soul = Soul + 1
  2150. if SoulsLabel.Visible == true then
  2151. wait(5)
  2152. SoulsLabel.Visible = false
  2153. end
  2154. end)
  2155.  
  2156.  
  2157. SoulClickDetector13.Parent = SoulPart13
  2158. SoulClickDetector13.MouseClick:connect(function()
  2159. SoulSound:Play()
  2160. SoulPart13.Position = Vector3.new(9999, 9999, 9999)
  2161. if SoulsLabel.Visible == true then
  2162. SoulsLabel.Visible = false
  2163. end
  2164. SoulsLabel.Visible = true
  2165. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2166. Soul = Soul + 1
  2167. if SoulsLabel.Visible == true then
  2168. wait(5)
  2169. SoulsLabel.Visible = false
  2170. end
  2171. end)
  2172.  
  2173.  
  2174. SoulClickDetector14.Parent = SoulPart14
  2175. SoulClickDetector14.MouseClick:connect(function()
  2176. SoulSound:Play()
  2177. SoulPart14.Position = Vector3.new(9999, 9999, 9999)
  2178. if SoulsLabel.Visible == true then
  2179. SoulsLabel.Visible = false
  2180. end
  2181. SoulsLabel.Visible = true
  2182. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2183. Soul = Soul + 1
  2184. if SoulsLabel.Visible == true then
  2185. wait(5)
  2186. SoulsLabel.Visible = false
  2187. end
  2188. end)
  2189.  
  2190.  
  2191. SoulClickDetector15.Parent = SoulPart15
  2192. SoulClickDetector15.MouseClick:connect(function()
  2193. SoulSound:Play()
  2194. SoulPart15.Position = Vector3.new(9999, 9999, 9999)
  2195. if SoulsLabel.Visible == true then
  2196. SoulsLabel.Visible = false
  2197. end
  2198. SoulsLabel.Visible = true
  2199. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2200. Soul = Soul + 1
  2201. if SoulsLabel.Visible == true then
  2202. wait(5)
  2203. SoulsLabel.Visible = false
  2204. end
  2205. end)
  2206.  
  2207.  
  2208. SoulClickDetector16.Parent = SoulPart16
  2209. SoulClickDetector16.MouseClick:connect(function()
  2210. SoulSound:Play()
  2211. SoulPart16.Position = Vector3.new(9999, 9999, 9999)
  2212. if SoulsLabel.Visible == true then
  2213. SoulsLabel.Visible = false
  2214. end
  2215. SoulsLabel.Visible = true
  2216. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2217. Soul = Soul + 1
  2218. if SoulsLabel.Visible == true then
  2219. wait(5)
  2220. SoulsLabel.Visible = false
  2221. end
  2222. end)
  2223.  
  2224.  
  2225. SoulClickDetector17.Parent = SoulPart17
  2226. SoulClickDetector17.MouseClick:connect(function()
  2227. SoulSound:Play()
  2228. SoulPart17.Position = Vector3.new(9999, 9999, 9999)
  2229. if SoulsLabel.Visible == true then
  2230. SoulsLabel.Visible = false
  2231. end
  2232. SoulsLabel.Visible = true
  2233. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2234. Soul = Soul + 1
  2235. if SoulsLabel.Visible == true then
  2236. wait(5)
  2237. SoulsLabel.Visible = false
  2238. end
  2239. end)
  2240.  
  2241.  
  2242. SoulClickDetector18.Parent = SoulPart18
  2243. SoulClickDetector18.MouseClick:connect(function()
  2244. SoulSound:Play()
  2245. SoulPart18.Position = Vector3.new(9999, 9999, 9999)
  2246. if SoulsLabel.Visible == true then
  2247. SoulsLabel.Visible = false
  2248. end
  2249. SoulsLabel.Visible = true
  2250. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2251. Soul = Soul + 1
  2252. if SoulsLabel.Visible == true then
  2253. wait(5)
  2254. SoulsLabel.Visible = false
  2255. end
  2256. end)
  2257.  
  2258.  
  2259. SoulClickDetector19.Parent = SoulPart19
  2260. SoulClickDetector19.MouseClick:connect(function()
  2261. SoulSound:Play()
  2262. SoulPart19.Position = Vector3.new(9999, 9999, 9999)
  2263. if SoulsLabel.Visible == true then
  2264. SoulsLabel.Visible = false
  2265. end
  2266. SoulsLabel.Visible = true
  2267. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2268. Soul = Soul + 1
  2269. if SoulsLabel.Visible == true then
  2270. wait(5)
  2271. SoulsLabel.Visible = false
  2272. end
  2273. end)
  2274.  
  2275.  
  2276. SoulClickDetector20.Parent = SoulPart20
  2277. SoulClickDetector20.MouseClick:connect(function()
  2278. SoulSound:Play()
  2279. SoulPart20.Position = Vector3.new(9999, 9999, 9999)
  2280. if SoulsLabel.Visible == true then
  2281. SoulsLabel.Visible = false
  2282. end
  2283. SoulsLabel.Visible = true
  2284. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2285. Soul = Soul + 1
  2286. if SoulsLabel.Visible == true then
  2287. wait(5)
  2288. SoulsLabel.Visible = false
  2289. end
  2290. end)
  2291.  
  2292.  
  2293. SoulClickDetector21.Parent = SoulPart21
  2294. SoulClickDetector21.MouseClick:connect(function()
  2295. SoulSound:Play()
  2296. SoulPart21.Position = Vector3.new(9999, 9999, 9999)
  2297. if SoulsLabel.Visible == true then
  2298. SoulsLabel.Visible = false
  2299. end
  2300. SoulsLabel.Visible = true
  2301. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2302. Soul = Soul + 1
  2303. if SoulsLabel.Visible == true then
  2304. wait(5)
  2305. SoulsLabel.Visible = false
  2306. end
  2307. end)
  2308.  
  2309.  
  2310. SoulClickDetector22.Parent = SoulPart22
  2311. SoulClickDetector22.MouseClick:connect(function()
  2312. SoulSound:Play()
  2313. SoulPart22.Position = Vector3.new(9999, 9999, 9999)
  2314. if SoulsLabel.Visible == true then
  2315. SoulsLabel.Visible = false
  2316. end
  2317. SoulsLabel.Visible = true
  2318. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2319. Soul = Soul + 1
  2320. if SoulsLabel.Visible == true then
  2321. wait(5)
  2322. SoulsLabel.Visible = false
  2323. end
  2324. end)
  2325.  
  2326.  
  2327. SoulClickDetector23.Parent = SoulPart23
  2328. SoulClickDetector23.MouseClick:connect(function()
  2329. SoulSound:Play()
  2330. SoulPart23.Position = Vector3.new(9999, 9999, 9999)
  2331. if SoulsLabel.Visible == true then
  2332. SoulsLabel.Visible = false
  2333. end
  2334. SoulsLabel.Visible = true
  2335. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2336. Soul = Soul + 1
  2337. if SoulsLabel.Visible == true then
  2338. wait(5)
  2339. SoulsLabel.Visible = false
  2340. end
  2341. end)
  2342.  
  2343.  
  2344. SoulClickDetector24.Parent = SoulPart24
  2345. SoulClickDetector24.MouseClick:connect(function()
  2346. SoulSound:Play()
  2347. SoulPart24.Position = Vector3.new(9999, 9999, 9999)
  2348. if SoulsLabel.Visible == true then
  2349. SoulsLabel.Visible = false
  2350. end
  2351. SoulsLabel.Visible = true
  2352. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2353. Soul = Soul + 1
  2354. if SoulsLabel.Visible == true then
  2355. wait(5)
  2356. SoulsLabel.Visible = false
  2357. end
  2358. end)
  2359.  
  2360.  
  2361. SoulClickDetector25.Parent = SoulPart25
  2362. SoulClickDetector25.MouseClick:connect(function()
  2363. SoulSound:Play()
  2364. SoulPart25.Position = Vector3.new(9999, 9999, 9999)
  2365. if SoulsLabel.Visible == true then
  2366. SoulsLabel.Visible = false
  2367. end
  2368. SoulsLabel.Visible = true
  2369. SoulsLabel.Text = "Souls: "..Soul.."/25"
  2370. Soul = Soul + 1
  2371. if SoulsLabel.Visible == true then
  2372. wait(5)
  2373. SoulsLabel.Visible = false
  2374. end
  2375. end)
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.  
  2387.  
  2388. local RunButton = Instance.new("ImageButton")
  2389. local Stamina = Instance.new("Frame")
  2390. local RunButtonUICorner = Instance.new("UICorner")
  2391. local StaminaUICorner = Instance.new("UICorner")
  2392. local UserInputService = game:GetService("UserInputService")
  2393. local stamina = 20
  2394. local running = false
  2395. cam.CameraType = Enum.CameraType.Attach
  2396. cam.CameraSubject = CameraPart
  2397. local BreathSound = Instance.new("Sound")
  2398. local Id = "6814463121"
  2399. BreathSound.Parent = game.Workspace
  2400. BreathSound.SoundId = "rbxassetid://"..Id
  2401. BreathSound.Playing = true
  2402. BreathSound.Looped = true
  2403. BreathSound.Volume = 1
  2404. BreathSound:Stop()
  2405. stamina = math.clamp(stamina,0,28)
  2406. Stamina.Name = "Stamina"
  2407. Stamina.Parent = ScreenGui
  2408. Stamina.Position = UDim2.new(0, 0, 0.95, 0)
  2409. Stamina.Size = UDim2.new(stamina/20,0,0.02,0)
  2410. Stamina.BackgroundColor3 = Color3.new(0, 222, 0)
  2411. Stamina.BorderSizePixel = 0
  2412. Stamina.BackgroundTransparency = 0.5
  2413. RunButton.Name = "RunButton"
  2414. RunButton.Parent = ScreenGui
  2415. RunButton.Position = UDim2.new(0.9, 0, 0.7, 0)
  2416. RunButton.Size = UDim2.new(0, 50, 0, 50)
  2417. RunButton.BackgroundColor3 = Color3.new(255, 255, 255)
  2418. RunButton.Image = "rbxassetid://15527612616"
  2419. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  2420. local G = 222
  2421. local R = 222
  2422. RunButton.MouseButton1Down:connect(function()
  2423. if RunButton.Image == "rbxassetid://15527612616" then
  2424. RunButton.Image = "rbxassetid://15527570851"
  2425. running = true
  2426.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20
  2427.         while stamina > 0 and running do
  2428.             stamina = stamina - 0.05
  2429.             Stamina.BackgroundColor3 = Color3.new(0, zigzag(G), 0)
  2430.             G = G - 0.05
  2431.             Stamina:TweenSize(UDim2.new(stamina/ 20,0,0.02,0), "Out","Linear",0)
  2432. wait()
  2433.             if stamina < 1 then
  2434.                 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
  2435.             end
  2436.         end
  2437. if stamina < 8 then
  2438. BreathSound:Play()
  2439.  
  2440. else
  2441. if stamina > 8 then
  2442. BreathSound:Stop()
  2443.  
  2444. end
  2445. end
  2446. else
  2447. if RunButton.Image == "rbxassetid://15527570851" then
  2448. RunButton.Image = "rbxassetid://15527612616"
  2449. running = false
  2450.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
  2451.         while stamina < 20 and not running do
  2452.             stamina = stamina + 0.05
  2453. Stamina.BackgroundColor3 = Color3.new(zigzag(R), 0, 0)
  2454.             R = R - 0.05
  2455.             Stamina:TweenSize(UDim2.new(stamina/20,0,0.02,0), "Out","Linear",0)
  2456.            wait()
  2457.             if stamina < 1 then
  2458.                 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
  2459.  Stamina.BackgroundColor3 = Color3.new(222, 0, 0)
  2460.             end
  2461. if stamina == 20 and not running then
  2462. Stamina.BackgroundColor3 = Color3.new(0, 222, 0)
  2463. end
  2464. end
  2465.  
  2466. if stamina < 8 then
  2467. BreathSound:Play()
  2468. else
  2469. if stamina > 8 then
  2470. BreathSound:Stop()
  2471. end
  2472. end
  2473. end
  2474. end
  2475. end)
  2476. RunButtonUICorner.Name = "RunButtonUICorner"
  2477. RunButtonUICorner.Parent = RunButton
  2478. RunButtonUICorner.CornerRadius = UDim.new(1, 1)
  2479. StaminaUICorner.Name = "StaminaUICorner"
  2480. StaminaUICorner.Parent = Stamina
  2481. RunButton.Visible = false
  2482. Stamina.Visible = false
  2483. local lighting = game:GetService("Lighting")
  2484. lighting.FogEnd = 30
  2485. lighting.FogColor = Color3.new(0, 0, 0)
  2486. lighting.TimeOfDay = 0
  2487. local PlayButton = Instance.new("TextButton")
  2488. local MenuButton = Instance.new("TextButton")
  2489. local OptionButton = Instance.new("TextButton")
  2490. local LeaveButton = Instance.new("TextButton")
  2491. local EasyButton = Instance.new("TextButton")
  2492. local MediumButton = Instance.new("TextButton")
  2493. local HardButton = Instance.new("TextButton")
  2494. local Chapter = Instance.new("TextLabel")
  2495. local WinLabel = Instance.new("TextLabel")
  2496. local YouDiedLabel = Instance.new("TextLabel")
  2497. local BackButton = Instance.new("TextButton")
  2498. local ClickSound = Instance.new("Sound")
  2499. local Id = "9113651501"
  2500.  
  2501. ClickSound.Parent = game.Workspace
  2502. ClickSound.SoundId = "rbxassetid://"..Id
  2503. ClickSound.Playing = true
  2504. ClickSound.Looped = false
  2505. ClickSound.Volume = 1
  2506. ClickSound:Stop()
  2507.  
  2508.  
  2509. Chapter.Parent = ScreenGui
  2510. Chapter.BackgroundTransparency = 1
  2511. Chapter.Size = UDim2.new(2, 0, 2, 0)
  2512. Chapter.Position = UDim2.new(-3, 0, -0.6 ,0)
  2513. Chapter.TextXAlignment = Enum.TextXAlignment.Center
  2514. Chapter.TextScaled = true
  2515. Chapter.Text = "My nightmare 3"
  2516. Chapter.TextColor3 = Color3.new(255, 255, 255)
  2517. Chapter.Font = Enum.Font.IndieFlower
  2518.  
  2519.  
  2520. PlayButton.Name = "PlayButton"
  2521. PlayButton.Parent = ScreenGui
  2522. PlayButton.BackgroundTransparency = 1
  2523. PlayButton.Position = UDim2.new(-0.8, 0, 0.15, 0)
  2524. PlayButton.Size = UDim2.new(0, 125, 0, 50)
  2525. PlayButton.Font = Enum.Font.IndieFlower
  2526. PlayButton.Text = "Play"
  2527. PlayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  2528. PlayButton.TextSize = 100
  2529.  
  2530. MenuButton.Name = "MenuButton"
  2531. MenuButton.Parent = ScreenGui
  2532. MenuButton.BackgroundTransparency = 1
  2533. MenuButton.Position = UDim2.new(0.85, 0, 0.05, 0)
  2534. MenuButton.Size = UDim2.new(0, 125, 0, 50)
  2535. MenuButton.Font = Enum.Font.IndieFlower
  2536. MenuButton.Text = "Menu"
  2537. MenuButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  2538. MenuButton.TextSize = 55
  2539.  
  2540. MenuButton.Visible = false
  2541.  
  2542. WinLabel.Name = "WinLabel"
  2543. WinLabel.Parent = ScreenGui
  2544. WinLabel.BackgroundTransparency = 1
  2545. WinLabel.Position = UDim2.new(0.45, 0, 1, 0)
  2546. WinLabel.Size = UDim2.new(0, 125, 0, 50)
  2547. WinLabel.Font = Enum.Font.IndieFlower
  2548. WinLabel.Text = "You Won!"
  2549. WinLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  2550. WinLabel.TextSize = 100
  2551.  
  2552. WinLabel.Visible = false
  2553.  
  2554. YouDiedLabel.Name = "YouDiedLabel"
  2555. YouDiedLabel.Parent = ScreenGui
  2556. YouDiedLabel.BackgroundTransparency = 1
  2557. YouDiedLabel.Position = UDim2.new(0.45, 0, 1, 0)
  2558. YouDiedLabel.Size = UDim2.new(0, 125, 0, 50)
  2559. YouDiedLabel.Font = Enum.Font.IndieFlower
  2560. YouDiedLabel.Text = "You Died"
  2561. YouDiedLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  2562. YouDiedLabel.TextSize = 100
  2563.  
  2564. YouDiedLabel.Visible = false
  2565.  
  2566. EasyButton.Visible = false
  2567. MediumButton.Visible = false
  2568. HardButton.Visible = false
  2569. BackButton.Visible = false
  2570.  
  2571. OptionButton.Name = "OptionButton"
  2572. OptionButton.Parent = ScreenGui
  2573. OptionButton.BackgroundTransparency = 1
  2574. OptionButton.Position = UDim2.new(-0.8, 0, 0.4, 0)
  2575. OptionButton.Size = UDim2.new(0, 125, 0, 50)
  2576. OptionButton.Font = Enum.Font.IndieFlower
  2577. OptionButton.Text = "Options"
  2578. OptionButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  2579. OptionButton.TextSize = 100
  2580. OptionButton.MouseButton1Down:connect(function()
  2581. ClickSound:Play()
  2582. EasyButton.Visible = true
  2583. MediumButton.Visible = true
  2584. HardButton.Visible = true
  2585. BackButton.Visible = true
  2586. PlayButton:TweenPosition(UDim2.new(-0.8, 0, 0.15, 0), 'Out', 4, true)
  2587. wait(0.1)
  2588. OptionButton:TweenPosition(UDim2.new(-0.8, 0, 0.4, 0), 'Out', 4, true)
  2589. wait(0.1)
  2590. LeaveButton:TweenPosition(UDim2.new(-0.8, 0, 0.65, 0), 'Out', 4, true)
  2591. wait(0.5)
  2592. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.9 ,0), 'Out', 4, true)
  2593. wait(0.5)
  2594. EasyButton:TweenPosition(UDim2.new(0.1, 0, 0.4, 0), 'Out', 4, true)
  2595. wait(0.1)
  2596. MediumButton:TweenPosition(UDim2.new(0.45, 0, 0.4, 0), 'Out', 4, true)
  2597. wait(0.1)
  2598. HardButton:TweenPosition(UDim2.new(0.75, 0, 0.4, 0), 'Out', 4, true)
  2599. BackButton.Position = UDim2.new(0.45, 0, 0.8, 0)
  2600. end)
  2601.  
  2602. LeaveButton.Name = "LeaveButton"
  2603. LeaveButton.Parent = ScreenGui
  2604. LeaveButton.BackgroundTransparency = 1
  2605. LeaveButton.Position = UDim2.new(-0.8, 0, 0.65, 0)
  2606. LeaveButton.Size = UDim2.new(0, 125, 0, 50)
  2607. LeaveButton.Font = Enum.Font.IndieFlower
  2608. LeaveButton.Text = "Leave"
  2609. LeaveButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  2610. LeaveButton.TextSize = 100
  2611. LeaveButton.MouseButton1Down:connect(function()
  2612. ClickSound:Play()
  2613. game.Players.LocalPlayer:Kick("Game Over")
  2614. end)
  2615.  
  2616. EasyButton.Name = "EasyButton"
  2617. EasyButton.Parent = ScreenGui
  2618. EasyButton.BackgroundTransparency = 1
  2619. EasyButton.Position = UDim2.new(0.1, 0, 1, 0)
  2620. EasyButton.Size = UDim2.new(0, 125, 0, 50)
  2621. EasyButton.Font = Enum.Font.IndieFlower
  2622. EasyButton.Text = ">>Easy<<"
  2623. EasyButton.TextColor3 = Color3.fromRGB(0, 255, 0)
  2624. EasyButton.TextSize = 100
  2625. EasyButton.MouseButton1Down:connect(function()
  2626. ClickSound:Play()
  2627. EasyButton.Text = ">>Easy<<"
  2628. MediumButton.Text = "Medium"
  2629. HardButton.Text = "Hard"
  2630. Humanoid18.WalkSpeed = 16
  2631. end)
  2632.  
  2633. MediumButton.Name = "MediumButton"
  2634. MediumButton.Parent = ScreenGui
  2635. MediumButton.BackgroundTransparency = 1
  2636. MediumButton.Position = UDim2.new(0.45, 0, 1, 0)
  2637. MediumButton.Size = UDim2.new(0, 125, 0, 50)
  2638. MediumButton.Font = Enum.Font.IndieFlower
  2639. MediumButton.Text = "Medium"
  2640. MediumButton.TextColor3 = Color3.fromRGB(255, 155, 0)
  2641. MediumButton.TextSize = 100
  2642. MediumButton.MouseButton1Down:connect(function()
  2643. ClickSound:Play()
  2644. EasyButton.Text = "Easy"
  2645. MediumButton.Text = ">>Medium<<"
  2646. HardButton.Text = "Hard"
  2647. Humanoid18.WalkSpeed = 50
  2648. end)
  2649.  
  2650. HardButton.Name = "HardButton"
  2651. HardButton.Parent = ScreenGui
  2652. HardButton.BackgroundTransparency = 1
  2653. HardButton.Position = UDim2.new(0.75, 0, 1, 0)
  2654. HardButton.Size = UDim2.new(0, 125, 0, 50)
  2655. HardButton.Font = Enum.Font.IndieFlower
  2656. HardButton.Text = "Hard"
  2657. HardButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  2658. HardButton.TextSize = 100
  2659. HardButton.MouseButton1Down:connect(function()
  2660. ClickSound:Play()
  2661. EasyButton.Text = "Easy"
  2662. MediumButton.Text = "Medium"
  2663. HardButton.Text = ">>Hard<<"
  2664. Humanoid18.WalkSpeed = 100
  2665. end)
  2666.  
  2667. BackButton.Name = "BackButton"
  2668. BackButton.Parent = ScreenGui
  2669. BackButton.BackgroundTransparency = 1
  2670. BackButton.Position = UDim2.new(0.45, 0, 1, 0)
  2671. BackButton.Size = UDim2.new(0, 125, 0, 50)
  2672. BackButton.Font = Enum.Font.IndieFlower
  2673. BackButton.Text = "Back"
  2674. BackButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  2675. BackButton.TextSize = 100
  2676. BackButton.MouseButton1Down:connect(function()
  2677. BackButton.Position = UDim2.new(0.45, 0, 1, 0)
  2678. ClickSound:Play()
  2679. HardButton:TweenPosition(UDim2.new(0.75, 0, 1, 0), 'Out', 4, true)
  2680. wait(0.1)
  2681. MediumButton:TweenPosition(UDim2.new(0.45, 0, 1, 0), 'Out', 4, true)
  2682. wait(0.1)
  2683. EasyButton:TweenPosition(UDim2.new(0.1, 0, 1, 0), 'Out', 4, true)
  2684. wait(0.5)
  2685. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  2686. wait(0.5)
  2687. PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
  2688. wait(0.1)
  2689. OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
  2690. wait(0.1)
  2691. LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
  2692. wait(0.5)
  2693. EasyButton.Visible = false
  2694. MediumButton.Visible = false
  2695. HardButton.Visible = false
  2696. BackButton.Visible = false
  2697. end)
  2698.  
  2699. PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
  2700. wait(0.1)
  2701. OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
  2702. wait(0.1)
  2703. LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
  2704. wait(0.5)
  2705. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  2706.  
  2707. PlayButton.MouseButton1Down:connect(function()
  2708. ClickSound:Play()
  2709. PlayButton.Visible = false
  2710. OptionButton.Visible = false
  2711. LeaveButton.Visible = false
  2712. PlayButton:TweenPosition(UDim2.new(-0.8, 0, 0.15, 0), 'Out', 4, true)
  2713. wait(0.1)
  2714. OptionButton:TweenPosition(UDim2.new(-0.8, 0, 0.4, 0), 'Out', 4, true)
  2715. wait(0.1)
  2716. LeaveButton:TweenPosition(UDim2.new(-0.8, 0, 0.65, 0), 'Out', 4, true)
  2717. wait(0.5)
  2718. Chapter:TweenPosition(UDim2.new(-3, 0, -0.6 ,0), 'Out', 4, true)
  2719. SoulPart1.Position = Vector3.new(-17.272, 910.659, 189.895)
  2720. SoulPart2.Position = Vector3.new(-34.207, 906.978, 229.859)
  2721. SoulPart3.Position = Vector3.new(-116.122, 908.978, 264.69)  
  2722. SoulPart4.Position = Vector3.new(-140.741, 908.978, 304.415)  
  2723. SoulPart5.Position = Vector3.new(-105.639, 907.978, 131.407)  
  2724. SoulPart6.Position = Vector3.new(38.775, 911.424, 121.79)  
  2725. SoulPart7.Position = Vector3.new(53.61, 907.978, 195.923)  
  2726. SoulPart8.Position = Vector3.new(53.84, 907.978, 330.798)  
  2727. SoulPart9.Position = Vector3.new(16.481, 907.978, 313.223)
  2728. SoulPart10.Position = Vector3.new(-20.907, 907.978, 335.521)  
  2729. SoulPart11.Position = Vector3.new(-35.205, 910.532, 304.006)  
  2730. SoulPart12.Position = Vector3.new(-60.018, 908.003, 270.883)  
  2731. SoulPart13.Position = Vector3.new(-146.327, 907.978, 269.73)  
  2732. SoulPart14.Position = Vector3.new(24.117, 907.978, 205.102)  
  2733. SoulPart15.Position = Vector3.new(-116.44, 906.978, 207.709)  
  2734. SoulPart16.Position = Vector3.new(-148.776, 907.978, 167.948)  
  2735. SoulPart17.Position = Vector3.new(-40.15, 908.003, 103.196)  
  2736. SoulPart18.Position = Vector3.new(57.8, 908.978, 107.934)  
  2737. SoulPart19.Position = Vector3.new(-52.715, 907.978, 184.988)  
  2738. SoulPart20.Position = Vector3.new(-48.748, 910.483, 255.352)
  2739. SoulPart21.Position = Vector3.new(-84.419, 908.003, 198.947)
  2740. SoulPart22.Position = Vector3.new(58.289, 913.177, 320.731)
  2741. SoulPart23.Position = Vector3.new(56.853, 913.149, 151.803)  
  2742. SoulPart24.Position = Vector3.new(-151.096, 913.862, 338.621)
  2743. SoulPart25.Position = Vector3.new(-27.541, 914.076, 204.917)  
  2744. SoulPart1.Anchored = true
  2745. SoulPart2.Anchored = true
  2746. SoulPart3.Anchored = true
  2747. SoulPart4.Anchored = true
  2748. SoulPart5.Anchored = true
  2749. SoulPart6.Anchored = true
  2750. SoulPart7.Anchored = true
  2751. SoulPart8.Anchored = true
  2752. SoulPart9.Anchored = true
  2753. SoulPart10.Anchored = true
  2754. SoulPart11.Anchored = true
  2755. SoulPart12.Anchored = true
  2756. SoulPart13.Anchored = true
  2757. SoulPart14.Anchored = true
  2758. SoulPart15.Anchored = true
  2759. SoulPart16.Anchored = true
  2760. SoulPart17.Anchored = true
  2761. SoulPart18.Anchored = true
  2762. SoulPart19.Anchored = true
  2763. SoulPart20.Anchored = true
  2764. SoulPart21.Anchored = true
  2765. SoulPart22.Anchored = true
  2766. SoulPart23.Anchored = true
  2767. SoulPart24.Anchored = true
  2768. SoulPart25.Anchored = true
  2769. Soul = 1
  2770. EyeImage.Visible = true
  2771. EyesLabel.Visible = true
  2772. Chapter.Visible = false
  2773. WinLabel.Visible = false
  2774. YouDiedLabel.Visible = false
  2775. EasyButton.Visible = false
  2776. MediumButton.Visible = false
  2777. HardButton.Visible = false
  2778. BackButton.Visible = false
  2779. RunButton.Visible = true
  2780. Stamina.Visible = true
  2781. MenuButton.Visible = true
  2782. Eye = 9
  2783. EyesLabel.Text = "X10"
  2784. IntroMusic:Stop()
  2785. Part11.Position = Vector3.new(-145.023, -999999999, 334.575)
  2786. for i = 1,1 do
  2787. createZombie()
  2788. Part11.Position = Vector3.new(-145.023, 910.978, 334.575)
  2789. end
  2790. SafeFromNightmare.Position = Vector3.new(-11.423, 9999999999999999999, 203.419)
  2791. cam.CameraType = Enum.CameraType.Track
  2792. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
  2793. cam.CameraSubject = character
  2794. Spawn1 = math.random(1,3)
  2795. if Spawn1 == 1 then
  2796. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-9.374, 907.978, 192.706)
  2797. end
  2798. if Spawn1 == 2 then
  2799. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-39.409, 907.978, 239.274)
  2800. end
  2801. if Spawn1 == 3 then
  2802. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(49.186, 907.978, 134.986)
  2803. end
  2804. local MaterialSounds =
  2805.     {
  2806.         [Enum.Material.Grass] = "rbxassetid://507863105",
  2807.         [Enum.Material.Metal] = "rbxassetid://944089664",
  2808.         [Enum.Material.DiamondPlate] = "rbxassetid://944075408",
  2809.         [Enum.Material.Pebble] = "rbxassetid://944090255",
  2810.         [Enum.Material.Wood] = "rbxassetid://944075408",
  2811.         [Enum.Material.WoodPlanks] = "rbxassetid://944075408",
  2812.         [Enum.Material.Plastic] = "rbxassetid://944075408",
  2813.         [Enum.Material.SmoothPlastic] = "rbxassetid://944075408",
  2814.         [Enum.Material.Sand] = "rbxassetid://944090255",
  2815.         [Enum.Material.Brick] = "rbxassetid://4981969796",
  2816.         [Enum.Material.Cobblestone] = "rbxassetid://4981969796",
  2817.         [Enum.Material.Concrete] = "rbxassetid://944075408",
  2818.         [Enum.Material.CorrodedMetal] = "rbxassetid://4981969796",
  2819.         [Enum.Material.Fabric] = "rbxassetid://4981969796",
  2820.         [Enum.Material.Foil] = "rbxassetid://4981969796",
  2821.         [Enum.Material.ForceField] = "rbxassetid://4981969796",
  2822.         [Enum.Material.Glass] = "rbxassetid://944075408",
  2823.         [Enum.Material.Granite] = "rbxassetid://944075408",
  2824.         [Enum.Material.Ice] = "rbxassetid://4981969796",
  2825.         [Enum.Material.Marble] = "rbxassetid://944075408",
  2826.         [Enum.Material.Neon] = "rbxassetid://4981969796",
  2827.         [Enum.Material.Slate] = "rbxassetid://944075408",
  2828.     }
  2829.  
  2830. local Character = game.Players.LocalPlayer.Character
  2831. local Humanoid = Character:WaitForChild("Humanoid")
  2832. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  2833. local FootStepsSound = HumanoidRootPart:WaitForChild("Running")
  2834.  
  2835. Humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
  2836.     local FloorMaterial = Humanoid.FloorMaterial
  2837.     local Sound = MaterialSounds[FloorMaterial]
  2838.     if Sound then
  2839.         FootStepsSound.SoundId = Sound
  2840.     else
  2841.         FootStepsSound.SoundId = "rbxasset://sounds/action_footsteps_plastic.mp3"
  2842.     end
  2843. end)
  2844. local L = game:GetService("Lighting") L.ClockTime = 0
  2845. function sandbox(var,func)
  2846.     local env = getfenv(func)
  2847.     local newenv = setmetatable({},{
  2848.         __index = function(self,k)
  2849.             if k=="script" then
  2850.                 return var
  2851.             else
  2852.                 return env[k]
  2853.             end
  2854.         end,
  2855.     })
  2856.     setfenv(func,newenv)
  2857.     return func
  2858. end
  2859. cors = {}
  2860. mas = Instance.new("Model",game:GetService("Lighting"))
  2861. Tool0 = Instance.new("Tool")
  2862. Part1 = Instance.new("Part")
  2863. Sound2 = Instance.new("Sound")
  2864. SpecialMesh3 = Instance.new("SpecialMesh")
  2865. SpotLight4 = Instance.new("SpotLight")
  2866. LocalScript5 = Instance.new("LocalScript")
  2867. LocalScript6 = Instance.new("LocalScript")
  2868. ModuleScript7 = Instance.new("ModuleScript")
  2869. Tool0.Name = "Flashlight"
  2870. Tool0.Parent = mas
  2871. Tool0.TextureId = "http://www.roblox.com/asset/?id=115955232"
  2872. Tool0.Grip = CFrame.new(0.100000001, -0.400000006, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2873. Tool0.GripPos = Vector3.new(0.10000000149011612, -0.4000000059604645, 0)
  2874. Tool0.ToolTip = "Flashlight"
  2875. Part1.Name = "Handle"
  2876. Part1.Parent = Tool0
  2877. Part1.CFrame = CFrame.new(10.9154053, 0.25, -18.9892578, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2878. Part1.Orientation = Vector3.new(0, 90, 0)
  2879. Part1.Position = Vector3.new(10.9154052734375, 0.25, -18.9892578125)
  2880. Part1.Rotation = Vector3.new(0, 90, 0)
  2881. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  2882. Part1.Size = Vector3.new(0.5, 0.5, 2)
  2883. Part1.BottomSurface = Enum.SurfaceType.Smooth
  2884. Part1.BrickColor = BrickColor.new("Bright yellow")
  2885. Part1.TopSurface = Enum.SurfaceType.Smooth
  2886. Part1.brickColor = BrickColor.new("Bright yellow")
  2887. Part1.FormFactor = Enum.FormFactor.Custom
  2888. Part1.formFactor = Enum.FormFactor.Custom
  2889. Sound2.Parent = Part1
  2890. Sound2.SoundId = "http://www.roblox.com/asset/?id=115959318"
  2891. Sound2.Volume = 1
  2892. SpecialMesh3.Parent = Part1
  2893. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=115955313"
  2894. SpecialMesh3.Scale = Vector3.new(0.699999988079071, 0.699999988079071, 0.699999988079071)
  2895. SpecialMesh3.TextureId = "http://www.roblox.com/asset?id=115955343"
  2896. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  2897. SpotLight4.Parent = Part1
  2898. SpotLight4.Enabled = false
  2899. SpotLight4.Range = 100
  2900. SpotLight4.Brightness = 50
  2901. SpotLight4.Shadows = true
  2902. LocalScript5.Parent = Tool0
  2903. table.insert(cors,sandbox(LocalScript5,function()
  2904. player = game.Players.LocalPlayer
  2905. tool = script.Parent
  2906.  
  2907. repeat wait() until player
  2908.  
  2909. tool.Equipped:connect(function(mouse)
  2910.     mouse.Button1Down:connect(function()
  2911.         tool.Handle.SpotLight.Enabled = not tool.Handle.SpotLight.Enabled
  2912.         tool.Handle.Sound:Play()
  2913.     end)
  2914. end)
  2915. end))
  2916. LocalScript6.Parent = Tool0
  2917. table.insert(cors,sandbox(LocalScript6,function()
  2918. -- Variables for services
  2919. local render = game:GetService("RunService").RenderStepped
  2920. local contextActionService = game:GetService("ContextActionService")
  2921. local userInputService = game:GetService("UserInputService")
  2922.  
  2923. local player = game.Players.LocalPlayer
  2924. local mouse = player:GetMouse()
  2925. local Tool = script.Parent
  2926.  
  2927. -- Variables for Module Scripts
  2928. local screenSpace = require(Tool:WaitForChild("ScreenSpace"))
  2929.  
  2930. local connection
  2931.  
  2932. local neck, shoulder, oldNeckC0, oldShoulderC0
  2933.  
  2934. local mobileShouldTrack = true
  2935.  
  2936. -- Thourough check to see if a character is sitting
  2937. local function amISitting(character)
  2938.     local t = character.Torso
  2939.     for _, part in pairs(t:GetConnectedParts(true)) do
  2940.         if part:IsA("Seat") or part:IsA("VehicleSeat") then
  2941.             return true
  2942.         end
  2943.     end
  2944. end
  2945.  
  2946.  
  2947.  
  2948. local function frame(mousePosition)
  2949.    
  2950.     if not mobileShouldTrack then return end
  2951.    
  2952.    
  2953.     if player.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Swimming then
  2954.         local torso = player.Character.Torso
  2955.         local head = player.Character.Head
  2956.        
  2957.         local toMouse = (mousePosition - head.Position).unit
  2958.         local angle = math.acos(toMouse:Dot(Vector3.new(0,1,0)))
  2959.        
  2960.         local neckAngle = angle
  2961.    
  2962.         -- Limit how much the head can tilt down. Too far and the head looks unnatural
  2963.         if math.deg(neckAngle) > 110 then
  2964.             neckAngle = math.rad(110)
  2965.         end
  2966.         neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.pi - neckAngle,math.pi,0)
  2967.        
  2968.         -- Calculate horizontal rotation
  2969.         local arm = player.Character:FindFirstChild("Right Arm")
  2970.         local fromArmPos = torso.Position + torso.CFrame:vectorToWorldSpace(Vector3.new(
  2971.             torso.Size.X/2 + arm.Size.X/2, torso.Size.Y/2 - arm.Size.Z/2, 0))
  2972.         local toMouseArm = ((mousePosition - fromArmPos) * Vector3.new(1,0,1)).unit
  2973.         local look = (torso.CFrame.lookVector * Vector3.new(1,0,1)).unit
  2974.         local lateralAngle = math.acos(toMouseArm:Dot(look))       
  2975.        
  2976.        
  2977.         if tostring(lateralAngle) == "-1.#IND" then
  2978.             lateralAngle = 0
  2979.         end    
  2980.        
  2981.        
  2982.         if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then          
  2983.            
  2984.             local cross = torso.CFrame.lookVector:Cross(toMouseArm)
  2985.             if lateralAngle > math.pi/2 then
  2986.                 lateralAngle = math.pi/2
  2987.             end
  2988.             if cross.Y < 0 then
  2989.                 lateralAngle = -lateralAngle
  2990.             end
  2991.         end
  2992.        
  2993.         -- Turn shoulder to point to mouse
  2994.         shoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(math.pi/2 - angle,math.pi/2 + lateralAngle,0)
  2995.        
  2996.         -- If not sitting then aim torso laterally towards mouse
  2997.         if not amISitting(player.Character) then
  2998.             torso.CFrame = CFrame.new(torso.Position, torso.Position + (Vector3.new(
  2999.                 mousePosition.X, torso.Position.Y, mousePosition.Z)-torso.Position).unit)
  3000.         end
  3001.     end
  3002. end
  3003.  
  3004. -- Function to bind to render stepped if player is on PC
  3005. local function pcFrame()
  3006.     frame(mouse.Hit.p)
  3007. end
  3008.  
  3009. -- Function to bind to touch moved if player is on mobile
  3010. local function mobileFrame(touch, processed)
  3011.     -- Check to see if the touch was on a UI element. If so, we don't want to update anything
  3012.     if not processed then
  3013.         -- Calculate touch position in world space. Uses Stravant's ScreenSpace Module script
  3014.         -- to create a ray from the camera.
  3015.         local test = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1)
  3016.         local nearPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y, 1))
  3017.         nearPos = game.Workspace.CurrentCamera.CoordinateFrame.p - nearPos
  3018.         local farPos = screenSpace.ScreenToWorld(touch.Position.X, touch.Position.Y,50)
  3019.         farPos = game.Workspace.CurrentCamera.CoordinateFrame:vectorToWorldSpace(farPos) * -1
  3020.         if farPos.magnitude > 900 then
  3021.             farPos = farPos.unit * 900
  3022.         end
  3023.         local ray = Ray.new(nearPos, farPos)
  3024.         local part, pos = game.Workspace:FindPartOnRay(ray, player.Character)
  3025.        
  3026.         -- if a position was found on the ray then update the character's rotation
  3027.         if pos then
  3028.             frame(pos)
  3029.         end
  3030.     end
  3031. end
  3032.  
  3033. local function OnActivated()
  3034.     local myModel = player.Character
  3035.     if Tool.Enabled and myModel and myModel:FindFirstChild('Humanoid') and myModel.Humanoid.Health > 0 then
  3036.         Tool.Enabled = false
  3037.         game.ReplicatedStorage.ROBLOX_RocketFireEvent:FireServer(mouse.Hit.p)
  3038.         wait(2)
  3039.  
  3040.         Tool.Enabled = true
  3041.     end
  3042. end
  3043.  
  3044. local oldIcon = nil
  3045. -- Function to bind to equip event
  3046. local function equip()
  3047.     local torso = player.Character.Torso
  3048.    
  3049.     -- Setup joint variables
  3050.     neck = torso.Neck  
  3051.     oldNeckC0 = neck.C0
  3052.     shoulder = torso:FindFirstChild("Right Shoulder")
  3053.     oldShoulderC0 = shoulder.C0
  3054.    
  3055.     -- Remember old mouse icon and update current
  3056.     oldIcon = mouse.Icon
  3057.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  3058.    
  3059.     -- Bind TouchMoved event if on mobile. Otherwise connect to renderstepped
  3060.     if userInputService.TouchEnabled then
  3061.         connection = userInputService.TouchMoved:connect(mobileFrame)
  3062.     else
  3063.         connection = render:connect(pcFrame)
  3064.     end
  3065.    
  3066.     -- Bind TouchStarted and TouchEnded. Used to determine if character should rotate
  3067.     -- during touch input
  3068.     userInputService.TouchStarted:connect(function(touch, processed)
  3069.         mobileShouldTrack = not processed
  3070.     end)   
  3071.     userInputService.TouchEnded:connect(function(touch, processed)
  3072.         mobileShouldTrack = false
  3073.     end)
  3074.  
  3075.     -- If game uses filtering enabled then need to update server while tool is
  3076.     -- held by character.
  3077.     if workspace.FilteringEnabled then
  3078.         while connection do
  3079.             wait()
  3080.             game.ReplicatedStorage.ROBLOX_RocketUpdateEvent:FireServer(neck.C0, shoulder.C0)
  3081.         end
  3082.     end
  3083. end
  3084.  
  3085. -- Function to bind to Unequip event
  3086. local function unequip()
  3087.     if connection then connection:disconnect() end
  3088.    
  3089.     mouse.Icon = oldIcon
  3090.    
  3091.     neck.C0 = oldNeckC0
  3092.     shoulder.C0 = oldShoulderC0
  3093. end
  3094.  
  3095. -- Bind tool events
  3096. Tool.Equipped:connect(equip)
  3097. Tool.Unequipped:connect(unequip)
  3098. Tool.Activated:connect(OnActivated)
  3099. end))
  3100. ModuleScript7.Name = "ScreenSpace"
  3101. ModuleScript7.Parent = Tool0
  3102. table.insert(cors,sandbox(ModuleScript7,function()
  3103. local PlayerMouse = Game:GetService('Players').LocalPlayer:GetMouse()
  3104.  
  3105. local ScreenSpace = {}
  3106.  
  3107. -- Getter functions, with a couple of hacks for Ipad pre-focus.
  3108. function ScreenSpace.ViewSizeX()
  3109.     local x = PlayerMouse.ViewSizeX
  3110.     local y = PlayerMouse.ViewSizeY
  3111.     if x == 0 then
  3112.         return 1024
  3113.     else
  3114.         if x > y then
  3115.             return x
  3116.         else
  3117.             return y
  3118.         end
  3119.     end
  3120. end
  3121.  
  3122. function ScreenSpace.ViewSizeY()
  3123.     local x = PlayerMouse.ViewSizeX
  3124.     local y = PlayerMouse.ViewSizeY
  3125.     if y == 0 then
  3126.         return 768
  3127.     else
  3128.         if x > y then
  3129.             return y
  3130.         else
  3131.             return x
  3132.         end
  3133.     end
  3134. end
  3135.  
  3136. -- Nice getter for aspect ratio. Due to the checks in the ViewSize functions this
  3137. -- will never fail with a divide by zero error.
  3138. function ScreenSpace.AspectRatio()
  3139.     return ScreenSpace.ViewSizeX() / ScreenSpace.ViewSizeY()
  3140. end
  3141.  
  3142. -- WorldSpace -> ScreenSpace. Raw function taking a world position and giving you the
  3143. -- screen position.
  3144. function ScreenSpace.WorldToScreen(at)
  3145.     local point = Workspace.CurrentCamera.CoordinateFrame:pointToObjectSpace(at)
  3146.     local aspectRatio = ScreenSpace.AspectRatio()
  3147.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3148.     local wfactor = aspectRatio*hfactor
  3149.     --
  3150.     local x = (point.x/point.z) / -wfactor
  3151.     local y = (point.y/point.z) /  hfactor
  3152.     --
  3153.     return Vector2.new(ScreenSpace.ViewSizeX()*(0.5 + 0.5*x), ScreenSpace.ViewSizeY()*(0.5 + 0.5*y))
  3154. end
  3155.  
  3156. -- ScreenSpace -> WorldSpace. Raw function taking a screen position and a depth and
  3157. -- converting it into a world position.
  3158. function ScreenSpace.ScreenToWorld(x, y, depth)
  3159.     local aspectRatio = ScreenSpace.AspectRatio()
  3160.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3161.     local wfactor = aspectRatio*hfactor
  3162.     --
  3163.     local xf, yf = x/ScreenSpace.ViewSizeX()*2 - 1, y/ScreenSpace.ViewSizeY()*2 - 1
  3164.     local xpos = xf * -wfactor * depth
  3165.     local ypos = yf *  hfactor * depth
  3166.     --
  3167.     return Vector3.new(xpos, ypos, depth)
  3168. end
  3169.  
  3170. -- ScreenSize -> WorldSize
  3171. function ScreenSpace.ScreenWidthToWorldWidth(screenWidth, depth)   
  3172.     local aspectRatio = ScreenSpace.AspectRatio()
  3173.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3174.     local wfactor = aspectRatio*hfactor
  3175.     local sx = ScreenSpace.ViewSizeX()
  3176.     --
  3177.     return -(screenWidth / sx) * 2 * wfactor * depth
  3178. end
  3179. function ScreenSpace.ScreenHeightToWorldHeight(screenHeight, depth)
  3180.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3181.     local sy = ScreenSpace.ViewSizeY()
  3182.     --
  3183.     return -(screenHeight / sy) * 2 * hfactor * depth
  3184. end
  3185.  
  3186. -- WorldSize -> ScreenSize
  3187. function ScreenSpace.WorldWidthToScreenWidth(worldWidth, depth)
  3188.     local aspectRatio = ScreenSpace.AspectRatio()
  3189.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3190.     local wfactor = aspectRatio*hfactor
  3191.     local sx = ScreenSpace.ViewSizeX()
  3192.     --
  3193.     return -(worldWidth * sx) / (2 * wfactor * depth)
  3194. end
  3195. function ScreenSpace.WorldHeightToScreenHeight(worldHeight, depth)
  3196.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3197.     local sy = ScreenSpace.ViewSizeY()
  3198.     --
  3199.     return -(worldHeight * sy) / (2 * hfactor * depth)
  3200. end
  3201.  
  3202. -- WorldSize + ScreenSize -> Depth needed
  3203. function ScreenSpace.GetDepthForWidth(screenWidth, worldWidth)
  3204.     local aspectRatio = ScreenSpace.AspectRatio()
  3205.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3206.     local wfactor = aspectRatio*hfactor
  3207.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  3208.     --
  3209.     return -(sx * worldWidth) / (screenWidth * 2 * wfactor)
  3210. end
  3211. function ScreenSpace.GetDepthForHeight(screenHeight, worldHeight)
  3212.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3213.     local sy = ScreenSpace.ViewSizeY()
  3214.     --
  3215.     return -(sy * worldHeight) / (screenHeight * 2 * hfactor)  
  3216. end
  3217.  
  3218. -- ScreenSpace -> WorldSpace. Taking a screen height, and a depth to put an object
  3219. -- at, and returning a size of how big that object has to be to appear that size
  3220. -- at that depth.
  3221. function ScreenSpace.ScreenToWorldByHeightDepth(x, y, screenHeight, depth)
  3222.     local aspectRatio = ScreenSpace.AspectRatio()
  3223.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3224.     local wfactor = aspectRatio*hfactor
  3225.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  3226.     --
  3227.     local worldHeight = -(screenHeight/sy) * 2 * hfactor * depth
  3228.     --
  3229.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  3230.     local xpos = xf * -wfactor * depth
  3231.     local ypos = yf *  hfactor * depth
  3232.     --
  3233.     return Vector3.new(xpos, ypos, depth), worldHeight
  3234. end
  3235.  
  3236. -- ScreenSpace -> WorldSpace. Taking a screen width, and a depth to put an object
  3237. -- at, and returning a size of how big that object has to be to appear that size
  3238. -- at that depth.
  3239. function ScreenSpace.ScreenToWorldByWidthDepth(x, y, screenWidth, depth)
  3240.     local aspectRatio = ScreenSpace.AspectRatio()
  3241.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3242.     local wfactor = aspectRatio*hfactor
  3243.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  3244.     --
  3245.     local worldWidth = (screenWidth/sx) * 2 * -wfactor * depth
  3246.     --
  3247.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  3248.     local xpos = xf * -wfactor * depth
  3249.     local ypos = yf *  hfactor * depth
  3250.     --
  3251.     return Vector3.new(xpos, ypos, depth), worldWidth
  3252. end
  3253.  
  3254. -- ScreenSpace -> WorldSpace. Taking a screen height that you want that object to be
  3255. -- and a world height that is the size of that object, and returning the position to
  3256. -- put that object at to satisfy those.
  3257. function ScreenSpace.ScreenToWorldByHeight(x, y, screenHeight, worldHeight)
  3258.     local aspectRatio = ScreenSpace.AspectRatio()
  3259.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3260.     local wfactor = aspectRatio*hfactor
  3261.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  3262.     --
  3263.     local depth = - (sy * worldHeight) / (screenHeight * 2 * hfactor)
  3264.     --
  3265.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  3266.     local xpos = xf * -wfactor * depth
  3267.     local ypos = yf *  hfactor * depth
  3268.     --
  3269.     return Vector3.new(xpos, ypos, depth)
  3270. end
  3271.  
  3272. -- ScreenSpace -> WorldSpace. Taking a screen width that you want that object to be
  3273. -- and a world width that is the size of that object, and returning the position to
  3274. -- put that object at to satisfy those.
  3275. function ScreenSpace.ScreenToWorldByWidth(x, y, screenWidth, worldWidth)
  3276.     local aspectRatio = ScreenSpace.AspectRatio()
  3277.     local hfactor = math.tan(math.rad(Workspace.CurrentCamera.FieldOfView)/2)
  3278.     local wfactor = aspectRatio*hfactor
  3279.     local sx, sy = ScreenSpace.ViewSizeX(), ScreenSpace.ViewSizeY()
  3280.     --
  3281.     local depth = - (sx * worldWidth) / (screenWidth * 2 * wfactor)
  3282.     --
  3283.     local xf, yf = x/sx*2 - 1, y/sy*2 - 1
  3284.     local xpos = xf * -wfactor * depth
  3285.     local ypos = yf *  hfactor * depth
  3286.     --
  3287.     return Vector3.new(xpos, ypos, depth)
  3288. end
  3289.  
  3290. return ScreenSpace
  3291.  
  3292.  
  3293.  
  3294.  
  3295. end))
  3296. for i,v in pairs(mas:GetChildren()) do
  3297.     v.Parent = game:GetService("Players").LocalPlayer.Backpack
  3298.     pcall(function() v:MakeJoints() end)
  3299. end
  3300. mas:Destroy()
  3301. for i,v in pairs(cors) do
  3302.     spawn(function()
  3303.         pcall(v)
  3304.     end)
  3305. end
  3306. MenuButton.MouseButton1Down:connect(function()
  3307. cam.CameraType = Enum.CameraType.Attach
  3308. cam.CameraSubject = CameraPart
  3309. EyeImage.Visible = false
  3310. EyesLabel.Visible = false
  3311. ClickSound:Play()
  3312. MenuButton.Visible = false
  3313. Tool0:Remove()
  3314. stamina = 20
  3315. IntroMusic:Play()
  3316. EyeImage.Visible = false
  3317. EyesLabel.Visible = false
  3318. RunButton.Visible = false
  3319. Stamina.Visible = false
  3320. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  3321. wait()
  3322. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
  3323. SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
  3324. PlayButton.Visible = true
  3325. OptionButton.Visible = true
  3326. LeaveButton.Visible = true
  3327. Chapter.Visible = true
  3328. PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
  3329. wait(0.1)
  3330. OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
  3331. wait(0.1)
  3332. LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
  3333. wait(0.5)
  3334. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  3335. end)
  3336. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  3337. local Player = game.Players.LocalPlayer
  3338. local Character = Player.Character
  3339. local Humanoid = Character.Humanoid
  3340. Humanoid.MaxHealth = 100
  3341. Humanoid.HealthChanged:connect(function()
  3342. if Humanoid.Health < 5 then
  3343. Humanoid.Health = Humanoid.MaxHealth
  3344. cam.CameraType = Enum.CameraType.Attach
  3345. cam.CameraSubject = CameraPart
  3346. EyeImage.Visible = false
  3347. EyesLabel.Visible = false
  3348. stamina = 20
  3349. MenuButton.Visible = false
  3350. Tool0:Remove()
  3351. IntroMusic:Play()
  3352. RunButton.Visible = false
  3353. Stamina.Visible = false
  3354. EyeImage.Visible = false
  3355. EyesLabel.Visible = false
  3356. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  3357. wait()
  3358. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
  3359. SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
  3360. PlayButton.Visible = true
  3361. OptionButton.Visible = true
  3362. LeaveButton.Visible = true
  3363. Chapter.Visible = true
  3364. YouDiedLabel.Visible = true
  3365. PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
  3366. wait(0.1)
  3367. OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
  3368. wait(0.1)
  3369. LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
  3370. wait(0.5)
  3371. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  3372. wait(1)
  3373. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.9 ,0), 'Out', 4, true)
  3374. wait(0.5)
  3375. YouDiedLabel:TweenPosition(UDim2.new(0.45, 0, 0.4, 0), 'Out', 4, true)
  3376. wait(1.5)
  3377. YouDiedLabel:TweenPosition(UDim2.new(0.45, 0, 1, 0), 'Out', 4, true)
  3378. wait(1)
  3379. YouDiedLabel.Visible = false
  3380. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  3381. end
  3382. end)
  3383. while wait(1) do
  3384. if EasyButton.Text == ">>Easy<<" then
  3385. Humanoid18.WalkSpeed = 10
  3386. else
  3387. if MediumButton.Text == ">>Medium<<" then
  3388. Humanoid18.WalkSpeed = 30
  3389. else
  3390. if HardButton.Text == ">>Hard<<" then
  3391. Humanoid18.WalkSpeed = 50
  3392. SoulPart1.Anchored = false
  3393. SoulPart2.Anchored = false
  3394. SoulPart3.Anchored = false
  3395. SoulPart4.Anchored = false
  3396. SoulPart5.Anchored = false
  3397. SoulPart6.Anchored = false
  3398. SoulPart7.Anchored = false
  3399. SoulPart8.Anchored = false
  3400. SoulPart9.Anchored = false
  3401. SoulPart10.Anchored = false
  3402. SoulPart11.Anchored = false
  3403. SoulPart12.Anchored = false
  3404. SoulPart13.Anchored = false
  3405. SoulPart14.Anchored = false
  3406. SoulPart15.Anchored = false
  3407. SoulPart16.Anchored = false
  3408. SoulPart17.Anchored = false
  3409. SoulPart18.Anchored = false
  3410. SoulPart19.Anchored = false
  3411. SoulPart20.Anchored = false
  3412. SoulPart21.Anchored = false
  3413. SoulPart22.Anchored = false
  3414. SoulPart23.Anchored = false
  3415. SoulPart24.Anchored = false
  3416. SoulPart25.Anchored = false
  3417. end
  3418. end
  3419. end
  3420. if Eye < 0 then
  3421. EyeImage.Visible = false
  3422. EyesLabel.Visible = false
  3423. end
  3424. if Soul == 26 then
  3425. cam.CameraType = Enum.CameraType.Attach
  3426. cam.CameraSubject = CameraPart
  3427. Humanoid.Health = Humanoid.MaxHealth
  3428. EyeImage.Visible = false
  3429. EyesLabel.Visible = false
  3430. stamina = 20
  3431. MenuButton.Visible = false
  3432. Tool0:Remove()
  3433. IntroMusic:Play()
  3434. RunButton.Visible = false
  3435. Stamina.Visible = false
  3436. EyeImage.Visible = false
  3437. EyesLabel.Visible = false
  3438. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  3439. wait()
  3440. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-11, 906.978, 200.854)
  3441. SafeFromNightmare.Position = Vector3.new(-11.423, 909.478, 203.419)
  3442. PlayButton.Visible = true
  3443. OptionButton.Visible = true
  3444. LeaveButton.Visible = true
  3445. Chapter.Visible = true
  3446. WinLabel.Visible = true
  3447. PlayButton:TweenPosition(UDim2.new(0.8, 0, 0.15, 0), 'Out', 4, true)
  3448. wait(0.1)
  3449. OptionButton:TweenPosition(UDim2.new(0.8, 0, 0.4, 0), 'Out', 4, true)
  3450. wait(0.1)
  3451. LeaveButton:TweenPosition(UDim2.new(0.8, 0, 0.65, 0), 'Out', 4, true)
  3452. wait(0.5)
  3453. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  3454. wait(1)
  3455. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.9 ,0), 'Out', 4, true)
  3456. wait(0.5)
  3457. WinLabel:TweenPosition(UDim2.new(0.45, 0, 0.4, 0), 'Out', 4, true)
  3458. wait(1.5)
  3459. WinLabel:TweenPosition(UDim2.new(0.45, 0, 1, 0), 'Out', 4, true)
  3460. wait(1)
  3461. WinLabel.Visible = false
  3462. Chapter:TweenPosition(UDim2.new(-0.5, 0, -0.6 ,0), 'Out', 4, true)
  3463. wait(1)
  3464. game.Players.LocalPlayer:Kick("You Win!")
  3465. wait(1)
  3466. game.Players.LocalPlayer:Kick("Chapter 4 Coming Soon")
  3467. wait(999999999999999999999)
  3468. end
  3469. for _,plrs in pairs(game.Players:GetPlayers()) do
  3470.  if (Part11.Position - plrs.Character.HumanoidRootPart.Position).magnitude <= 20 then
  3471. HeartBeat:Play()
  3472. RunLabel.Text = "Run!!!"
  3473. else
  3474. HeartBeat:Stop()
  3475. RunLabel.Text = ""
  3476. end
  3477. end
  3478. end
  3479. if Eye == 9 then
  3480. EyeImage.Visible = true
  3481. EyesLabel.Visible = true
  3482. end
  3483. end)
  3484. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement