Advertisement
End_Wolf

Untitled

Jun 19th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.07 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Part3 = Instance.new("Part")
  23. Part4 = Instance.new("Part")
  24. Part5 = Instance.new("Part")
  25. Part6 = Instance.new("Part")
  26. Part7 = Instance.new("Part")
  27. Motor6D8 = Instance.new("Motor6D")
  28. Motor6D9 = Instance.new("Motor6D")
  29. Motor6D10 = Instance.new("Motor6D")
  30. Motor6D11 = Instance.new("Motor6D")
  31. Motor6D12 = Instance.new("Motor6D")
  32. Part13 = Instance.new("Part")
  33. Motor6D14 = Instance.new("Motor6D")
  34. Script15 = Instance.new("Script")
  35. Script16 = Instance.new("Script")
  36. Part17 = Instance.new("Part")
  37. Decal18 = Instance.new("Decal")
  38. Decal19 = Instance.new("Decal")
  39. Sound20 = Instance.new("Sound")
  40. Sound21 = Instance.new("Sound")
  41. Script22 = Instance.new("Script")
  42. NumberValue23 = Instance.new("NumberValue")
  43. Script24 = Instance.new("Script")
  44. ScreenGui25 = Instance.new("ScreenGui")
  45. ImageLabel26 = Instance.new("ImageLabel")
  46. ImageLabel27 = Instance.new("ImageLabel")
  47. LocalScript28 = Instance.new("LocalScript")
  48. Sound29 = Instance.new("Sound")
  49. Frame30 = Instance.new("Frame")
  50. Frame31 = Instance.new("Frame")
  51. ImageLabel32 = Instance.new("ImageLabel")
  52. LocalScript33 = Instance.new("LocalScript")
  53. Humanoid34 = Instance.new("Humanoid")
  54. Camera35 = Instance.new("Camera")
  55. Model0.Name = " "
  56. Model0.Parent = mas
  57. Part1.Name = "Head"
  58. Part1.Parent = Model0
  59. Part1.CFrame = CFrame.new(134.400558, 4.50045204, 12.0091553, 0.000534999941, 0.000846001378, 0.999999523, -4.49060754e-12, 0.999998927, -0.000846002076, -0.999999881, 4.52606344e-07, 0.000534999766)
  60. Part1.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
  61. Part1.Position = Vector3.new(134.400558, 4.50045204, 12.0091553)
  62. Part1.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
  63. Part1.Color = Color3.new(1, 0.8, 0.6)
  64. Part1.Transparency = 0.99000000953674
  65. Part1.Size = Vector3.new(2, 1, 1)
  66. Part1.BottomSurface = Enum.SurfaceType.Smooth
  67. Part1.BrickColor = BrickColor.new("Pastel brown")
  68. Part1.TopSurface = Enum.SurfaceType.Smooth
  69. Part1.brickColor = BrickColor.new("Pastel brown")
  70. Part1.FormFactor = Enum.FormFactor.Symmetric
  71. Part1.formFactor = Enum.FormFactor.Symmetric
  72. SpecialMesh2.Parent = Part1
  73. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  74. Part3.Name = "Right Arm"
  75. Part3.Parent = Model0
  76. Part3.CFrame = CFrame.new(134.400101, 3.00045395, 10.5091543, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
  77. Part3.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
  78. Part3.Position = Vector3.new(134.400101, 3.00045395, 10.5091543)
  79. Part3.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
  80. Part3.Color = Color3.new(1, 0.8, 0.6)
  81. Part3.Transparency = 1
  82. Part3.Size = Vector3.new(1, 2, 1)
  83. Part3.BottomSurface = Enum.SurfaceType.Smooth
  84. Part3.BrickColor = BrickColor.new("Pastel brown")
  85. Part3.CanCollide = false
  86. Part3.TopSurface = Enum.SurfaceType.Smooth
  87. Part3.brickColor = BrickColor.new("Pastel brown")
  88. Part3.FormFactor = Enum.FormFactor.Symmetric
  89. Part3.formFactor = Enum.FormFactor.Symmetric
  90. Part4.Name = "Left Arm"
  91. Part4.Parent = Model0
  92. Part4.CFrame = CFrame.new(134.398483, 3.00045395, 13.5091543, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
  93. Part4.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
  94. Part4.Position = Vector3.new(134.398483, 3.00045395, 13.5091543)
  95. Part4.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
  96. Part4.Color = Color3.new(1, 0.8, 0.6)
  97. Part4.Transparency = 1
  98. Part4.Size = Vector3.new(1, 2, 1)
  99. Part4.BottomSurface = Enum.SurfaceType.Smooth
  100. Part4.BrickColor = BrickColor.new("Pastel brown")
  101. Part4.CanCollide = false
  102. Part4.TopSurface = Enum.SurfaceType.Smooth
  103. Part4.brickColor = BrickColor.new("Pastel brown")
  104. Part4.FormFactor = Enum.FormFactor.Symmetric
  105. Part4.formFactor = Enum.FormFactor.Symmetric
  106. Part5.Name = "Right Leg"
  107. Part5.Parent = Model0
  108. Part5.CFrame = CFrame.new(134.397873, 1.00045621, 11.5091534, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
  109. Part5.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
  110. Part5.Position = Vector3.new(134.397873, 1.00045621, 11.5091534)
  111. Part5.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
  112. Part5.Color = Color3.new(1, 0.8, 0.6)
  113. Part5.Transparency = 1
  114. Part5.Size = Vector3.new(1, 2, 1)
  115. Part5.BottomSurface = Enum.SurfaceType.Smooth
  116. Part5.BrickColor = BrickColor.new("Pastel brown")
  117. Part5.CanCollide = false
  118. Part5.TopSurface = Enum.SurfaceType.Smooth
  119. Part5.brickColor = BrickColor.new("Pastel brown")
  120. Part5.FormFactor = Enum.FormFactor.Symmetric
  121. Part5.formFactor = Enum.FormFactor.Symmetric
  122. Part6.Name = "Left Leg"
  123. Part6.Parent = Model0
  124. Part6.CFrame = CFrame.new(134.397339, 1.00045621, 12.5091534, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
  125. Part6.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
  126. Part6.Position = Vector3.new(134.397339, 1.00045621, 12.5091534)
  127. Part6.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
  128. Part6.Color = Color3.new(1, 0.8, 0.6)
  129. Part6.Transparency = 1
  130. Part6.Size = Vector3.new(1, 2, 1)
  131. Part6.BottomSurface = Enum.SurfaceType.Smooth
  132. Part6.BrickColor = BrickColor.new("Pastel brown")
  133. Part6.CanCollide = false
  134. Part6.TopSurface = Enum.SurfaceType.Smooth
  135. Part6.brickColor = BrickColor.new("Pastel brown")
  136. Part6.FormFactor = Enum.FormFactor.Symmetric
  137. Part6.formFactor = Enum.FormFactor.Symmetric
  138. Part7.Name = "Torso"
  139. Part7.Parent = Model0
  140. Part7.CFrame = CFrame.new(134.399292, 3.00045395, 12.0091543, 0.000534999941, 0.000846001378, 0.999999523, -4.49060754e-12, 0.999998927, -0.000846002076, -0.999999881, 4.52606344e-07, 0.000534999766)
  141. Part7.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
  142. Part7.Position = Vector3.new(134.399292, 3.00045395, 12.0091543)
  143. Part7.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
  144. Part7.Color = Color3.new(1, 0.8, 0.6)
  145. Part7.Transparency = 1
  146. Part7.Size = Vector3.new(2, 2, 1)
  147. Part7.BottomSurface = Enum.SurfaceType.Smooth
  148. Part7.BrickColor = BrickColor.new("Pastel brown")
  149. Part7.CanCollide = false
  150. Part7.TopSurface = Enum.SurfaceType.Smooth
  151. Part7.brickColor = BrickColor.new("Pastel brown")
  152. Part7.FormFactor = Enum.FormFactor.Symmetric
  153. Part7.formFactor = Enum.FormFactor.Symmetric
  154. Motor6D8.Name = "Left Hip"
  155. Motor6D8.Parent = Part7
  156. Motor6D8.MaxVelocity = 0.10000000149012
  157. Motor6D8.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  158. Motor6D8.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  159. Motor6D8.Part0 = Part7
  160. Motor6D8.Part1 = Part6
  161. Motor6D8.part1 = Part6
  162. Motor6D9.Name = "Right Hip"
  163. Motor6D9.Parent = Part7
  164. Motor6D9.MaxVelocity = 0.10000000149012
  165. Motor6D9.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  166. Motor6D9.C1 = CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  167. Motor6D9.Part0 = Part7
  168. Motor6D9.Part1 = Part5
  169. Motor6D9.part1 = Part5
  170. Motor6D10.Name = "Left Shoulder"
  171. Motor6D10.Parent = Part7
  172. Motor6D10.MaxVelocity = 0.10000000149012
  173. Motor6D10.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  174. Motor6D10.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  175. Motor6D10.Part0 = Part7
  176. Motor6D10.Part1 = Part4
  177. Motor6D10.part1 = Part4
  178. Motor6D11.Name = "Right Shoulder"
  179. Motor6D11.Parent = Part7
  180. Motor6D11.MaxVelocity = 0.10000000149012
  181. Motor6D11.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  182. Motor6D11.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  183. Motor6D11.Part0 = Part7
  184. Motor6D11.Part1 = Part3
  185. Motor6D11.part1 = Part3
  186. Motor6D12.Name = "Neck"
  187. Motor6D12.Parent = Part7
  188. Motor6D12.MaxVelocity = 0.10000000149012
  189. Motor6D12.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  190. Motor6D12.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  191. Motor6D12.Part0 = Part7
  192. Motor6D12.Part1 = Part1
  193. Motor6D12.part1 = Part1
  194. Part13.Name = "HumanoidRootPart"
  195. Part13.Parent = Model0
  196. Part13.CFrame = CFrame.new(134.399292, 3.00045395, 12.0091543, 0.000534999941, 0.000846001378, 0.999999523, -4.49060754e-12, 0.999998927, -0.000846002076, -0.999999881, 4.52606344e-07, 0.000534999766)
  197. Part13.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
  198. Part13.Position = Vector3.new(134.399292, 3.00045395, 12.0091543)
  199. Part13.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
  200. Part13.Color = Color3.new(0.0509804, 0.411765, 0.67451)
  201. Part13.Transparency = 1
  202. Part13.Size = Vector3.new(2, 2, 1)
  203. Part13.BottomSurface = Enum.SurfaceType.Smooth
  204. Part13.BrickColor = BrickColor.new("Bright blue")
  205. Part13.TopSurface = Enum.SurfaceType.Smooth
  206. Part13.brickColor = BrickColor.new("Bright blue")
  207. Part13.FormFactor = Enum.FormFactor.Symmetric
  208. Part13.formFactor = Enum.FormFactor.Symmetric
  209. Motor6D14.Name = "Root Hip"
  210. Motor6D14.Parent = Part13
  211. Motor6D14.MaxVelocity = 0.10000000149012
  212. Motor6D14.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  213. Motor6D14.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  214. Motor6D14.Part0 = Part13
  215. Motor6D14.Part1 = Part7
  216. Motor6D14.part1 = Part7
  217. Script15.Name = "AI Chase"
  218. Script15.Parent = Model0
  219. table.insert(cors,sandbox(Script15,function()
  220. -- 22/5/2018: So turns out, Baldi without a humanoid body is too skinny to move --
  221. --DuruTeru
  222. --[[
  223.  
  224. ____________________________________________________________________________________________________________________
  225.  
  226. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  227. ____________________________________________________________________________________________________________________
  228. ___ ___
  229. ( ) ( ) .-.
  230. .--. .--. | |_ | |_ ( __) ___ .-. .--. .--.
  231. / _ \ / \ ( __) ( __) (''") ( ) \ / \ / _ \
  232. . .' `. ; | .-. ; | | | | | | | .-. . ; ,-. ' . .' `. ;
  233. | ' | | | | | | | | ___ | | ___ | | | | | | | | | | | ' | |
  234. _\_`.(___) | |/ | | |( ) | |( ) | | | | | | | | | | _\_`.(___)
  235. ( ). '. | ' _.' | | | | | | | | | | | | | | | | | | ( ). '.
  236. | | `\ | | .'.-. | ' | | | ' | | | | | | | | | ' | | | | `\ |
  237. ; '._,' ' ' `-' / ' `-' ; ' `-' ; | | | | | | ' `-' | ; '._,' '
  238. '.___.' `.__.' `.__. `.__. (___) (___)(___) `.__. | '.___.'
  239. ( `-' ;
  240. `.__.
  241. ____________________________________________________________________________________________________________________
  242.  
  243. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  244. ____________________________________________________________________________________________________________________
  245.  
  246. --]]
  247.  
  248.  
  249. local SearchDistance = 100000 -- How far a player can be before it detects you
  250.  
  251. local ZombieDamage = 0 -- How much damage the Zombie inficts towards the player
  252.  
  253. --[[
  254.  
  255. ____________________________________________________________________________________________________________________
  256.  
  257. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  258. ____________________________________________________________________________________________________________________
  259.  
  260. -- OPTIONAL --]]
  261.  
  262. local canWander = false
  263. local WanderX, WanderZ = 30, 30
  264. -- How many studs the zombie can wander on the x and z axis in studs
  265.  
  266. --]]
  267.  
  268.  
  269. function getHumanoid(model)
  270. for _, v in pairs(model:GetChildren()) do
  271. if v:IsA'Humanoid' then
  272. return v
  273. end
  274. end
  275. end
  276.  
  277.  
  278. local zombie = script.Parent
  279. local human = getHumanoid(zombie)
  280. local hroot = zombie.HumanoidRootPart
  281. local zspeed = hroot.Velocity.magnitude
  282.  
  283.  
  284. local pfs = game:GetService("PathfindingService")
  285.  
  286. function GetPlayerNames()
  287. local players = game:GetService('Players'):GetChildren()
  288. local name = nil
  289. for _, v in pairs(players) do
  290. if v:IsA'Player' then
  291. name = tostring(v.Name)
  292. end
  293. end
  294. return name
  295. end
  296.  
  297. spawn(function()
  298. while wait() do
  299. print("THIS BALDI MODEL WAS MADE BY ANPHU04, DO NOT TRUST ANYBODY THAT USES THIS!")
  300. end
  301. end)
  302.  
  303. function GetPlayersBodyParts(t)
  304. local torso = t
  305. if torso then
  306. local figure = torso.Parent
  307. for _, v in pairs(figure:GetChildren()) do
  308. if v:IsA'Part' then
  309. return v.Name
  310. end
  311. end
  312. else
  313. return "HumanoidRootPart"
  314. end
  315. end
  316.  
  317. function GetTorso(part)
  318. local chars = game.Workspace:GetChildren()
  319. local torso = nil
  320. for _, v in pairs(chars) do
  321. if v:IsA'Model' and v ~= script.Parent and v.Name == GetPlayerNames() then
  322. local charRoot = v:FindFirstChild'HumanoidRootPart'
  323. if (charRoot.Position - part).magnitude < SearchDistance then
  324. torso = charRoot
  325. end
  326. end
  327. end
  328. return torso
  329. end
  330.  
  331. for _, zambieparts in pairs(zombie:GetChildren()) do
  332. if zambieparts:IsA'Part' then
  333. zambieparts.Touched:connect(function(p)
  334. if p.Parent.Name == GetPlayerNames() and p.Parent.Name ~= zombie.Name then -- damage
  335. local enemy = p.Parent
  336. local enemyhuman = getHumanoid(enemy)
  337. enemyhuman:TakeDamage(ZombieDamage)
  338. end
  339. end)
  340. end
  341. end
  342.  
  343. -- no touchy
  344. local path
  345. local waypoint
  346. local oldpoints
  347. local isWandering = 0
  348.  
  349. if canWander then
  350. spawn(function()
  351. while isWandering == 0 do
  352. isWandering = 1
  353. local desgx, desgz = hroot.Position.x + math.random(-WanderX, WanderX), hroot.Position.z + math.random(-WanderZ, WanderZ)
  354. human:MoveTo( Vector3.new(desgx, 0, desgz) )
  355. wait(math.random(4, 6))
  356. isWandering = 0
  357. end
  358. end)
  359. end
  360.  
  361. while wait() do
  362. local enemytorso = GetTorso(hroot.Position)
  363. if enemytorso ~= nil then -- if player detected
  364. isWandering = 1
  365. local function checkw(t)
  366. local ci = 3
  367. if ci > #t then
  368. ci = 3
  369. end
  370. if t[ci] == nil and ci < #t then
  371. repeat
  372. ci = ci + 1
  373. wait()
  374. until t[ci] ~= nil
  375. return Vector3.new(1, 0, 0) + t[ci]
  376. else
  377. ci = 3
  378. return t[ci]
  379. end
  380. end
  381.  
  382. path = pfs:FindPathAsync(hroot.Position, enemytorso.Position)
  383. waypoint = path:GetWaypoints()
  384. oldpoints = waypoint
  385. local connection;
  386.  
  387. local direct = Vector3.FromNormalId(Enum.NormalId.Front)
  388. local ncf = hroot.CFrame * CFrame.new(direct)
  389. direct = ncf.p.unit
  390. local rootr = Ray.new(hroot.Position, direct)
  391. local phit, ppos = game.Workspace:FindPartOnRay(rootr, hroot)
  392.  
  393. if path and waypoint or checkw(waypoint) then
  394. if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Walk then
  395. human:MoveTo( checkw(waypoint).Position )
  396. human.Jump = false
  397. end
  398.  
  399. -- CANNOT LET BALDI JUMPS --
  400. --[[if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Jump then
  401. human.Jump = true
  402. connection = human.Changed:connect(function()
  403. human.Jump = true
  404. end)
  405. human:MoveTo( checkw(waypoint).Position )
  406. else
  407. human.Jump = false
  408. end]]
  409.  
  410. --[[hroot.Touched:connect(function(p)
  411. local bodypartnames = GetPlayersBodyParts(enemytorso)
  412. if p:IsA'Part' and not p.Name == bodypartnames and phit and phit.Name ~= bodypartnames and phit:IsA'Part' and rootr:Distance(phit.Position) < 5 then
  413. connection = human.Changed:connect(function()
  414. human.Jump = true
  415. end)
  416. else
  417. human.Jump = false
  418. end
  419. end)]]
  420.  
  421. if connection then
  422. connection:Disconnect()
  423. end
  424.  
  425. else
  426. for i = 3, #oldpoints do
  427. human:MoveTo( oldpoints[i].Position )
  428. end
  429. end
  430. elseif enemytorso == nil and canWander then -- if player not detected
  431. isWandering = 0
  432. path = nil
  433. waypoint = nil
  434. human.MoveToFinished:Wait()
  435. end
  436. end
  437. end))
  438. Script16.Name = "Movement"
  439. Script16.Parent = Model0
  440. table.insert(cors,sandbox(Script16,function()
  441. -- 21/5/2018 --
  442. -- SLAPPING INTENSIFIES --
  443. local npc = script.Parent
  444. local hum = npc.Humanoid
  445. local speed = npc.Speed
  446. local decalp = npc.DecalPart
  447.  
  448. while true do
  449. local waittime = 2/speed.Value
  450. local oldwalkspeed = hum.WalkSpeed
  451. decalp.Front.Texture = "http://www.roblox.com/asset/?id=1814500416"
  452. decalp.Back.Texture = "http://www.roblox.com/asset/?id=1814500416"
  453. decalp.Slap:Play()
  454.  
  455. wait(0.4)
  456.  
  457. hum.WalkSpeed = 0
  458. decalp.Front.Texture = "http://www.roblox.com/asset/?id=1814499405"
  459. decalp.Back.Texture = "http://www.roblox.com/asset/?id=1814499405"
  460.  
  461. wait(waittime)
  462.  
  463. hum.WalkSpeed = oldwalkspeed
  464. end
  465.  
  466. end))
  467. Part17.Name = "DecalPart"
  468. Part17.Parent = Model0
  469. Part17.CFrame = CFrame.new(134.399002, 4.20001507, 12.2324219, -5.82076609e-11, 1.10594556e-09, 1, -2.30215846e-12, 0.999999642, -1.68802217e-09, -1, -2.61479727e-12, 5.82076609e-11)
  470. Part17.Orientation = Vector3.new(0, 90, 0)
  471. Part17.Position = Vector3.new(134.399002, 4.20001507, 12.2324219)
  472. Part17.Rotation = Vector3.new(0, 90, 0)
  473. Part17.Transparency = 1
  474. Part17.Size = Vector3.new(4.19999886, 8.39999962, 0.113513507)
  475. Part17.BottomSurface = Enum.SurfaceType.Smooth
  476. Part17.CanCollide = false
  477. Part17.TopSurface = Enum.SurfaceType.Smooth
  478. Decal18.Name = "Front"
  479. Decal18.Parent = Part17
  480. Decal18.Texture = "rbxassetid://1814499405"
  481. Decal19.Name = "Back"
  482. Decal19.Parent = Part17
  483. Decal19.Texture = "rbxassetid://1814499405"
  484. Decal19.Face = Enum.NormalId.Back
  485. Sound20.Name = "Slap"
  486. Sound20.Parent = Part17
  487. Sound20.Pitch = 2
  488. Sound20.PlaybackSpeed = 2
  489. Sound20.SoundId = "rbxassetid://511340819"
  490. Sound20.Volume = 1
  491. Sound21.Name = "Static"
  492. Sound21.Parent = Part17
  493. Sound21.Pitch = 2
  494. Sound21.PlaybackSpeed = 2
  495. Sound21.SoundId = "rbxassetid://223103466"
  496. Sound21.Volume = 0.10000000149012
  497. Script22.Name = "BaldiWeld"
  498. Script22.Parent = Model0
  499. table.insert(cors,sandbox(Script22,function()
  500. -- 21/5/2018 --
  501. -- We can already make the decal part anchored and move it along with the rootpart
  502. function weld(thing)
  503. local w = Instance.new("Weld")
  504. w.Part0 = script.Parent.HumanoidRootPart
  505. w.Part1 = thing
  506. w.C0 = script.Parent.HumanoidRootPart.CFrame:inverse()
  507. w.C1 = thing.CFrame:inverse()
  508. w.Parent = thing
  509. end
  510. weld(script.Parent.DecalPart)
  511.  
  512. end))
  513. NumberValue23.Name = "Speed"
  514. NumberValue23.Parent = Model0
  515. NumberValue23.Value = 1
  516. Script24.Name = "Jumpscare"
  517. Script24.Parent = Model0
  518. table.insert(cors,sandbox(Script24,function()
  519. script.Parent.HumanoidRootPart.Touched:Connect(function(hit)
  520. if hit and hit.Parent then
  521. local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
  522. if plr then
  523. local jumpscare = script.BaldiGui:Clone()
  524. jumpscare.Parent = plr.PlayerGui
  525. end
  526. end
  527. end)
  528.  
  529. end))
  530. ScreenGui25.Name = "BaldiGui"
  531. ScreenGui25.Parent = Script24
  532. ImageLabel26.Name = "le baldi"
  533. ImageLabel26.Parent = ScreenGui25
  534. ImageLabel26.Position = UDim2.new(-0.150000006, 0, -0.800000012, 0)
  535. ImageLabel26.Transparency = 1
  536. ImageLabel26.Size = UDim2.new(2, 0, 8, 0)
  537. ImageLabel26.BackgroundColor = BrickColor.new("Institutional white")
  538. ImageLabel26.BackgroundColor3 = Color3.new(1, 1, 1)
  539. ImageLabel26.BackgroundTransparency = 1
  540. ImageLabel26.Image = "rbxassetid://1814499405"
  541. ImageLabel27.Name = "static bg"
  542. ImageLabel27.Parent = ScreenGui25
  543. ImageLabel27.Position = UDim2.new(0, 0, 0, -50)
  544. ImageLabel27.Transparency = 1
  545. ImageLabel27.Size = UDim2.new(2, 0, 5, 50)
  546. ImageLabel27.BackgroundColor = BrickColor.new("Institutional white")
  547. ImageLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
  548. ImageLabel27.BackgroundTransparency = 1
  549. ImageLabel27.ZIndex = 0
  550. ImageLabel27.Image = "rbxassetid://757589434"
  551. ImageLabel27.ImageTransparency = 0.25
  552. LocalScript28.Name = "DIE"
  553. LocalScript28.Parent = ScreenGui25
  554. table.insert(cors,sandbox(LocalScript28,function()
  555. -- updated 5/27/2018 --
  556. plr = game.Players.LocalPlayer
  557. if not plr:FindFirstChild('Static') then
  558. local static = script.Parent.Static:Clone()
  559. static.Parent = plr
  560. static:Play()
  561. game.Debris:AddItem(static, 5) -- wait all the way until player restarts to avoid playing too many times
  562. end
  563. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  564. wait(2)
  565. script.Parent["black bg"].Visible = true
  566. script.Parent["fidget spinner frame"].Visible = true
  567.  
  568. end))
  569. Sound29.Name = "Static"
  570. Sound29.Parent = ScreenGui25
  571. Sound29.SoundId = "rbxassetid://1784592449"
  572. Sound29.Volume = 1
  573. Frame30.Name = "black bg"
  574. Frame30.Parent = ScreenGui25
  575. Frame30.Position = UDim2.new(0, 0, 0, -50)
  576. Frame30.Visible = false
  577. Frame30.Size = UDim2.new(1, 0, 1, 50)
  578. Frame30.BackgroundColor = BrickColor.new("Really black")
  579. Frame30.BackgroundColor3 = Color3.new(0, 0, 0)
  580. Frame30.ZIndex = 2
  581. Frame31.Name = "fidget spinner frame"
  582. Frame31.Parent = ScreenGui25
  583. Frame31.Position = UDim2.new(0.495000005, 0, 0.495000005, 0)
  584. Frame31.Visible = false
  585. Frame31.Size = UDim2.new(0.00999999978, 0, 0.00999999978, 0)
  586. Frame31.BackgroundColor = BrickColor.new("Institutional white")
  587. Frame31.BackgroundColor3 = Color3.new(1, 1, 1)
  588. Frame31.SizeConstraint = Enum.SizeConstraint.RelativeXX
  589. Frame31.ZIndex = 2
  590. ImageLabel32.Name = "fidget spinner"
  591. ImageLabel32.Parent = Frame31
  592. ImageLabel32.Position = UDim2.new(-7, 0, -5.5, 0)
  593. ImageLabel32.Transparency = 1
  594. ImageLabel32.Size = UDim2.new(15, 0, 15, 0)
  595. ImageLabel32.BackgroundColor = BrickColor.new("Institutional white")
  596. ImageLabel32.BackgroundColor3 = Color3.new(1, 1, 1)
  597. ImageLabel32.BackgroundTransparency = 1
  598. ImageLabel32.SizeConstraint = Enum.SizeConstraint.RelativeXX
  599. ImageLabel32.ZIndex = 2
  600. ImageLabel32.Image = "rbxassetid://1341253466"
  601. LocalScript33.Name = "spin that fidget"
  602. LocalScript33.Parent = Frame31
  603. table.insert(cors,sandbox(LocalScript33,function()
  604. -- 5/27/2018 --
  605. sp = script.Parent
  606. run = game:GetService("RunService")
  607. run.RenderStepped:Connect(function()
  608. sp.Rotation = sp.Rotation + 1
  609. end)
  610.  
  611. end))
  612. Humanoid34.Parent = Model0
  613. Humanoid34.LeftLeg = Part6
  614. Humanoid34.RightLeg = Part5
  615. Humanoid34.Torso = Part13
  616. Humanoid34.WalkSpeed = 100
  617. Camera35.Name = "ThumbnailCamera"
  618. Camera35.Parent = Model0
  619. Camera35.CFrame = CFrame.new(4.59766006, 7.01343536, -8.30550957, -0, -0.0157017708, 0.999876738, -0, 0.999876738, 0.0157017708, -1, 0, -0)
  620. Camera35.CoordinateFrame = CFrame.new(4.59766006, 7.01343536, -8.30550957, -0, -0.0157017708, 0.999876738, -0, 0.999876738, 0.0157017708, -1, 0, -0)
  621. Camera35.Focus = CFrame.new(2.59790659, 6.98203182, -8.30550957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  622. Camera35.focus = CFrame.new(2.59790659, 6.98203182, -8.30550957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  623. for i,v in pairs(mas:GetChildren()) do
  624. v.Parent = workspace
  625. pcall(function() v:MakeJoints() end)
  626. end
  627. mas:Destroy()
  628. for i,v in pairs(cors) do
  629. spawn(function()
  630. pcall(v)
  631. end)
  632. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement