Advertisement
FloweyTheFlower

Roblox Scripts #49 Fnaf #2

Sep 15th, 2017
8,419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.95 KB | None | 0 0
  1. supersonic = owner --auto defined by ox pls
  2. char = supersonic.Character
  3. me = char
  4. hum = char.Humanoid
  5. torso = char.Torso
  6. head = char.Head
  7.  
  8. extendedaudioinfo = false
  9. audioinfo = false
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. -- Invisibility
  17. local d = char:GetChildren()
  18. for i=1, #d do
  19.         if (d[i].className == "Hat") then
  20.                 d[i]:Destroy()
  21.         end
  22. end
  23. local c = char:GetChildren()
  24. for i =1,#c do
  25. local c = char:GetChildren()
  26. for i =1,#c do
  27.     if c[i].className == "Hat" then
  28. local handle = c[i]:FindFirstChild("Handle")
  29. if handle ~= nil then
  30. handle.Transparency = 1 -- We dont want our hats to tell players that you're not an animatronic, but a player, do we!?
  31. end end
  32. if c[i].className == "Part" then
  33. c[i].Transparency = 1
  34. if c[i].Name == "Torso" then
  35. local tshirt = c[i]:FindFirstChild("roblox")
  36. if tshirt ~= nil then
  37. tshirt:clone().Parent = char
  38. tshirt:remove()
  39. end end
  40. if c[i].Name == "Head" then
  41. local face = c[i]:FindFirstChild("face")
  42. if face ~= nil then
  43. gface = face:clone()
  44. face:remove()
  45. end end end end end
  46.  
  47. mp = game:service('MarketplaceService')
  48.  
  49. hum.MaxHealth = math.huge
  50. hum.Health = math.huge
  51.  
  52.  
  53.  
  54. -- ANIMATRONIC GUI
  55.  
  56. g = Instance.new("BillboardGui")
  57. g.Parent = head
  58. g.Name = "AnimatronicGui"
  59. g.StudsOffset = Vector3.new(-4.8,3,0)
  60.     g.Size = UDim2.new(1.7,0,1.7,0)
  61.  
  62. il = Instance.new("ImageLabel", g)
  63. il.BackgroundTransparency = 1
  64. il.Size = UDim2.new(5,0,5,0)
  65. il.Image = "http://www.roblox.com/asset/?id=206320038"
  66.  
  67. function PlaySound(id, pitch, volume, looped, parent)
  68.         local s = Instance.new("Sound")
  69.         s.Name = "supersonicfan111 Sound Generator Sound: "..id
  70.         s.SoundId = "rbxassetid://"..id
  71.         s.Volume = volume
  72.         s.Pitch = pitch
  73.         s.Looped = looped
  74.         s.archivable = false
  75.         s.Parent = parent
  76.         s:Play()
  77. end
  78.  
  79. PlaySound(186841266, 1, 1, true, me.Head)
  80.  
  81.  
  82.  
  83. while wait(0.5) do
  84. il.Image = "http://www.roblox.com/asset/?id=206320038"
  85. wait(0.5)
  86. il.Image = "http://www.roblox.com/asset/?id=206322111"
  87. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement