Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.28 KB | None | 0 0
  1. -- Thanks for using Mod2S by NopeUsername
  2. local functions = {}
  3. function sandbox(script, func)
  4. local oldEnv = getfenv(func)
  5.  
  6. local newEnv = setmetatable({}, {
  7. __index = function(self,k)
  8. if k == "script" then
  9. return script
  10. else
  11. return oldEnv[k]
  12. end
  13. end,
  14. })
  15.  
  16. return setfenv(func, newEnv)
  17. end
  18.  
  19. local mas = Instance.new("Model", game:GetService("Lighting"))
  20. -- DECLARING VARIABLES
  21.  
  22. local Door = Instance.new("Model")
  23. local Door_1 = Instance.new("Part")
  24. local Mesh = Instance.new("BlockMesh")
  25. local Snap = Instance.new("Snap")
  26. local Frame = Instance.new("Model")
  27. local Part = Instance.new("Part")
  28. local Mesh_1 = Instance.new("BlockMesh")
  29. local Snap_1 = Instance.new("Snap")
  30. local Part_1 = Instance.new("Part")
  31. local Mesh_2 = Instance.new("BlockMesh")
  32. local Snap_2 = Instance.new("Snap")
  33. local Part_2 = Instance.new("Part")
  34. local Mesh_3 = Instance.new("BlockMesh")
  35. local Open1 = Instance.new("Part")
  36. local Script = Instance.new("Script")
  37. local ClickDetector = Instance.new("ClickDetector")
  38. local Open2 = Instance.new("Part")
  39. local Script_1 = Instance.new("Script")
  40. local ClickDetector_1 = Instance.new("ClickDetector")
  41. local Close2 = Instance.new("Part")
  42. local Script_2 = Instance.new("Script")
  43. local ClickDetector_2 = Instance.new("ClickDetector")
  44. local Close1 = Instance.new("Part")
  45. local Script_3 = Instance.new("Script")
  46. local ClickDetector_3 = Instance.new("ClickDetector")
  47. local Part_3 = Instance.new("Part")
  48. local Part_4 = Instance.new("Part")
  49. local Part_5 = Instance.new("Part")
  50. local Part_6 = Instance.new("Part")
  51. local Part_7 = Instance.new("Part")
  52. local GrannyKiller = Instance.new("Model")
  53. local Part_8 = Instance.new("Part")
  54. local Mesh_4 = Instance.new("SpecialMesh")
  55. local WeldConstraint = Instance.new("WeldConstraint")
  56. local Script_4 = Instance.new("Script")
  57. local Respawn = Instance.new("Script")
  58. local ROBLOXBoyLeftArm = Instance.new("CharacterMesh")
  59. local Head = Instance.new("Part")
  60. local Mesh_5 = Instance.new("SpecialMesh")
  61. local Script_5 = Instance.new("Script")
  62. local q = Instance.new("Sound")
  63. local e = Instance.new("Sound")
  64. local r = Instance.new("Sound")
  65. local w = Instance.new("Sound")
  66. local t = Instance.new("Sound")
  67. local Sing = Instance.new("Script")
  68. local Script_6 = Instance.new("Script")
  69. local HumanoidRootPart = Instance.new("Part")
  70. local RootJoint = Instance.new("Motor6D")
  71. local Script_7 = Instance.new("Script")
  72. local LeftArm = Instance.new("Part")
  73. local Script_8 = Instance.new("Script")
  74. local LeftLeg = Instance.new("Part")
  75. local Script_9 = Instance.new("Script")
  76. local RightArm = Instance.new("Part")
  77. local Script_10 = Instance.new("Script")
  78. local RightLeg = Instance.new("Part")
  79. local Weld = Instance.new("Script")
  80. local Torso = Instance.new("Part")
  81. local RightShoulder = Instance.new("Motor6D")
  82. local LeftShoulder = Instance.new("Motor6D")
  83. local RightHip = Instance.new("Motor6D")
  84. local LeftHip = Instance.new("Motor6D")
  85. local Neck = Instance.new("Motor6D")
  86. local Weld_1 = Instance.new("Script")
  87. local GhostTorso = Instance.new("CharacterMesh")
  88. local ROBLOXBoyRightArm = Instance.new("CharacterMesh")
  89. local headquils = Instance.new("Part")
  90. local Mesh_6 = Instance.new("SpecialMesh")
  91. local WeldConstraint_1 = Instance.new("WeldConstraint")
  92. local Script_11 = Instance.new("Script")
  93. local AnimateSauce = Instance.new("Script")
  94. local climb = Instance.new("StringValue")
  95. local ClimbAnim = Instance.new("Animation")
  96. local fall = Instance.new("StringValue")
  97. local FallAnim = Instance.new("Animation")
  98. local idle = Instance.new("StringValue")
  99. local Animation1 = Instance.new("Animation")
  100. local Weight = Instance.new("NumberValue")
  101. local Animation2 = Instance.new("Animation")
  102. local Weight_1 = Instance.new("NumberValue")
  103. local jump = Instance.new("StringValue")
  104. local JumpAnim = Instance.new("Animation")
  105. local run = Instance.new("StringValue")
  106. local RunAnim = Instance.new("Animation")
  107. local sit = Instance.new("StringValue")
  108. local SitAnim = Instance.new("Animation")
  109. local toolnone = Instance.new("StringValue")
  110. local ToolNoneAnim = Instance.new("Animation")
  111. local walk = Instance.new("StringValue")
  112. local WalkAnim = Instance.new("Animation")
  113. local Humanoid = Instance.new("Humanoid")
  114. local Animator = Instance.new("Animator")
  115. local Status = Instance.new("Model")
  116. local AvalibleSpawns = Instance.new("Model")
  117. local GarnnyMain = Instance.new("Script")
  118. local Health = Instance.new("Script")
  119. local Respawn_1 = Instance.new("Script")
  120. local Swing = Instance.new("Animation")
  121. local ThumbnailCamera = Instance.new("Camera")
  122. local Sign = Instance.new("Model")
  123. local Part_9 = Instance.new("Part")
  124. local ParttoPartStrongJoint = Instance.new("ManualWeld")
  125. local PartTerrainJoint = Instance.new("ManualWeld")
  126. local Part_10 = Instance.new("Part")
  127. local ParttoTextStrongJoint = Instance.new("ManualWeld")
  128. local Text = Instance.new("Part")
  129. local SurfaceGui = Instance.new("SurfaceGui")
  130. local TextLabel = Instance.new("TextLabel")
  131.  
  132. -- SETTING PROPERTIES
  133.  
  134. Door.Name = "Door"
  135. Door.Parent = mas
  136.  
  137. Door_1.Anchored = true
  138. Door_1.CFrame = CFrame.new(21.364,3.293,-30.022,0,0,1,0,1,0,-1,0,0)
  139. Door_1.Color = Color3.new(0.388,0.373,0.384)
  140. Door_1.Size = Vector3.new(4.117,6.587,0.686)
  141. Door_1.Name = "Door"
  142. Door_1.Parent = Door
  143.  
  144. Mesh.Offset = Vector3.new(0,0.05,0)
  145. Mesh.Parent = Door_1
  146.  
  147. Snap.C0 = CFrame.new(0,3.293,0,-1,0,0,0,0,1,0,1,0)
  148. Snap.C1 = CFrame.new(0,-0.412,0,-1,0,0,0,0,1,0,1,0)
  149. Snap.Part0 = Door_1
  150. Snap.Part1 = Part_2
  151. Snap.Parent = Door_1
  152.  
  153. Frame.Name = "Frame"
  154. Frame.Parent = Door
  155.  
  156. Part.Anchored = true
  157. Part.CFrame = CFrame.new(21.364,3.293,-27.621,0,0,1,0,1,0,-1,0,0)
  158. Part.RotVelocity = Vector3.new(-0.002,0,0)
  159. Part.Size = Vector3.new(0.686,6.587,0.686)
  160. Part.Velocity = Vector3.new(-0.004,0.007,-0.013)
  161. Part.Parent = Frame
  162.  
  163. Mesh_1.Offset = Vector3.new(0,0.05,0)
  164. Mesh_1.Parent = Part
  165.  
  166. Snap_1.C0 = CFrame.new(0,3.293,0,-1,0,0,0,0,1,0,1,0)
  167. Snap_1.C1 = CFrame.new(-2.401,-0.412,0,-1,0,0,0,0,1,0,1,0)
  168. Snap_1.Part0 = Part
  169. Snap_1.Part1 = Part_2
  170. Snap_1.Parent = Part
  171.  
  172. Part_1.Anchored = true
  173. Part_1.CFrame = CFrame.new(21.364,3.293,-32.424,0,0,1,0,1,0,-1,0,0)
  174. Part_1.Size = Vector3.new(0.686,6.587,0.686)
  175. Part_1.Parent = Frame
  176.  
  177. Mesh_2.Offset = Vector3.new(0,0.05,0)
  178. Mesh_2.Parent = Part_1
  179.  
  180. Snap_2.C0 = CFrame.new(0,3.293,0,-1,0,0,0,0,1,0,1,0)
  181. Snap_2.C1 = CFrame.new(2.401,-0.412,0,-1,0,0,0,0,1,0,1,0)
  182. Snap_2.Part0 = Part_1
  183. Snap_2.Part1 = Part_2
  184. Snap_2.Parent = Part_1
  185.  
  186. Part_2.Anchored = true
  187. Part_2.CFrame = CFrame.new(21.364,6.998,-30.022,0,0,1,0,1,0,-1,0,0)
  188. Part_2.RotVelocity = Vector3.new(-0.002,0,0)
  189. Part_2.Size = Vector3.new(5.489,0.823,0.686)
  190. Part_2.Velocity = Vector3.new(-0.005,0.006,-0.025)
  191. Part_2.Parent = Frame
  192.  
  193. Mesh_3.Offset = Vector3.new(0,0.05,0)
  194. Mesh_3.Parent = Part_2
  195.  
  196. Open1.Anchored = true
  197. Open1.BottomSurface = Enum.SurfaceType.Smooth
  198. Open1.CFrame = CFrame.new(20.884,3.769,-27.621,0,1,0,0,0,-1,-1,0,0)
  199. Open1.Color = Color3.new(0.294,0.592,0.294)
  200. Open1.Size = Vector3.new(0.686,0.274,0.686)
  201. Open1.TopSurface = Enum.SurfaceType.Smooth
  202. Open1.Name = "Open1"
  203. Open1.Parent = Door
  204.  
  205. table.insert(functions,sandbox(Script,function()
  206. function myfunction()
  207.  
  208. script.Parent.Parent.Door.Transparency = 0.7 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
  209. script.Parent.Parent.Door.CanCollide = false --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
  210. --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
  211. -- So the 2 times Parent means: The Parent, Of the Parent.
  212. end
  213.  
  214. script.Parent.ClickDetector.MouseClick:connect(myfunction)
  215. end))
  216. Script.Parent = Open1
  217.  
  218. ClickDetector.Parent = Open1
  219.  
  220. Open2.Anchored = true
  221. Open2.BottomSurface = Enum.SurfaceType.Smooth
  222. Open2.CFrame = CFrame.new(21.845,3.774,-32.424,0,1,0,0,0,-1,-1,0,0)
  223. Open2.Color = Color3.new(0.294,0.592,0.294)
  224. Open2.Size = Vector3.new(0.686,0.274,0.686)
  225. Open2.TopSurface = Enum.SurfaceType.Smooth
  226. Open2.Name = "Open2"
  227. Open2.Parent = Door
  228.  
  229. table.insert(functions,sandbox(Script_1,function()
  230. function myfunction()
  231.  
  232. script.Parent.Parent.Door.Transparency = 0.7 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
  233. script.Parent.Parent.Door.CanCollide = false --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
  234. --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
  235. -- So the 2 times Parent means: The Parent, Of the Parent.
  236. end
  237.  
  238. script.Parent.ClickDetector.MouseClick:connect(myfunction)
  239. end))
  240. Script_1.Parent = Open2
  241.  
  242. ClickDetector_1.Parent = Open2
  243.  
  244. Close2.Anchored = true
  245. Close2.BottomSurface = Enum.SurfaceType.Smooth
  246. Close2.CFrame = CFrame.new(20.884,3.088,-27.621,0,-1,0,0,0,-1,1,0,0)
  247. Close2.Color = Color3.new(0.769,0.157,0.11)
  248. Close2.Size = Vector3.new(0.686,0.274,0.686)
  249. Close2.TopSurface = Enum.SurfaceType.Smooth
  250. Close2.Name = "Close2"
  251. Close2.Parent = Door
  252.  
  253. table.insert(functions,sandbox(Script_2,function()
  254. function myfunction()
  255.  
  256. script.Parent.Parent.Door.Transparency = 0 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
  257. script.Parent.Parent.Door.CanCollide = true --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
  258. --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
  259. -- So the 2 times Parent means: The Parent, Of the Parent.
  260. end
  261.  
  262. script.Parent.ClickDetector.MouseClick:connect(myfunction)
  263. end))
  264. Script_2.Parent = Close2
  265.  
  266. ClickDetector_2.Parent = Close2
  267.  
  268. Close1.Anchored = true
  269. Close1.BottomSurface = Enum.SurfaceType.Smooth
  270. Close1.CFrame = CFrame.new(21.845,3.088,-32.424,0,1,0,0,0,-1,-1,0,0)
  271. Close1.Color = Color3.new(0.769,0.157,0.11)
  272. Close1.Size = Vector3.new(0.686,0.274,0.686)
  273. Close1.TopSurface = Enum.SurfaceType.Smooth
  274. Close1.Name = "Close1"
  275. Close1.Parent = Door
  276.  
  277. table.insert(functions,sandbox(Script_3,function()
  278. function myfunction()
  279.  
  280. script.Parent.Parent.Door.Transparency = 0 --As you can see, I typed script(that is the script.), And 2 times Parent. That means: the Parent
  281. script.Parent.Parent.Door.CanCollide = true --(Look at properties, and then at Data,There you see: Parent, So: a Parent of a brick, Is the model/thing it is in.)
  282. --For example: You have a brick in Workspace, Then Workspace is the parent,(cus the brick is in the "Model" called Workspace.
  283. -- So the 2 times Parent means: The Parent, Of the Parent.
  284. end
  285.  
  286. script.Parent.ClickDetector.MouseClick:connect(myfunction)
  287. end))
  288. Script_3.Parent = Close1
  289.  
  290. ClickDetector_3.Parent = Close1
  291.  
  292. Part_3.Anchored = true
  293. Part_3.BottomSurface = Enum.SurfaceType.Smooth
  294. Part_3.CFrame = CFrame.new(21.4,3.8,-25.2,0,0,1,0,1,0,-1,0,0)
  295. Part_3.Size = Vector3.new(4,7.6,0.8)
  296. Part_3.TopSurface = Enum.SurfaceType.Smooth
  297. Part_3.Parent = Door
  298.  
  299. Part_4.Anchored = true
  300. Part_4.BottomSurface = Enum.SurfaceType.Smooth
  301. Part_4.CFrame = CFrame.new(15.4,3.8,-23.1,0,0,1,0,1,0,-1,0,0)
  302. Part_4.Size = Vector3.new(1,7.6,12.8)
  303. Part_4.TopSurface = Enum.SurfaceType.Smooth
  304. Part_4.Parent = Door
  305.  
  306. Part_5.Anchored = true
  307. Part_5.BottomSurface = Enum.SurfaceType.Smooth
  308. Part_5.CFrame = CFrame.new(15.4,3.8,-33.3,0,0,1,0,1,0,-1,0,0)
  309. Part_5.Size = Vector3.new(1,7.6,12.8)
  310. Part_5.TopSurface = Enum.SurfaceType.Smooth
  311. Part_5.Parent = Door
  312.  
  313. Part_6.Anchored = true
  314. Part_6.BottomSurface = Enum.SurfaceType.Smooth
  315. Part_6.CFrame = CFrame.new(15.4,7.4,-28.2,0,0,1,0,1,0,-1,0,0)
  316. Part_6.Size = Vector3.new(11.2,0.4,12.8)
  317. Part_6.TopSurface = Enum.SurfaceType.Smooth
  318. Part_6.Parent = Door
  319.  
  320. Part_7.Anchored = true
  321. Part_7.BottomSurface = Enum.SurfaceType.Smooth
  322. Part_7.CFrame = CFrame.new(9.4,3.8,-28.2,0,0,1,0,1,0,-1,0,0)
  323. Part_7.Size = Vector3.new(10,7.6,0.8)
  324. Part_7.TopSurface = Enum.SurfaceType.Smooth
  325. Part_7.Parent = Door
  326.  
  327. GrannyKiller.Name = "GrannyKiller"
  328. GrannyKiller.Parent = Door
  329.  
  330. Part_8.BottomSurface = Enum.SurfaceType.Smooth
  331. Part_8.CFrame = CFrame.new(18.367,1.9,-28.178,-0.568,0,0.823,0,1,0,-0.823,0,-0.568)
  332. Part_8.CanCollide = false
  333. Part_8.Color = Color3.new(0.973,0.973,0.973)
  334. Part_8.Size = Vector3.new(0.4,0.6,4.2)
  335. Part_8.TopSurface = Enum.SurfaceType.Smooth
  336. Part_8.Parent = GrannyKiller
  337.  
  338. Mesh_4.MeshType = Enum.MeshType.FileMesh
  339. Mesh_4.MeshId = "http://www.roblox.com/asset/?id=54983181 "
  340. Mesh_4.TextureId = "http://www.roblox.com/asset/?id=54983107"
  341. Mesh_4.Scale = Vector3.new(2,2,1.4)
  342. Mesh_4.Parent = Part_8
  343.  
  344. WeldConstraint.Part0 = Part_8
  345. WeldConstraint.Part1 = RightArm
  346. WeldConstraint.Parent = Part_8
  347.  
  348. table.insert(functions,sandbox(Script_4,function()
  349. function onTouch(part)
  350. local humanoid = part.Parent:FindFirstChild("Humanoid")
  351. if (humanoid ~= nil) then -- if a humanoid exists, then
  352. humanoid.Health = humanoid.Health -12 -- damage the humanoid
  353. end
  354. end
  355.  
  356. script.Parent.Touched:connect(onTouch)
  357.  
  358. end))
  359. Script_4.Parent = Part_8
  360.  
  361. table.insert(functions,sandbox(Respawn,function()
  362. function onTouched(hit)
  363. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  364. if player then
  365. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  366. end
  367. end
  368.  
  369.  
  370. script.Parent.Touched:connect(onTouched)
  371.  
  372. end))
  373. Respawn.Name = "Respawn"
  374. Respawn.Parent = Part_8
  375.  
  376. ROBLOXBoyLeftArm.BodyPart = Enum.BodyPart.LeftArm
  377. ROBLOXBoyLeftArm.MeshId = 279174949
  378. ROBLOXBoyLeftArm.Name = "ROBLOX Boy Left Arm"
  379. ROBLOXBoyLeftArm.Parent = GrannyKiller
  380.  
  381. Head.CFrame = CFrame.new(16.584,4.5,-28.648,0.568,0,-0.823,0,1,0,0.823,0,0.568)
  382. Head.Size = Vector3.new(2,1,1)
  383. Head.TopSurface = Enum.SurfaceType.Smooth
  384. Head.Name = "Head"
  385. Head.Parent = GrannyKiller
  386.  
  387. Mesh_5.MeshType = Enum.MeshType.FileMesh
  388. Mesh_5.MeshId = "http://www.roblox.com/asset/?id=17392637"
  389. Mesh_5.TextureId = "http://www.roblox.com/asset/?id=17392623"
  390. Mesh_5.Scale = Vector3.new(0.9,1,0.9)
  391. Mesh_5.VertexColor = Vector3.new(0.65,0.6,0.6)
  392. Mesh_5.Parent = Head
  393.  
  394. table.insert(functions,sandbox(Script_5,function()
  395. function onTouch(part)
  396. local humanoid = part.Parent:FindFirstChild("Humanoid")
  397. if (humanoid ~= nil) then -- if a humanoid exists, then
  398. humanoid.Health = humanoid.Health -12 -- damage the humanoid
  399. end
  400. end
  401.  
  402. script.Parent.Touched:connect(onTouch)
  403.  
  404. end))
  405. Script_5.Parent = Head
  406.  
  407. q.SoundId = "rbxassetid://1435191107"
  408. q.Volume = 2
  409. q.Name = "q"
  410. q.Parent = Head
  411.  
  412. e.SoundId = "rbxassetid://1435199374"
  413. e.Volume = 2
  414. e.Name = "e"
  415. e.Parent = Head
  416.  
  417. r.SoundId = "rbxassetid://1435191672"
  418. r.Volume = 2
  419. r.Name = "r"
  420. r.Parent = Head
  421.  
  422. w.SoundId = "rbxassetid://1435192172"
  423. w.Volume = 2
  424. w.Name = "w"
  425. w.Parent = Head
  426.  
  427. t.SoundId = "rbxassetid://1592934045"
  428. t.Volume = 1
  429. t.Name = "t"
  430. t.Parent = Head
  431.  
  432. table.insert(functions,sandbox(Sing,function()
  433. local par = script.Parent
  434.  
  435. local q = par.q
  436. local w = par.w
  437. local e = par.e
  438. local r = par.r
  439. local t = par.t
  440.  
  441. while true do
  442. wait(13)
  443. q:Play()
  444. wait(8)
  445. w:Play()
  446. wait(9)
  447. e:Play()
  448. wait(15)
  449. r:Play()
  450. wait(10)
  451. t:Play()
  452. end
  453. end))
  454. Sing.Name = "Sing"
  455. Sing.Parent = Head
  456.  
  457. table.insert(functions,sandbox(Script_6,function()
  458. function onTouched(hit)
  459. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  460. if player then
  461. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  462. end
  463. end
  464.  
  465.  
  466. script.Parent.Touched:connect(onTouched)
  467.  
  468. end))
  469. Script_6.Parent = Head
  470.  
  471. HumanoidRootPart.BottomSurface = Enum.SurfaceType.Smooth
  472. HumanoidRootPart.CFrame = CFrame.new(16.584,3,-28.648,0.568,0,-0.823,0,1,0,0.823,0,0.568)
  473. HumanoidRootPart.CanCollide = false
  474. HumanoidRootPart.LeftParamA = 0
  475. HumanoidRootPart.LeftParamB = 0
  476. HumanoidRootPart.RightParamA = 0
  477. HumanoidRootPart.RightParamB = 0
  478. HumanoidRootPart.Size = Vector3.new(2,2,1)
  479. HumanoidRootPart.TopSurface = Enum.SurfaceType.Smooth
  480. HumanoidRootPart.Transparency = 1
  481. HumanoidRootPart.Name = "HumanoidRootPart"
  482. HumanoidRootPart.Parent = GrannyKiller
  483.  
  484. RootJoint.MaxVelocity = 0.1
  485. RootJoint.C0 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
  486. RootJoint.C1 = CFrame.new(0,0,0,-1,0,0,0,0,1,0,1,0)
  487. RootJoint.Part0 = HumanoidRootPart
  488. RootJoint.Part1 = Torso
  489. RootJoint.Name = "RootJoint"
  490. RootJoint.Parent = HumanoidRootPart
  491.  
  492. table.insert(functions,sandbox(Script_7,function()
  493. function onTouched(hit)
  494. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  495. if player then
  496. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  497. end
  498. end
  499.  
  500.  
  501. script.Parent.Touched:connect(onTouched)
  502.  
  503. end))
  504. Script_7.Parent = HumanoidRootPart
  505.  
  506. LeftArm.CFrame = CFrame.new(15.732,3,-29.883,0.568,0,-0.823,0,1,0,0.823,0,0.568)
  507. LeftArm.CanCollide = false
  508. LeftArm.Color = Color3.new(0.494,0.424,0.392)
  509. LeftArm.Size = Vector3.new(1,2,1)
  510. LeftArm.Name = "Left Arm"
  511. LeftArm.Parent = GrannyKiller
  512.  
  513. table.insert(functions,sandbox(Script_8,function()
  514. function onTouched(hit)
  515. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  516. if player then
  517. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  518. end
  519. end
  520.  
  521.  
  522. script.Parent.Touched:connect(onTouched)
  523.  
  524. end))
  525. Script_8.Parent = LeftArm
  526.  
  527. LeftLeg.BottomSurface = Enum.SurfaceType.Smooth
  528. LeftLeg.CFrame = CFrame.new(16.3,1,-29.06,0.568,0,-0.823,0,1,0,0.823,0,0.568)
  529. LeftLeg.CanCollide = false
  530. LeftLeg.Size = Vector3.new(1,2,1)
  531. LeftLeg.Transparency = 1
  532. LeftLeg.Name = "Left Leg"
  533. LeftLeg.Parent = GrannyKiller
  534.  
  535. table.insert(functions,sandbox(Script_9,function()
  536. function onTouched(hit)
  537. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  538. if player then
  539. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  540. end
  541. end
  542.  
  543.  
  544. script.Parent.Touched:connect(onTouched)
  545.  
  546. end))
  547. Script_9.Parent = LeftLeg
  548.  
  549. RightArm.CFrame = CFrame.new(17.436,3,-27.414,0.568,0,-0.823,0,1,0,0.823,0,0.568)
  550. RightArm.CanCollide = false
  551. RightArm.Color = Color3.new(0.494,0.424,0.392)
  552. RightArm.Size = Vector3.new(1,2,1)
  553. RightArm.Name = "Right Arm"
  554. RightArm.Parent = GrannyKiller
  555.  
  556. table.insert(functions,sandbox(Script_10,function()
  557. function onTouched(hit)
  558. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  559. if player then
  560. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  561. end
  562. end
  563.  
  564.  
  565. script.Parent.Touched:connect(onTouched)
  566.  
  567. end))
  568. Script_10.Parent = RightArm
  569.  
  570. RightLeg.BottomSurface = Enum.SurfaceType.Smooth
  571. RightLeg.CFrame = CFrame.new(16.868,1,-28.237,0.568,0,-0.823,0,1,0,0.823,0,0.568)
  572. RightLeg.CanCollide = false
  573. RightLeg.Size = Vector3.new(1,2,1)
  574. RightLeg.Transparency = 1
  575. RightLeg.Name = "Right Leg"
  576. RightLeg.Parent = GrannyKiller
  577.  
  578. table.insert(functions,sandbox(Weld,function()
  579. function onTouched(hit)
  580. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  581. if player then
  582. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  583. end
  584. end
  585.  
  586.  
  587. script.Parent.Touched:connect(onTouched)
  588.  
  589. end))
  590. Weld.Name = "Weld"
  591. Weld.Parent = RightLeg
  592.  
  593. Torso.CFrame = CFrame.new(16.584,3,-28.648,0.568,0,-0.823,0,1,0,0.823,0,0.568)
  594. Torso.LeftParamA = 0
  595. Torso.LeftParamB = 0
  596. Torso.LeftSurface = Enum.SurfaceType.Weld
  597. Torso.RightParamA = 0
  598. Torso.RightParamB = 0
  599. Torso.RightSurface = Enum.SurfaceType.Weld
  600. Torso.Size = Vector3.new(2,2,1)
  601. Torso.Name = "Torso"
  602. Torso.Parent = GrannyKiller
  603.  
  604. RightShoulder.MaxVelocity = 0.1
  605. RightShoulder.C0 = CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,0,0)
  606. RightShoulder.C1 = CFrame.new(-0.5,0.5,0,0,0,1,0,1,0,-1,0,0)
  607. RightShoulder.Part0 = Torso
  608. RightShoulder.Part1 = RightArm
  609. RightShoulder.Name = "Right Shoulder"
  610. RightShoulder.Parent = Torso
  611.  
  612. LeftShoulder.MaxVelocity = 0.1
  613. LeftShoulder.C0 = CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0)
  614. LeftShoulder.C1 = CFrame.new(0.5,0.5,0,0,0,-1,0,1,0,1,0,0)
  615. LeftShoulder.Part0 = Torso
  616. LeftShoulder.Part1 = LeftArm
  617. LeftShoulder.Name = "Left Shoulder"
  618. LeftShoulder.Parent = Torso
  619.  
  620. RightHip.MaxVelocity = 0.1
  621. RightHip.C0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
  622. RightHip.C1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0)
  623. RightHip.Part0 = Torso
  624. RightHip.Part1 = RightLeg
  625. RightHip.Name = "Right Hip"
  626. RightHip.Parent = Torso
  627.  
  628. LeftHip.MaxVelocity = 0.1
  629. LeftHip.C0 = CFrame.new(-1,-1,0,0,0,-1,0,1,0,1,0,0)
  630. LeftHip.C1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1,0,0)
  631. LeftHip.Part0 = Torso
  632. LeftHip.Part1 = LeftLeg
  633. LeftHip.Name = "Left Hip"
  634. LeftHip.Parent = Torso
  635.  
  636. Neck.MaxVelocity = 0.1
  637. Neck.C0 = CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)
  638. Neck.C1 = CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0)
  639. Neck.Part0 = Torso
  640. Neck.Part1 = Head
  641. Neck.Name = "Neck"
  642. Neck.Parent = Torso
  643.  
  644. table.insert(functions,sandbox(Weld_1,function()
  645. function onTouched(hit)
  646. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  647. if player then
  648. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  649. end
  650. end
  651.  
  652.  
  653. script.Parent.Touched:connect(onTouched)
  654.  
  655. end))
  656. Weld_1.Name = "Weld"
  657. Weld_1.Parent = Torso
  658.  
  659. GhostTorso.BodyPart = Enum.BodyPart.Torso
  660. GhostTorso.MeshId = 53846918
  661. GhostTorso.OverlayTextureId = 53847129
  662. GhostTorso.Name = "Ghost Torso"
  663. GhostTorso.Parent = GrannyKiller
  664.  
  665. ROBLOXBoyRightArm.BodyPart = Enum.BodyPart.RightArm
  666. ROBLOXBoyRightArm.MeshId = 279174886
  667. ROBLOXBoyRightArm.Name = "ROBLOX Boy Right Arm"
  668. ROBLOXBoyRightArm.Parent = GrannyKiller
  669.  
  670. headquils.CFrame = CFrame.new(16.215,4.517,-28.272,0.568,-0.582,-0.582,0,0.707,-0.707,0.823,0.402,0.402)
  671. headquils.CanCollide = false
  672. headquils.Color = Color3.new(0.294,0.592,0.294)
  673. headquils.Size = Vector3.new(1,0.4,1)
  674. headquils.Name = "head quils"
  675. headquils.Parent = GrannyKiller
  676.  
  677. Mesh_6.MeshType = Enum.MeshType.FileMesh
  678. Mesh_6.MeshId = "http://www.roblox.com/asset/?id=17659272"
  679. Mesh_6.TextureId = "http://www.roblox.com/asset/?id=17659268"
  680. Mesh_6.Scale = Vector3.new(0.8,0.8,0.5)
  681. Mesh_6.Parent = headquils
  682.  
  683. WeldConstraint_1.Part0 = headquils
  684. WeldConstraint_1.Part1 = Head
  685. WeldConstraint_1.Parent = headquils
  686.  
  687. table.insert(functions,sandbox(Script_11,function()
  688. function onTouched(hit)
  689. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  690. if player then
  691. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  692. end
  693. end
  694.  
  695.  
  696. script.Parent.Touched:connect(onTouched)
  697.  
  698. end))
  699. Script_11.Parent = headquils
  700.  
  701. table.insert(functions,sandbox(AnimateSauce,function()
  702. function waitForChild(parent, childName)
  703. local child = parent:findFirstChild(childName)
  704. if child then return child end
  705. while true do
  706. child = parent.ChildAdded:wait()
  707. if child.Name==childName then return child end
  708. end
  709. end
  710. local Figure = script.Parent
  711. local Torso = waitForChild(Figure, "Torso")
  712. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  713. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  714. local RightHip = waitForChild(Torso, "Right Hip")
  715. local LeftHip = waitForChild(Torso, "Left Hip")
  716. local Neck = waitForChild(Torso, "Neck")
  717. local Humanoid;
  718. for _,Child in pairs(Figure:GetChildren())do
  719. if Child and Child.ClassName=="Humanoid"then
  720. Humanoid=Child;
  721. end;
  722. end;
  723. local pose = "Standing"
  724. local currentAnim = ""
  725. local currentAnimInstance = nil
  726. local currentAnimTrack = nil
  727. local currentAnimKeyframeHandler = nil
  728. local currentAnimSpeed = 1.0
  729. local animTable = {}
  730. local animNames = {
  731. idle = {
  732. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  733. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  734. },
  735. walk = {
  736. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  737. },
  738. run = {
  739. { id = "http://www.roblox.com/asset/?id=252557606", weight = 20 }
  740. },
  741. jump = {
  742. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  743. },
  744. fall = {
  745. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  746. },
  747. climb = {
  748. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  749. },
  750. sit = {
  751. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  752. },
  753. toolnone = {
  754. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  755. },
  756. toolslash = {
  757. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  758. --{ id = "slash.xml", weight = 10 }
  759. },
  760. toollunge = {
  761. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  762. },
  763. wave = {
  764. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  765. },
  766. point = {
  767. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  768. },
  769. dance1 = {
  770. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  771. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  772. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  773. },
  774. dance2 = {
  775. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  776. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  777. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  778. },
  779. dance3 = {
  780. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  781. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  782. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  783. },
  784. laugh = {
  785. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  786. },
  787. cheer = {
  788. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  789. },
  790. }
  791. local dances = {"dance1", "dance2", "dance3"}
  792.  
  793. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  794. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  795.  
  796. function configureAnimationSet(name, fileList)
  797. if (animTable[name] ~= nil) then
  798. for _, connection in pairs(animTable[name].connections) do
  799. connection:disconnect()
  800. end
  801. end
  802. animTable[name] = {}
  803. animTable[name].count = 0
  804. animTable[name].totalWeight = 0
  805. animTable[name].connections = {}
  806.  
  807. -- check for config values
  808. local config = script:FindFirstChild(name)
  809. if (config ~= nil) then
  810. --print("Loading anims " .. name)
  811. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  812. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  813. local idx = 1
  814. for _, childPart in pairs(config:GetChildren()) do
  815. if (childPart:IsA("Animation")) then
  816. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  817. animTable[name][idx] = {}
  818. animTable[name][idx].anim = childPart
  819. local weightObject = childPart:FindFirstChild("Weight")
  820. if (weightObject == nil) then
  821. animTable[name][idx].weight = 1
  822. else
  823. animTable[name][idx].weight = weightObject.Value
  824. end
  825. animTable[name].count = animTable[name].count + 1
  826. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  827. --print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  828. idx = idx + 1
  829. end
  830. end
  831. end
  832.  
  833. -- fallback to defaults
  834. if (animTable[name].count <= 0) then
  835. for idx, anim in pairs(fileList) do
  836. animTable[name][idx] = {}
  837. animTable[name][idx].anim = Instance.new("Animation")
  838. animTable[name][idx].anim.Name = name
  839. animTable[name][idx].anim.AnimationId = anim.id
  840. animTable[name][idx].weight = anim.weight
  841. animTable[name].count = animTable[name].count + 1
  842. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  843. --print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  844. end
  845. end
  846. end
  847.  
  848. -- Setup animation objects
  849. function scriptChildModified(child)
  850. local fileList = animNames[child.Name]
  851. if (fileList ~= nil) then
  852. configureAnimationSet(child.Name, fileList)
  853. end
  854. end
  855.  
  856. script.ChildAdded:connect(scriptChildModified)
  857. script.ChildRemoved:connect(scriptChildModified)
  858.  
  859.  
  860. for name, fileList in pairs(animNames) do
  861. configureAnimationSet(name, fileList)
  862. end
  863.  
  864. -- ANIMATION
  865.  
  866. -- declarations
  867. local toolAnim = "None"
  868. local toolAnimTime = 0
  869.  
  870. local jumpAnimTime = 0
  871. local jumpAnimDuration = 0.3
  872.  
  873. local toolTransitionTime = 0.1
  874. local fallTransitionTime = 0.3
  875. local jumpMaxLimbVelocity = 0.75
  876.  
  877. -- functions
  878.  
  879. function stopAllAnimations()
  880. local oldAnim = currentAnim
  881.  
  882. -- return to idle if finishing an emote
  883. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  884. oldAnim = "idle"
  885. end
  886.  
  887. currentAnim = ""
  888. currentAnimInstance = nil
  889. if (currentAnimKeyframeHandler ~= nil) then
  890. currentAnimKeyframeHandler:disconnect()
  891. end
  892.  
  893. if (currentAnimTrack ~= nil) then
  894. currentAnimTrack:Stop()
  895. currentAnimTrack:Destroy()
  896. currentAnimTrack = nil
  897. end
  898. return oldAnim
  899. end
  900.  
  901. function setAnimationSpeed(speed)
  902. if speed ~= currentAnimSpeed then
  903. currentAnimSpeed = speed
  904. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  905. end
  906. end
  907.  
  908. function keyFrameReachedFunc(frameName)
  909. if (frameName == "End") then
  910.  
  911. local repeatAnim = currentAnim
  912. -- return to idle if finishing an emote
  913. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  914. repeatAnim = "idle"
  915. end
  916.  
  917. local animSpeed = currentAnimSpeed
  918. playAnimation(repeatAnim, 0.0, Humanoid)
  919. setAnimationSpeed(animSpeed)
  920. end
  921. end
  922.  
  923. -- Preload animations
  924. function playAnimation(animName, transitionTime, humanoid)
  925.  
  926. local roll = math.random(1, animTable[animName].totalWeight)
  927. local origRoll = roll
  928. local idx = 1
  929. while (roll > animTable[animName][idx].weight) do
  930. roll = roll - animTable[animName][idx].weight
  931. idx = idx + 1
  932. end
  933. --print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  934. local anim = animTable[animName][idx].anim
  935. -- switch animation
  936. if (anim ~= currentAnimInstance) then
  937. if (currentAnimTrack ~= nil) then
  938. currentAnimTrack:Stop(transitionTime)
  939. currentAnimTrack:Destroy()
  940. end
  941. currentAnimSpeed = 1.0
  942. -- load it to the humanoid; get AnimationTrack
  943. currentAnimTrack = humanoid:LoadAnimation(anim)
  944. -- play the animation
  945. currentAnimTrack:Play(transitionTime)
  946. currentAnim = animName
  947. currentAnimInstance = anim
  948. -- set up keyframe name triggers
  949. if (currentAnimKeyframeHandler ~= nil) then
  950. currentAnimKeyframeHandler:disconnect()
  951. end
  952. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  953. end
  954. end
  955. -------------------------------------------------------------------------------------------
  956. -------------------------------------------------------------------------------------------
  957. local toolAnimName = ""
  958. local toolAnimTrack = nil
  959. local toolAnimInstance = nil
  960. local currentToolAnimKeyframeHandler = nil
  961. function toolKeyFrameReachedFunc(frameName)
  962. if (frameName == "End") then
  963. --print("Keyframe : ".. frameName)
  964. playToolAnimation(toolAnimName, 0.0, Humanoid)
  965. end
  966. end
  967. function playToolAnimation(animName, transitionTime, humanoid)
  968. local roll = math.random(1, animTable[animName].totalWeight)
  969. local origRoll = roll
  970. local idx = 1
  971. while (roll > animTable[animName][idx].weight) do
  972. roll = roll - animTable[animName][idx].weight
  973. idx = idx + 1
  974. end
  975. --print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  976. local anim = animTable[animName][idx].anim
  977. if (toolAnimInstance ~= anim) then
  978. if (toolAnimTrack ~= nil) then
  979. toolAnimTrack:Stop()
  980. toolAnimTrack:Destroy()
  981. transitionTime = 0
  982. end
  983. -- load it to the humanoid; get AnimationTrack
  984. toolAnimTrack = humanoid:LoadAnimation(anim)
  985. -- play the animation
  986. toolAnimTrack:Play(transitionTime)
  987. toolAnimName = animName
  988. toolAnimInstance = anim
  989. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  990. end
  991. end
  992. function stopToolAnimations()
  993. local oldAnim = toolAnimName
  994. if (currentToolAnimKeyframeHandler ~= nil) then
  995. currentToolAnimKeyframeHandler:disconnect()
  996. end
  997. toolAnimName = ""
  998. toolAnimInstance = nil
  999. if (toolAnimTrack ~= nil) then
  1000. toolAnimTrack:Stop()
  1001. toolAnimTrack:Destroy()
  1002. toolAnimTrack = nil
  1003. end
  1004. return oldAnim
  1005. end
  1006. -------------------------------------------------------------------------------------------
  1007. -------------------------------------------------------------------------------------------
  1008. function onRunning(speed)
  1009. if speed>0.01 then
  1010. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  1011. playAnimation("walk", 0.1, Humanoid);
  1012. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  1013. playAnimation("run", 0.1, Humanoid);
  1014. end;
  1015. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  1016. setAnimationSpeed(speed / 14.5)
  1017. end
  1018. pose = "Running"
  1019. else
  1020. playAnimation("idle", 0.1, Humanoid)
  1021. pose = "Standing"
  1022. end
  1023. end
  1024. function onDied()
  1025. pose = "Dead"
  1026. end
  1027. function onJumping()
  1028. playAnimation("jump", 0.1, Humanoid)
  1029. jumpAnimTime = jumpAnimDuration
  1030. pose = "Jumping"
  1031. end
  1032. function onClimbing(speed)
  1033. playAnimation("climb", 0.1, Humanoid)
  1034. setAnimationSpeed(speed / 12.0)
  1035. pose = "Climbing"
  1036. end
  1037. function onGettingUp()
  1038. pose = "GettingUp"
  1039. end
  1040. function onFreeFall()
  1041. if (jumpAnimTime <= 0) then
  1042. playAnimation("fall", fallTransitionTime, Humanoid)
  1043. end
  1044. pose = "FreeFall"
  1045. end
  1046. function onFallingDown()
  1047. pose = "FallingDown"
  1048. end
  1049. function onSeated()
  1050. pose = "Seated"
  1051. end
  1052. function onPlatformStanding()
  1053. pose = "PlatformStanding"
  1054. end
  1055. function onSwimming(speed)
  1056. if speed>0 then
  1057. pose = "Running"
  1058. else
  1059. pose = "Standing"
  1060. end
  1061. end
  1062.  
  1063. function getTool()
  1064. for _, kid in ipairs(Figure:GetChildren()) do
  1065. if kid.className == "Tool" then return kid end
  1066. end
  1067. return nil
  1068. end
  1069.  
  1070. function getToolAnim(tool)
  1071. for _, c in ipairs(tool:GetChildren()) do
  1072. if c.Name == "toolanim" and c.className == "StringValue" then
  1073. return c
  1074. end
  1075. end
  1076. return nil
  1077. end
  1078.  
  1079. function animateTool()
  1080.  
  1081. if (toolAnim == "None") then
  1082. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  1083. return
  1084. end
  1085.  
  1086. if (toolAnim == "Slash") then
  1087. playToolAnimation("toolslash", 0, Humanoid)
  1088. return
  1089. end
  1090.  
  1091. if (toolAnim == "Lunge") then
  1092. playToolAnimation("toollunge", 0, Humanoid)
  1093. return
  1094. end
  1095. end
  1096.  
  1097. function moveSit()
  1098. RightShoulder.MaxVelocity = 0.15
  1099. LeftShoulder.MaxVelocity = 0.15
  1100. RightShoulder:SetDesiredAngle(3.14 /2)
  1101. LeftShoulder:SetDesiredAngle(-3.14 /2)
  1102. RightHip:SetDesiredAngle(3.14 /2)
  1103. LeftHip:SetDesiredAngle(-3.14 /2)
  1104. end
  1105.  
  1106. local lastTick = 0
  1107.  
  1108. function move(time)
  1109. local amplitude = 1
  1110. local frequency = 1
  1111. local deltaTime = time - lastTick
  1112. lastTick = time
  1113.  
  1114. local climbFudge = 0
  1115. local setAngles = false
  1116.  
  1117. if (jumpAnimTime > 0) then
  1118. jumpAnimTime = jumpAnimTime - deltaTime
  1119. end
  1120.  
  1121. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  1122. playAnimation("fall", fallTransitionTime, Humanoid)
  1123. elseif (pose == "Seated") then
  1124. playAnimation("sit", 0.5, Humanoid)
  1125. return
  1126. elseif (pose == "Running") then
  1127. if Figure and Humanoid and Humanoid.WalkSpeed<17 then
  1128. playAnimation("walk", 0.1, Humanoid);
  1129. elseif Figure and Humanoid and Humanoid.WalkSpeed>17 then
  1130. playAnimation("run", 0.1, Humanoid);
  1131. end;
  1132. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  1133. stopAllAnimations()
  1134. amplitude = 0.1
  1135. frequency = 1
  1136. setAngles = true
  1137. end
  1138. if (setAngles) then
  1139. local desiredAngle = amplitude * math.sin(time * frequency)
  1140. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  1141. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  1142. RightHip:SetDesiredAngle(-desiredAngle)
  1143. LeftHip:SetDesiredAngle(-desiredAngle)
  1144. end
  1145. -- Tool Animation handling
  1146. local tool = getTool()
  1147. if tool and tool:FindFirstChild("Handle") then
  1148. local animStringValueObject = getToolAnim(tool)
  1149. if animStringValueObject then
  1150. toolAnim = animStringValueObject.Value
  1151. -- message recieved, delete StringValue
  1152. animStringValueObject.Parent = nil
  1153. toolAnimTime = time + .3
  1154. end
  1155. if time > toolAnimTime then
  1156. toolAnimTime = 0
  1157. toolAnim = "None"
  1158. end
  1159. animateTool()
  1160. else
  1161. stopToolAnimations()
  1162. toolAnim = "None"
  1163. toolAnimInstance = nil
  1164. toolAnimTime = 0
  1165. end
  1166. end
  1167. -- connect events
  1168. Humanoid.Died:connect(onDied)
  1169. Humanoid.Running:connect(onRunning)
  1170. Humanoid.Jumping:connect(onJumping)
  1171. Humanoid.Climbing:connect(onClimbing)
  1172. Humanoid.GettingUp:connect(onGettingUp)
  1173. Humanoid.FreeFalling:connect(onFreeFall)
  1174. Humanoid.FallingDown:connect(onFallingDown)
  1175. Humanoid.Seated:connect(onSeated)
  1176. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1177. Humanoid.Swimming:connect(onSwimming)
  1178. local runService = game:GetService("RunService");
  1179. playAnimation("idle", 0.1, Humanoid)
  1180. pose = "Standing"
  1181. while Wait(0)do
  1182. local _,time=wait(0)
  1183. move(time)
  1184. end
  1185. function onTouched(hit)
  1186. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  1187. if player then
  1188. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  1189. end
  1190. end
  1191.  
  1192.  
  1193. script.Parent.Head.Touched:connect(onTouched)
  1194.  
  1195. end))
  1196. AnimateSauce.Name = "AnimateSauce"
  1197. AnimateSauce.Parent = GrannyKiller
  1198.  
  1199. climb.Name = "climb"
  1200. climb.Parent = AnimateSauce
  1201.  
  1202. ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=180436334"
  1203. ClimbAnim.Name = "ClimbAnim"
  1204. ClimbAnim.Parent = climb
  1205.  
  1206. fall.Name = "fall"
  1207. fall.Parent = AnimateSauce
  1208.  
  1209. FallAnim.AnimationId = "http://www.roblox.com/asset/?id=180436148"
  1210. FallAnim.Name = "FallAnim"
  1211. FallAnim.Parent = fall
  1212.  
  1213. idle.Name = "idle"
  1214. idle.Parent = AnimateSauce
  1215.  
  1216. Animation1.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1217. Animation1.Name = "Animation1"
  1218. Animation1.Parent = idle
  1219.  
  1220. Weight.Value = 9
  1221. Weight.Name = "Weight"
  1222. Weight.Parent = Animation1
  1223.  
  1224. Animation2.AnimationId = "http://www.roblox.com/asset/?id=180435792"
  1225. Animation2.Name = "Animation2"
  1226. Animation2.Parent = idle
  1227.  
  1228. Weight_1.Value = 1
  1229. Weight_1.Name = "Weight"
  1230. Weight_1.Parent = Animation2
  1231.  
  1232. jump.Name = "jump"
  1233. jump.Parent = AnimateSauce
  1234.  
  1235. JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  1236. JumpAnim.Name = "JumpAnim"
  1237. JumpAnim.Parent = jump
  1238.  
  1239. run.Name = "run"
  1240. run.Parent = AnimateSauce
  1241.  
  1242. RunAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1243. RunAnim.Name = "RunAnim"
  1244. RunAnim.Parent = run
  1245.  
  1246. sit.Name = "sit"
  1247. sit.Parent = AnimateSauce
  1248.  
  1249. SitAnim.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  1250. SitAnim.Name = "SitAnim"
  1251. SitAnim.Parent = sit
  1252.  
  1253. toolnone.Name = "toolnone"
  1254. toolnone.Parent = AnimateSauce
  1255.  
  1256. ToolNoneAnim.AnimationId = "http://www.roblox.com/asset/?id=182393478"
  1257. ToolNoneAnim.Name = "ToolNoneAnim"
  1258. ToolNoneAnim.Parent = toolnone
  1259.  
  1260. walk.Name = "walk"
  1261. walk.Parent = AnimateSauce
  1262.  
  1263. WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
  1264. WalkAnim.Name = "WalkAnim"
  1265. WalkAnim.Parent = walk
  1266.  
  1267. Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  1268. Humanoid.Health = 500
  1269. Humanoid.HealthDisplayDistance = 0
  1270. Humanoid.JumpPower = 60
  1271. Humanoid.MaxHealth = 500
  1272. Humanoid.MaxSlopeAngle = 89.9
  1273. Humanoid.NameDisplayDistance = 0
  1274. Humanoid.NameOcclusion = Enum.NameOcclusion.EnemyOcclusion
  1275. Humanoid.WalkSpeed = 18
  1276. Humanoid.Parent = GrannyKiller
  1277.  
  1278. Animator.Parent = Humanoid
  1279.  
  1280. Status.Name = "Status"
  1281. Status.Parent = Humanoid
  1282.  
  1283. AvalibleSpawns.Name = "AvalibleSpawns"
  1284. AvalibleSpawns.Parent = Status
  1285.  
  1286. table.insert(functions,sandbox(GarnnyMain,function()
  1287. --[[ By: Brutez. ]]--
  1288. local JeffTheKillerScript=script;
  1289. repeat Wait(0)until JeffTheKillerScript and JeffTheKillerScript.Parent and JeffTheKillerScript.Parent.ClassName=="Model"and JeffTheKillerScript.Parent:FindFirstChild("Head")and JeffTheKillerScript.Parent:FindFirstChild("Torso");
  1290. local JeffTheKiller=JeffTheKillerScript.Parent;
  1291. function raycast(Spos,vec,currentdist)
  1292. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),JeffTheKiller);
  1293. if hit2~=nil and pos2 then
  1294. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  1295. local currentdist=currentdist-(pos2-Spos).magnitude;
  1296. return raycast(pos2,vec,currentdist);
  1297. end;
  1298. end;
  1299. return hit2,pos2;
  1300. end;
  1301. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  1302. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  1303. end;
  1304. --[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]--
  1305. --[[JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
  1306. --[[end;]]--
  1307. local JeffTheKillerHumanoid;
  1308. for _,Child in pairs(JeffTheKiller:GetChildren())do
  1309. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1310. JeffTheKillerHumanoid=Child;
  1311. end;
  1312. end;
  1313. local AttackDebounce=false;
  1314. local JeffTheKillerKnife=JeffTheKiller:FindFirstChild("Knife");
  1315. local JeffTheKillerHead=JeffTheKiller:FindFirstChild("Head");
  1316. local JeffTheKillerHumanoidRootPart=JeffTheKiller:FindFirstChild("HumanoidRootPart");
  1317. local WalkDebounce=false;
  1318. local Notice=false;
  1319. local JeffLaughDebounce=false;
  1320. local MusicDebounce=false;
  1321. local NoticeDebounce=false;
  1322. local ChosenMusic;
  1323. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  1324. local OriginalC0=JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
  1325. function FindNearestBae()
  1326. local NoticeDistance=100;
  1327. local TargetMain;
  1328. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  1329. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and TargetModel.className=="Model"and TargetModel~=JeffTheKiller and TargetModel.Name~=JeffTheKiller.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  1330. local TargetPart=TargetModel:FindFirstChild("Torso");
  1331. local FoundHumanoid;
  1332. for _,Child in pairs(TargetModel:GetChildren())do
  1333. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1334. FoundHumanoid=Child;
  1335. end;
  1336. end;
  1337. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
  1338. TargetMain=TargetPart;
  1339. NoticeDistance=(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude;
  1340. local hit,pos=raycast(JeffTheKillerHumanoidRootPart.Position,(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).unit,500)
  1341. if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("Torso")and hit.Parent:FindFirstChild("Head")then
  1342. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<9 and not AttackDebounce then
  1343. Spawn(function()
  1344. AttackDebounce=true;
  1345. local SwingAnimation=JeffTheKillerHumanoid:LoadAnimation(JeffTheKiller:FindFirstChild("Swing"));
  1346. local SwingChoice=math.random(1,2);
  1347. local HitChoice=math.random(1,3);
  1348. SwingAnimation:Play();
  1349. SwingAnimation:AdjustSpeed(1.5+(math.random()*0.1));
  1350. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Swing")then
  1351. local SwingSound=JeffTheKillerKnife:FindFirstChild("Swing");
  1352. SwingSound.Pitch=1+(math.random()*0.04);
  1353. SwingSound:Play();
  1354. end;
  1355. Wait(0.3);
  1356. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<8 then
  1357. FoundHumanoid:TakeDamage(30);
  1358. if HitChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit1")then
  1359. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit1");
  1360. HitSound.Pitch=1+(math.random()*0.04);
  1361. HitSound:Play();
  1362. elseif HitChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit2")then
  1363. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit2");
  1364. HitSound.Pitch=1+(math.random()*0.04);
  1365. HitSound:Play();
  1366. elseif HitChoice==3 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit3")then
  1367. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit3");
  1368. HitSound.Pitch=1+(math.random()*0.04);
  1369. HitSound:Play();
  1370. end;
  1371. end;
  1372. Wait(0.1);
  1373. AttackDebounce=false;
  1374. end);
  1375. end;
  1376. end;
  1377. end;
  1378. end;
  1379. end;
  1380. return TargetMain;
  1381. end;
  1382. while Wait(0)do
  1383. local TargetPoint=JeffTheKillerHumanoid.TargetPoint;
  1384. local Blockage,BlockagePos=RayCast((JeffTheKillerHumanoidRootPart.CFrame+CFrame.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(TargetPoint.X,JeffTheKillerHumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(JeffTheKillerHumanoidRootPart.Size.Z/2)).p,JeffTheKillerHumanoidRootPart.CFrame.lookVector,(JeffTheKillerHumanoidRootPart.Size.Z*2.5),{JeffTheKiller,JeffTheKiller})
  1385. local Jumpable=false;
  1386. if Blockage then
  1387. Jumpable=true;
  1388. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  1389. local BlockageHumanoid;
  1390. for _,Child in pairs(Blockage.Parent:GetChildren())do
  1391. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1392. BlockageHumanoid=Child;
  1393. end;
  1394. end;
  1395. if Blockage and Blockage:IsA("Terrain")then
  1396. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  1397. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  1398. if CellMaterial==Enum.CellMaterial.Water then
  1399. Jumpable=false;
  1400. end;
  1401. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Hat"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Tool"then
  1402. Jumpable=false;
  1403. end;
  1404. end;
  1405. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and not JeffTheKillerHumanoid.Sit and Jumpable then
  1406. JeffTheKillerHumanoid.Jump=true;
  1407. end;
  1408. end;
  1409. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHumanoidRootPart and JeffTheKillerHead:FindFirstChild("Jeff_Step")and (JeffTheKillerHumanoidRootPart.Velocity-Vector3.new(0,JeffTheKillerHumanoidRootPart.Velocity.y,0)).magnitude>=5 and not WalkDebounce and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1410. Spawn(function()
  1411. WalkDebounce=true;
  1412. local FiredRay=Ray.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
  1413. local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,JeffTheKiller);
  1414. if RayTarget then
  1415. local JeffTheKillerHeadFootStepClone=JeffTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
  1416. JeffTheKillerHeadFootStepClone.Parent=JeffTheKillerHead;
  1417. JeffTheKillerHeadFootStepClone:Play();
  1418. JeffTheKillerHeadFootStepClone:Destroy();
  1419. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed<17 then
  1420. Wait(0.4);
  1421. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed>17 then
  1422. Wait(0.15);
  1423. end
  1424. end;
  1425. WalkDebounce=false;
  1426. end);
  1427. end;
  1428. local MainTarget=FindNearestBae();
  1429. local FoundHumanoid;
  1430. if MainTarget then
  1431. for _,Child in pairs(MainTarget.Parent:GetChildren())do
  1432. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1433. FoundHumanoid=Child;
  1434. end;
  1435. end;
  1436. end;
  1437. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
  1438. JeffTheKillerHumanoid.Jump=true;
  1439. end;
  1440. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<25 then
  1441. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and not JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  1442. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=1;
  1443. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Play();
  1444. end;
  1445. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>25 then
  1446. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  1447. if not JeffLaughDebounce then
  1448. Spawn(function()
  1449. JeffLaughDebounce=true;
  1450. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
  1451. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  1452. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  1453. JeffLaughDebounce=false;
  1454. end);
  1455. end;
  1456. end;
  1457. end;
  1458. if not ChosenMusic and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<50 then
  1459. local MusicChoice=math.random(1,2);
  1460. if MusicChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1")then
  1461. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1");
  1462. elseif MusicChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2")then
  1463. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2");
  1464. end;
  1465. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
  1466. ChosenMusic.Volume=0.5;
  1467. ChosenMusic:Play();
  1468. end;
  1469. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>50 then
  1470. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
  1471. if not MusicDebounce then
  1472. Spawn(function()
  1473. MusicDebounce=true;
  1474. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  1475. if ChosenMusic then
  1476. ChosenMusic.Volume=0;
  1477. ChosenMusic:Stop();
  1478. end;
  1479. ChosenMusic=nil;
  1480. MusicDebounce=false;
  1481. end);
  1482. end;
  1483. end;
  1484. end;
  1485. if not MainTarget and not JeffLaughDebounce then
  1486. Spawn(function()
  1487. JeffLaughDebounce=true;
  1488. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
  1489. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  1490. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  1491. JeffLaughDebounce=false;
  1492. end);
  1493. end;
  1494. if not MainTarget and not MusicDebounce then
  1495. Spawn(function()
  1496. MusicDebounce=true;
  1497. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  1498. if ChosenMusic then
  1499. ChosenMusic.Volume=0;
  1500. ChosenMusic:Stop();
  1501. end;
  1502. ChosenMusic=nil;
  1503. MusicDebounce=false;
  1504. end);
  1505. end;
  1506. if MainTarget then
  1507. Notice=true;
  1508. if Notice and not NoticeDebounce and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Susto2")then
  1509. JeffTheKillerHead:FindFirstChild("Jeff_Susto2"):Play();
  1510. NoticeDebounce=true;
  1511. end
  1512. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1513. if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>5 then
  1514. JeffTheKillerHumanoid.WalkSpeed=18.5;
  1515. elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<5 then
  1516. JeffTheKillerHumanoid.WalkSpeed=0.004;
  1517. end;
  1518. JeffTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1519. local NeckRotation=(JeffTheKiller:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
  1520. if NeckRotation>-1.5 and NeckRotation<1.5 then
  1521. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
  1522. end;
  1523. if NeckRotation<-1.5 then
  1524. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,-0.993636549,0.112633869,0,0.112633869,0.993636549);
  1525. elseif NeckRotation>1.5 then
  1526. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0.996671617,0.081521146,0,0.081521146,-0.996671617);
  1527. end;
  1528. else
  1529. end;
  1530. else
  1531. Notice=false;
  1532. NoticeDebounce=false;
  1533. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  1534. local RandomWalk=math.random(1,150);
  1535. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  1536. JeffTheKillerHumanoid.WalkSpeed=12;
  1537. if RandomWalk==1 then
  1538. JeffTheKillerHumanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
  1539. end;
  1540. end;
  1541. end;
  1542. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid then
  1543. JeffTheKillerHumanoid.DisplayDistanceType="None";
  1544. JeffTheKillerHumanoid.HealthDisplayDistance=0;
  1545. JeffTheKillerHumanoid.Name="Humanoid";
  1546. JeffTheKillerHumanoid.NameDisplayDistance=0;
  1547. JeffTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
  1548. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  1549. JeffTheKillerHumanoid.AutoRotate=true;
  1550. JeffTheKillerHumanoid.MaxHealth=500;
  1551. JeffTheKillerHumanoid.JumpPower=60;
  1552. JeffTheKillerHumanoid.MaxSlopeAngle=89.9;
  1553. end;
  1554. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoJumpEnabled then
  1555. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  1556. end;
  1557. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoRotate then
  1558. JeffTheKillerHumanoid.AutoRotate=true;
  1559. end;
  1560. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.PlatformStand then
  1561. JeffTheKillerHumanoid.PlatformStand=false;
  1562. end;
  1563. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Sit then
  1564. JeffTheKillerHumanoid.Sit=false;
  1565. end;
  1566. end;
  1567. --[[ By: Brutez. ]]--
  1568. function onTouched(hit)
  1569. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  1570. if player then
  1571. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  1572. end
  1573. end
  1574.  
  1575.  
  1576. script.Parent.Head.Touched:connect(onTouched)
  1577.  
  1578. end))
  1579. GarnnyMain.Name = "GarnnyMain"
  1580. GarnnyMain.Parent = GrannyKiller
  1581.  
  1582. table.insert(functions,sandbox(Health,function()
  1583. --Responsible for regening a player's humanoid's health
  1584.  
  1585. -- declarations
  1586. local Figure = script.Parent
  1587. local Head = Figure:WaitForChild("Head")
  1588. local Humanoid;
  1589. for _,Child in pairs(Figure:GetChildren())do
  1590. if Child and Child.ClassName=="Humanoid"then
  1591. Humanoid=Child;
  1592. end;
  1593. end;
  1594. local regening = false
  1595.  
  1596. -- regeneration
  1597. function regenHealth()
  1598. if regening then return end
  1599. regening = true
  1600.  
  1601. while Humanoid.Health < Humanoid.MaxHealth do
  1602. local s = wait(1)
  1603. local health = Humanoid.Health
  1604. if health~=0 and health < Humanoid.MaxHealth then
  1605. local newHealthDelta = 0.01 * s * Humanoid.MaxHealth
  1606. health = health + newHealthDelta
  1607. Humanoid.Health = math.min(health,Humanoid.MaxHealth)
  1608. end
  1609. end
  1610.  
  1611. if Humanoid.Health > Humanoid.MaxHealth then
  1612. Humanoid.Health = Humanoid.MaxHealth
  1613. end
  1614.  
  1615. regening = false
  1616. end
  1617.  
  1618. Humanoid.HealthChanged:connect(regenHealth)
  1619.  
  1620. function onTouched(hit)
  1621. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  1622. if player then
  1623. game:GetService("TeleportService"):Teleport(1702114734,player) --replace the numbers with your place id
  1624. end
  1625. end
  1626.  
  1627.  
  1628. script.Parent.Head.Touched:connect(onTouched)
  1629.  
  1630. end))
  1631. Health.Name = "Health"
  1632. Health.Parent = GrannyKiller
  1633.  
  1634. table.insert(functions,sandbox(Respawn_1,function()
  1635. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1636. local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
  1637. local AdvancedRespawnScript=script;
  1638. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  1639. local JeffTheKiller=AdvancedRespawnScript.Parent;
  1640. if AdvancedRespawnScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then
  1641. JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();
  1642. end;
  1643. local GameDerbis=Game:GetService("Debris");
  1644. local JeffTheKillerHumanoid;
  1645. for _,Child in pairs(JeffTheKiller:GetChildren())do
  1646. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  1647. JeffTheKillerHumanoid=Child;
  1648. end;
  1649. end;
  1650. local Respawndant=JeffTheKiller:Clone();
  1651. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  1652. coroutine.resume(coroutine.create(function()
  1653. if JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid:FindFirstChild("Status")and not JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  1654. SpawnModel=Instance.new("Model");
  1655. SpawnModel.Parent=JeffTheKillerHumanoid.Status;
  1656. SpawnModel.Name="AvalibleSpawns";
  1657. else
  1658. SpawnModel=JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  1659. end;
  1660. function FindSpawn(SearchValue)
  1661. local PartsArchivable=SearchValue:GetChildren();
  1662. for AreaSearch=1,#PartsArchivable do
  1663. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  1664. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  1665. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  1666. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  1667. end;
  1668. FindSpawn(PartsArchivable[AreaSearch]);
  1669. end;
  1670. end;
  1671. FindSpawn(Game:GetService("Workspace"));
  1672. local SpawnChilden=SpawnModel:GetChildren();
  1673. if#SpawnChilden>0 then
  1674. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  1675. local RespawningForceField=Instance.new("ForceField");
  1676. RespawningForceField.Parent=JeffTheKiller;
  1677. RespawningForceField.Name="SpawnForceField";
  1678. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  1679. JeffTheKiller:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  1680. else
  1681. if JeffTheKiller:FindFirstChild("SpawnForceField")then
  1682. JeffTheKiller:FindFirstChild("SpawnForceField"):Destroy();
  1683. end;
  1684. JeffTheKiller:MoveTo(Vector3.new(0,115,0));
  1685. end;
  1686. end));
  1687. end;
  1688. function Respawn()
  1689. Wait(5);
  1690. Respawndant.Parent=JeffTheKiller.Parent;
  1691. Respawndant:makeJoints();
  1692. Respawndant:FindFirstChild("Head"):MakeJoints();
  1693. Respawndant:FindFirstChild("Torso"):MakeJoints();
  1694. JeffTheKiller:remove();
  1695. end;
  1696. if AdvancedRespawnScript and JeffTheKiller and JeffTheKillerHumanoid then
  1697. JeffTheKillerHumanoid.Died:connect(Respawn);
  1698. end;
  1699. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  1700. end))
  1701. Respawn_1.Name = "Respawn"
  1702. Respawn_1.Parent = GrannyKiller
  1703.  
  1704. Swing.AnimationId = "rbxassetid://233535408"
  1705. Swing.Name = "Swing"
  1706. Swing.Parent = GrannyKiller
  1707.  
  1708. ThumbnailCamera.CFrame = CFrame.new(-41.201,2.932,-106.055,-0.544,-0.04,0.838,0,0.999,0.048,-0.839,0.026,-0.544)
  1709. ThumbnailCamera.Focus = CFrame.new(-42.877,2.835,-104.968,1,0,0,0,1,0,0,0,1)
  1710. ThumbnailCamera.Name = "ThumbnailCamera"
  1711. ThumbnailCamera.Parent = GrannyKiller
  1712.  
  1713. Sign.Name = "Sign"
  1714. Sign.Parent = GrannyKiller
  1715.  
  1716. Part_9.Anchored = true
  1717. Part_9.CFrame = CFrame.new(25.282,2.4,-33.095,-0.174,0,-0.985,0,1,0,0.985,0,-0.174)
  1718. Part_9.Color = Color3.new(0.412,0.251,0.157)
  1719. Part_9.Material = Enum.Material.WoodPlanks
  1720. Part_9.Size = Vector3.new(0.4,4.8,0.2)
  1721. Part_9.Parent = Sign
  1722.  
  1723. ParttoPartStrongJoint.C0 = CFrame.new(0.2,-2.4,-0.1,-1,0,0,0,1,0,0,0,-1)
  1724. ParttoPartStrongJoint.C1 = CFrame.new(0.2,-3.5,0.1,-1,0,0,0,1,0,0,0,-1)
  1725. ParttoPartStrongJoint.Part0 = Part_9
  1726. ParttoPartStrongJoint.Part1 = Part_10
  1727. ParttoPartStrongJoint.Name = "Part-to-Part Strong Joint"
  1728. ParttoPartStrongJoint.Parent = Part_9
  1729.  
  1730. PartTerrainJoint.Part1 = Part_9
  1731. PartTerrainJoint.Name = "Part Terrain Joint"
  1732. PartTerrainJoint.Parent = Part_9
  1733.  
  1734. Part_10.Anchored = true
  1735. Part_10.CFrame = CFrame.new(25.479,3.5,-33.061,-0.174,0,-0.985,0,1,0,0.985,0,-0.174)
  1736. Part_10.Color = Color3.new(0.412,0.251,0.157)
  1737. Part_10.Material = Enum.Material.WoodPlanks
  1738. Part_10.Size = Vector3.new(4,2.2,0.2)
  1739. Part_10.Parent = Sign
  1740.  
  1741. ParttoTextStrongJoint.C0 = CFrame.new(2,-1.1,-0.1,-1,0,0,0,1,0,0,0,-1)
  1742. ParttoTextStrongJoint.C1 = CFrame.new(2.015,-1.105,0.1,-1,0,0,0,1,0,0,0,-1)
  1743. ParttoTextStrongJoint.Part0 = Part_10
  1744. ParttoTextStrongJoint.Part1 = Text
  1745. ParttoTextStrongJoint.Name = "Part-to-Text Strong Joint"
  1746. ParttoTextStrongJoint.Parent = Part_10
  1747.  
  1748. Text.Anchored = true
  1749. Text.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1750. Text.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1751. Text.CFrame = CFrame.new(25.678,3.505,-33.041,-0.174,0,-0.985,0,1,0,0.985,0,-0.174)
  1752. Text.Color = Color3.new(0.412,0.251,0.157)
  1753. Text.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1754. Text.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1755. Text.Material = Enum.Material.WoodPlanks
  1756. Text.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1757. Text.Size = Vector3.new(3.97,2.21,0.2)
  1758. Text.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1759. Text.Name = "Text"
  1760. Text.Parent = Sign
  1761.  
  1762. SurfaceGui.CanvasSize = Vector2.new(200,100)
  1763. SurfaceGui.Parent = Text
  1764.  
  1765. TextLabel.Font = Enum.Font.ArialBold
  1766. TextLabel.Text = "DONT OPEN!!!!!!!"
  1767. TextLabel.TextColor3 = Color3.new(0.604,0.604,0.604)
  1768. TextLabel.TextScaled = true
  1769. TextLabel.TextSize = 12
  1770. TextLabel.TextStrokeColor3 = Color3.new(0.227,0.227,0.227)
  1771. TextLabel.TextStrokeTransparency = 0
  1772. TextLabel.TextWrapped = true
  1773. TextLabel.Active = true
  1774. TextLabel.BackgroundColor3 = Color3.new(1,1,1)
  1775. TextLabel.BackgroundTransparency = 1
  1776. TextLabel.Size = UDim2.new(UDim.new(1,0),UDim.new(1,0))
  1777. TextLabel.Transparency = 1
  1778. TextLabel.Parent = SurfaceGui
  1779.  
  1780.  
  1781. for i,v in ipairs(functions) do
  1782. spawn(function()
  1783. pcall(v)
  1784. end)
  1785. end
  1786. for i,v in ipairs(mas:GetChildren()) do
  1787. v.Parent = workspace
  1788. end
  1789. mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement