Advertisement
SmokeDelsin

chat

Jul 9th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. dot = false
  2. des = false
  3. local ChatService = game:GetService("Chat")
  4. local player = game.Players.LocalPlayer
  5. char = player.Character
  6. hum = char.Humanoid
  7. torso = hum.Torso
  8. lig = Instance.new("PointLight",player.Character.Torso)
  9. lig.Color=Color3.new(0,255,255)
  10. m=player:GetMouse()
  11. bb = Instance.new("BillboardGui",player.Character.Head)
  12. bb.Enabled = true
  13. bb.AlwaysOnTop = true
  14. bb.Size = UDim2.new(0,200,0,50)
  15. bb.StudsOffset = Vector3.new(0,1,0)
  16. gui=Instance.new("TextBox",bb)
  17. gui.Text = "* "
  18. gui.Size = UDim2.new(0,133,0,45)
  19. gui.Position=UDim2.new(0,57,0,-40)
  20. gui.TextColor3 = Color3.new(255,255,255)
  21. gui.BackgroundColor3=Color3.new(0,255,255)
  22. gui.TextWrapped = true
  23. gui.TextScaled = true
  24. gui.TextXAlignment = "Left"
  25. gui.TextYAlignment = "Top"
  26. gui.Visible = false
  27. gui.BorderColor3 = Color3.new(255,255,255)
  28.  
  29. gui1=Instance.new("TextButton",bb)
  30. gui1.Position=UDim2.new(0,5,0,-43)
  31. gui1.Size = UDim2.new(0,190,0,51)
  32.  
  33. gui1.TextColor3 = Color3.new(255,255,255)
  34. gui1.BackgroundColor3=Color3.new(0,255,255)
  35.  
  36. Debounces = {
  37. ["IsSpeech"]=false;
  38. }
  39.  
  40.  
  41. Speeches = {
  42. "rbxassetid://316403916",
  43. "rbxassetid://316403844",
  44. "rbxassetid://316403787",
  45. "rbxassetid://316403490"
  46. };
  47.  
  48.  
  49.  
  50.  
  51. function swait(num)
  52. if num==0 or num==nil then
  53. game:service'RunService'.Stepped:wait(0)
  54. else
  55. for i=0,num do
  56. game:service'RunService'.Stepped:wait(0)
  57. end
  58. end
  59. end
  60.  
  61.  
  62. for _,v in pairs(Speeches) do
  63.  
  64. game:GetService("ContentProvider"):Preload(v)
  65.  
  66. end
  67.  
  68. so = function(id,par,vol,pit)
  69. coroutine.resume(coroutine.create(function()
  70. local sou = Instance.new("Sound",par or workspace)
  71. sou.Volume=vol
  72. sou.Pitch=pit or 1
  73. sou.SoundId=id
  74. swait()
  75. sou:play()
  76. game:GetService("Debris"):AddItem(sou,sou.TimeLength)
  77. end))
  78. end
  79.  
  80.  
  81.  
  82. function speech()
  83. if Debounces.IsSpeech then return end
  84. Debounces.IsSpeech = true
  85.  
  86. so(""..Speeches[math.random(1,#Speeches)].."",torso,1,1)
  87.  
  88. swait()
  89.  
  90. Debounces.IsSpeech = false
  91. end
  92.  
  93.  
  94. gui1.Visible = false
  95. img = Instance.new("ImageLabel",bb)
  96. img.Size = UDim2.new(0,46,0,47)
  97. img.Position = UDim2.new(0,10,0,-41)
  98. img.Image = "rbxassetid://184639660"
  99. img.BorderColor3 = Color3.new(0,0,1)
  100. img.Visible = false
  101. asd = Instance.new("Sound",player.Character.Torso)
  102. asd.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  103.  
  104. asd1 = Instance.new("Sound",player.Character.Torso)
  105. asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695"
  106.  
  107. asd2 = Instance.new("Sound",player.Character.Torso)
  108. asd2.SoundId = "http://www.roblox.com/asset/?id = 358950238"
  109. asd2.Looped = true
  110. asd3 = Instance.new("Sound",player.Character.Torso)
  111. asd3.SoundId = "http://www.roblox.com/asset/?id = 177078299"
  112. asd3.Looped = true
  113. asd4 = Instance.new("Sound",player.Character.Torso)
  114. asd4.SoundId = "http://www.roblox.com/asset/?id = 408035394"
  115. asd4.Looped = false
  116. asd5 = Instance.new("Sound",player.Character.Torso)
  117. asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
  118. asd5.Looped = true
  119. dunkd = Instance.new("Sound",player.Character.Torso)
  120. dunkd.SoundId = "http://www.roblox.com/asset/?id = "
  121. dunkd.Looped = false
  122. function play(play)
  123. asd:Play()
  124. asd1:Play()
  125. end
  126. eye = Instance.new("Part",player.Character)
  127. eye.BrickColor = BrickColor.new("")
  128. eye.Material = "Neon"
  129. eye.FormFactor = 3
  130. eye.Shape = "Ball"
  131. eye.Size = Vector3.new(0.37,0.37,0.1)
  132. weld = Instance.new("Weld",eye)
  133. weld.Part0 = eye
  134. weld.Part1 = player.Character.Head
  135. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  136. eye.Transparency = 1
  137. -- listen for their chatting
  138. player.Chatted:connect(function(message)
  139. a = string.len(message)
  140. gui.Text = "* "
  141. gui.Visible = true
  142. gui1.Visible = true
  143. des = false
  144. img.Visible = true
  145. print(a)
  146. if dot == false then
  147. for i = 1,string.len(message) do wait(0.07)
  148. gui.Text =gui.Text..message:sub(i,i)
  149.  
  150. play()
  151. end
  152. end
  153.  
  154. des = true
  155. end)
  156. m.KeyDown:connect(function(k)
  157. if k == "g" then
  158. asd2:Play()
  159. eye.Transparency = 0
  160.  
  161. elseif k == "k" then
  162. speech()
  163. end
  164. end)
  165. m.KeyDown:connect(function(k)
  166. if k == "p" then
  167. eye.Transparency = 1
  168. asd3:Play()
  169. end
  170. end)
  171. m.KeyDown:connect(function(k)
  172. if k == "r" then
  173. eye.Transparency = 0
  174. asd4:Play()
  175. end
  176. end)
  177. m.KeyDown:connect(function(k)
  178. if k == "q" then
  179. eye.Transparency = 1
  180. asd5:Play()
  181. end
  182. end)
  183. m.KeyDown:connect(function(k)
  184. if k == "z" then
  185.  
  186. img.Image = "rbxassetid://184639660"
  187. end
  188. end)
  189. m.KeyDown:connect(function(k)
  190. if k == "c" then
  191. img.Image = "rbxassetid://184639660"
  192. end
  193. end)
  194. m.KeyDown:connect(function(k)
  195. if k == "n" then
  196. img.Image = "rbxassetid://184639660"
  197. end
  198. end)
  199. m.KeyDown:connect(function(k)
  200. if k == "b" then
  201. img.Image = "rbxassetid://184639660"
  202. end
  203. end)
  204. m.KeyDown:connect(function(k)
  205. if k == "m" then
  206. img.Image = "rbxassetid://184639660"
  207. end
  208. end)
  209. m.KeyDown:connect(function(k)
  210. if k == "v" then
  211. img.Image = "rbxassetid://184639660"
  212. end
  213. end)
  214. m.KeyDown:connect(function(k)
  215. if k == "h" then
  216. img.Image = "rbxassetid://184639660"
  217. end
  218. end)
  219. m.KeyDown:connect(function(k)
  220. if k == "j" then
  221. img.Image = "rbxassetid://184639660"
  222. end
  223. end)
  224. m.KeyDown:connect(function(k)
  225. if k == "l" then
  226. img.Image = "rbxassetid://424970146"
  227. print("You take your very last breath...")
  228. asdd = Instance.new("Sound",player.Character.Torso)
  229. asdd.SoundId = "http://www.roblox.com/asset/?id = 358950238"
  230. asdd.Looped = false
  231. spawn(function()
  232. wait()
  233. asdd:Play()
  234. end)
  235. wait(2)
  236. asddd = Instance.new("Sound",player.Character.Torso)
  237. asddd.SoundId = "http://www.roblox.com/asset/?id = 177078299"
  238. asddd.Looped = false
  239. spawn(function()
  240. wait()
  241. asddd:Play()
  242. end)
  243. wait(2)
  244. asdded = Instance.new("Sound",player.Character.Torso)
  245. asdded.SoundId = "http://www.roblox.com/asset/?id = 408035394"
  246. asdded.Looped = false
  247. spawn(function()
  248. wait()
  249. asdded:Play()
  250. end)
  251. char:BreakJoints()
  252. end
  253. end)
  254. m.KeyDown:connect(function(k)
  255. if k == "x" then
  256. if des == true then
  257. gui.Visible = false
  258. gui.Text = "* "
  259. gui1.Visible = false
  260. img.Visible = false
  261. end
  262. end
  263. end)
  264. m.KeyDown:connect(function(k)
  265. if k == "f" then
  266. asd3:Stop()
  267. asd2:Stop()
  268. asd4:Stop()
  269. dunkd:Stop()
  270. eye.Transparency = 1
  271. asd5:Stop()
  272. end
  273. end)
  274. m.KeyDown:connect(function(k)
  275. if k == "u" then
  276. dunkd = Instance.new("Sound",player.Character.Torso)
  277. dunkd.SoundId = "http://www.roblox.com/asset/?id = "
  278. dunkd.Looped = false
  279. dunkd:Play()
  280. end
  281. end)
  282. m.KeyDown:connect(function(k)
  283. if k == "y" then
  284. img.Image = "rbxassetid://184639661"
  285. end
  286. end)
  287. -- my god...
  288. -- Suck_HiyaThere moves to arizona
  289.  
  290. --------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement