Advertisement
TheClassicMeme

sound test 4 -._-.

Jun 3rd, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. local lp = game.Players.LocalPlayer
  2. local chr = lp.Character
  3. local mouse = lp:GetMouse()
  4. local euler = CFrame.fromEulerAnglesXYZ
  5. local rad = math.rad
  6. local trso = chr.Torso
  7. local la = Instance.new("Weld",chr['Left Arm'])
  8. la.Part0=chr['Left Arm']
  9. la.Part1=chr.Torso
  10. la.C0=CFrame.new(1.5,0,0)
  11. local rot = 0
  12.  
  13. local ContentProvider = Game:GetService("ContentProvider")
  14.  
  15. local function LoadAssets(AssetList)
  16. -- Takes an asset list and preloads it. Will not wait for them to load.
  17.  
  18. for _, AssetId in pairs(AssetList) do
  19. ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
  20. end
  21. end
  22.  
  23. LoadAssets({203654824, 192187815, 179678714, 193107910, 187990139})
  24.  
  25.  
  26.  
  27.  
  28. if chr:FindFirstChild("Shirt") then
  29. chr.Shirt:destroy()
  30. end
  31.  
  32. if chr:FindFirstChild("Pants") then
  33. chr.Pants:destroy()
  34. end
  35.  
  36. colors = chr['Body Colors']
  37.  
  38. colors.HeadColor = BrickColor.new("Really black")
  39. colors.TorsoColor = BrickColor.new("Really black")
  40. colors.LeftArmColor = BrickColor.new("Really black")
  41. colors.RightArmColor = BrickColor.new("Really black")
  42. colors.LeftLegColor = BrickColor.new("Really black")
  43. colors.RightLegColor = BrickColor.new("Really black")
  44.  
  45.  
  46. local face = chr.Head:FindFirstChild("face")
  47.  
  48. if face then
  49. face.Texture = "http://www.roblox.com/asset/?id=0"
  50. end
  51.  
  52. for i,v in pairs(chr:children()) do
  53. if v.ClassName == "Hat" then
  54. print(v.Name.." has been removed, #baldforbieber")
  55. v:destroy()
  56. end
  57. end
  58.  
  59.  
  60.  
  61.  
  62.  
  63. local hd = Instance.new("Weld",chr.Head)
  64. hd.Part0=chr.Head
  65. hd.Part1=chr.Torso
  66. hd.C0=CFrame.new(0,-1.5,0)
  67.  
  68.  
  69. hum = chr.Humanoid
  70.  
  71.  
  72.  
  73. function CreateMesh(parent, id, x, y, z, texture)
  74. local m=Instance.new("SpecialMesh", parent)
  75. m.MeshType = "FileMesh"
  76. m.MeshId="http://www.roblox.com/asset/?id="..id
  77. if texture ~= nil then
  78. m.TextureId="http://www.roblox.com/asset/?id="..texture
  79. end
  80. m.Scale = Vector3.new(x,y,z)
  81. end
  82.  
  83. Hat=function()
  84. hat = Instance.new("Part", chr)
  85. CreateMesh(hat, 1028713, 1, 1, 1)
  86. hat.Name = "Top hat"
  87. hat.Locked = true
  88. hat.BrickColor = BrickColor.new("Really black")
  89. hat.CanCollide=true
  90. hat.Size=Vector3.new(1,1,1)
  91. hatw = Instance.new("Weld",hat)
  92. hatw.Part0=hat
  93. hatw.Part1=chr['Head']
  94. hatw.C0=CFrame.new(0,-0.7,0)
  95. hatw.C1=euler(rad(0),rad(0),rad(0))
  96. end
  97.  
  98. Hat()
  99. Microphone()
  100.  
  101.  
  102. function Name(msg)
  103. if hat.Parent then
  104. pcall(function()
  105. local Gui = Instance.new('BillboardGui', hat)
  106. Gui.ExtentsOffset = Vector3.new(0,1.5,0)
  107. Gui.Size = UDim2.new(0,200,0,300)
  108. local Frame = Instance.new('Frame',Gui)
  109. Frame.BackgroundTransparency = 1
  110. Frame.Size = UDim2.new(1,0,1,0)
  111. local Txt = Instance.new('TextLabel',Frame)
  112. Txt.BackgroundTransparency = 1
  113. Txt.Size = UDim2.new(1,0,1,0)
  114. Txt.Font = 'ArialBold'
  115. Txt.FontSize = 'Size24'
  116. Txt.Text = msg
  117. Txt.TextColor3 = BrickColor.new("Really black").Color
  118. Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  119. Txt.TextStrokeTransparency = .5
  120. Txt.TextWrapped = true
  121. Txt.TextScaled = false
  122. end)
  123. else
  124. end
  125. end
  126.  
  127. function Chat(msg) -- Credit to jillmiles1, kthxbye
  128. if hat.Parent then
  129. pcall(function()
  130. if hat:FindFirstChild("Fazbear Chat Gui") then
  131. hat['Fazbear Chat Gui']:destroy()
  132. end
  133. local Gui = Instance.new('BillboardGui', hat)
  134. Gui.Name = "Fazbear Chat Gui"
  135. Gui.ExtentsOffset = Vector3.new(0,3,0)
  136. Gui.Size = UDim2.new(0,200,0,300)
  137. local Frame = Instance.new('Frame',Gui)
  138. Frame.BackgroundTransparency = 1
  139. Frame.Size = UDim2.new(1,0,1,0)
  140. local Txt = Instance.new('TextLabel',Frame)
  141. Txt.BackgroundTransparency = 1
  142. Txt.Size = UDim2.new(1,0,1,0)
  143. Txt.Font = 'ArialBold'
  144. Txt.Name = "ChatGui"
  145. Txt.FontSize = 'Size24'
  146. Txt.Text = ''
  147. Txt.TextColor3 = BrickColor.new("Really black").Color
  148. Txt.TextStrokeColor3 = Color3.new(0/255,0/255,0/255)
  149. Txt.TextStrokeTransparency = .5
  150. Txt.TextWrapped = true
  151. Txt.TextScaled = false
  152. delay(wait(),function()
  153. for v = 1, #msg do
  154. Txt.Text=string.sub(msg,1,v)
  155. wait(.07)
  156. end;
  157. wait(1)
  158. for v = 1, #Txt.Text do
  159. Txt.Text=string.sub(msg,-1,v)
  160. wait(.05)
  161. end;
  162. Gui:remove()
  163. end)
  164. end)
  165. else
  166. end
  167. end
  168.  
  169.  
  170. local crouch = function()
  171. la.C1=euler(rad(-90),rad(0),rad(0))
  172. hd.C1=euler(rad(0),rad(-3),rad(10))
  173. micw.C1=euler(rad(0),rad(0),rad(0))
  174. micw.C0=CFrame.new(0,-1,0)
  175. la.C0=CFrame.new(1.5,-.5,-.5)
  176. end
  177.  
  178. local stand = function()
  179. la.C1=euler(rad(0),rad(0),rad(0))
  180. hd.C1=euler(rad(0),rad(0),rad(0))
  181. micw.C1=euler(rad(180),rad(0),rad(0))
  182. la.C0=CFrame.new(1.5,0,0)
  183. micw.C0=CFrame.new(0,-1,0)
  184. end
  185.  
  186. function PlaySound(id, pitch, looped)
  187. epicsound = Instance.new("Sound")
  188. epicsound.Name = "FazbearSound"
  189. epicsound.SoundId = "rbxassetid://"..id
  190. epicsound.Volume = 1
  191. epicsound.Pitch = pitch
  192. if looped == nil then
  193. looped = true
  194. else
  195. looped = looped
  196. end
  197. wait()
  198. epicsound.Looped = looped
  199. epicsound.Parent = workspace
  200. if epicsound.SoundId=="rbxassetid://tt" then -- TELL ME, TELL ME, WHERE DA FREAKS AT!
  201. epicsound.SoundId="rbxassetid://181158033"
  202. elseif epicsound.SoundId=="rbxassetid://fabulous" then -- FA-FA-FABULOUS!
  203. epicsound.SoundId="rbxassetid://191819419"
  204. elseif epicsound.SoundId=="rbxassetid://ufdb" then -- ultimate final death battle(fairy tail XD)
  205. epicsound.SoundId="rbxassetid://153085393"
  206. elseif epicsound.SoundId=="rbxassetid://nnm" then
  207. epicsound.SoundId="rbxassetid://210189234"
  208. elseif epicsound.SoundId=="rbxassetid://tun" then -- tunak tunak tun
  209. epicsound.SoundId="rbxassetid://162682002"
  210. elseif epicsound.SoundId=="rbxassetid://zelda" then
  211. epicsound.SoundId="rbxassetid://158215156"
  212. elseif epicsound.SoundId=="rbxassetid://cc" then
  213. epicsound.SoundId="rbxassetid://177080835"
  214. end
  215. es=epicsound:clone()
  216. es:Stop()
  217. es.Parent = chr.Torso
  218. wait()
  219. es:Play()
  220. end
  221.  
  222. hum.WalkSpeed=50
  223. hum.MaxHealth = math.huge
  224. hum.Health = math.huge
  225.  
  226.  
  227. lp.Chatted:connect(function(msg)
  228. Chat(msg)
  229. end)
  230.  
  231. goldie=true
  232. crouch()
  233.  
  234. function StopMusic()
  235. if chr.Torso:FindFirstChild("FazbearSound") then
  236. if chr.Torso.FazbearSound.ClassName == "Sound" then
  237. chr.Torso.FazbearSound:Stop()
  238. wait()
  239. chr.Torso.FazbearSound:Destroy()
  240. end
  241. end
  242. end
  243.  
  244. Name("Freddy Fazbear")
  245.  
  246.  
  247. mouse.KeyDown:connect(function(key)
  248. if key == "g" then
  249. if goldie==false then
  250. goldie=true
  251. crouch()
  252. elseif goldie==true then
  253. goldie=false
  254. stand()
  255. end
  256. elseif key == "e" then -- Plays a song
  257. StopMusic()
  258. PlaySound(153706538, 1, true)
  259. Chat("Noticed*")
  260. elseif key == "v" then -- Plays a song
  261. StopMusic()
  262. PlaySound(192187815, 1, true)
  263. Chat("...")
  264. elseif key == "c" then -- Plays a laugh
  265. StopMusic()
  266. PlaySound(688596285, 0.39, false)
  267. Chat("Cries*")
  268. elseif key == "f" then -- Plays a scream
  269. StopMusic()
  270. PlaySound(132476475, 1, false)
  271. Chat("Idle*")
  272. elseif key == "q" then -- Stops any sound(s) playing from your torso
  273. StopMusic()
  274. Chat("...?")
  275. end
  276. end)
  277.  
  278.  
  279.  
  280. hum.Died:connect(function()
  281. es.Pitch = 10
  282. wait()
  283. es:Pause()
  284. es:Stop()
  285. es.Name = "Ded"
  286. wait()
  287. es:Destroy()
  288. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement