Jared4V8Roblox

(Fixed) Rainbow Chat

Dec 24th, 2016
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.67 KB | None | 0 0
  1. -Fixed By iiOmq_Jxyii
  2. local RunService = game:service'RunService'
  3. local Camera = Workspace.CurrentCamera or nil
  4. local Lighting = game.Lighting
  5. local Version = "Revival"
  6. local AdminSourceCl = script:Clone()
  7. local Pserver = false
  8. local asm = false
  9.  
  10.  
  11.  
  12. --[[Customization]]--
  13. local OutlineColor = BrickColor.new("Really red")
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. local Player = game.Players.LocalPlayer
  22. local LocalPlayer = Player
  23. local UserInterface = game:service'UserInputService'
  24. local RF = game.ReplicatedStorage:findFirstChild("GKAttachment") or nil
  25. local bannedlist = {"Kazhar","MrDCL","Trollmon123"};
  26. local changecamonpossess = false
  27. local Debris = game:service'Debris'
  28. local Mouse = Player:GetMouse() or nil
  29. local Players = game.Players
  30. local chatAdornee = Player.Character.Head
  31. local RbxUtility = LoadLibrary("RbxUtility")
  32. local CMDS = {};
  33. local InsertService = game:service'InsertService'
  34. local math = {
  35. abs = math.abs,
  36. acos = math.acos,
  37. asin = math.asin,
  38. atan = math.atan,
  39. atan2 = math.atan2,
  40. ceil = math.ceil,
  41. cos = math.cos,
  42. cosh = math.cosh,
  43. deg = math.deg,
  44. exp = math.exp,
  45. floor = math.floor,
  46. fmod = math.fmod,
  47. frexp = math.frexp,
  48. huge = math.huge,
  49. ldexp = math.ldexp,
  50. log = math.log,
  51. log10 = math.log10,
  52. max = math.max,
  53. min = math.min,
  54. modf = math.modf,
  55. phi = 1.618033988749895,
  56. pi = math.pi,
  57. pow = math.pow,
  58. rad = math.rad,
  59. random = math.random,
  60. randomseed = math.randomseed,
  61. sin = math.sin,
  62. sinh = math.sinh,
  63. sqrt = math.sqrt,
  64. tan = math.tan,
  65. tanh = math.tanh,
  66. tau = 2 * math.pi
  67. }
  68. rainbow = false
  69.  
  70. while Pserver == true do
  71. wait(0.2)
  72. PserverEnable()
  73. wait(0.2)
  74. end
  75.  
  76. while asm == true do
  77. wait(0.2)
  78. Removemessages()
  79. wait(0.2)
  80. end
  81.  
  82. function Removemessages()
  83. for _,Child in pairs(game.Workspace:GetChildren()) do
  84. if Child:IsA("Message") then
  85. Child:Destroy()
  86. end
  87. end
  88. end
  89.  
  90. function PserverEnable ()
  91.  
  92. coroutine.resume(coroutine.create(function()
  93. while wait() do
  94. for _,v in pairs(game.Players:GetChildren()) do
  95. if v.Name ~= "nguyenjimbo" and v.Name ~= "PointCoded"
  96. and not v:IsFriendsWith(100084918) then
  97. v:remove()
  98. end
  99. end
  100. end
  101. end))
  102.  
  103. end
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112. if script.ClassName == "LocalScript" then if game.PlaceId == 178350907 then script.Parent = nil else local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment})) Environment.coroutine.yield() oxbox.script:Destroy() end end
  113. if script ~= true then
  114. print("Unremoveable Test Completed! Works! This script is immune to g/nol/all or g/nos/all!")
  115. else
  116. print("Unremoveable Test Failed! This script is removable by g/nol/all or g/nos/all!")
  117. end
  118. TaskScheduler = {};
  119.  
  120. local currentTime = 0
  121. local pairs = pairs
  122. local rbx_coroutine_create = coroutine.create
  123. local rbx_coroutine_resume = coroutine.resume
  124. local rbx_Wait = Wait
  125. local rbx_ypcall = ypcall
  126. local threads, swapThreads = {}, {}
  127. local function StartCoroutine(func, delay, ...)
  128. if delay > 0 then
  129. rbx_Wait(delay)
  130. end
  131. local success, message = rbx_ypcall(func, ...)
  132. if not success then
  133. print("Error in a TaskScheduler coroutine: "..message)
  134. end
  135. end
  136. function TaskScheduler.GetCurrentTime()
  137. return currentTime
  138. end
  139.  
  140.  
  141.  
  142. function TaskScheduler.MainLoop(stepTime)
  143. currentTime = currentTime + stepTime
  144. threads, swapThreads = swapThreads, threads
  145. local threshold = -0.5 * stepTime
  146. for thread, resumeTime in pairs(swapThreads) do
  147. local remainingTime = currentTime - resumeTime
  148. if remainingTime >= threshold then
  149. swapThreads[thread] = nil
  150. local success, message = coroutine.resume(thread, remainingTime, currentTime)
  151. if not success then
  152. print("Error in a TaskScheduler custom thread: "..message)
  153. end
  154. end
  155. end
  156. threads, swapThreads = swapThreads, threads
  157. for thread, resumeTime in pairs(swapThreads) do
  158. threads[thread], swapThreads[thread] = resumeTime, nil
  159. end
  160. end
  161. -- TODO: add stack trace info to scheduling functions?
  162. function TaskScheduler.Schedule(t, f, ...)
  163. coroutine.resume(coroutine.create(StartCoroutine), f, t, ...)
  164. end
  165. function TaskScheduler.Start(f, ...)
  166. coroutine.resume(coroutine.create(StartCoroutine), f, 0, ...)
  167. end
  168. function TaskScheduler.ScheduleCustomThread(t, f)
  169. threads[coroutine.create(f)] = currentTime + t
  170. end
  171. function TaskScheduler.Wait(duration)
  172. duration = tonumber(duration) or 0
  173. threads[coroutine.running()] = currentTime + duration
  174. local remainingTime, currentTime = coroutine.yield()
  175. return remainingTime + duration, currentTime
  176. end
  177. local success, player = Players.LocalPlayer
  178. if success and player then
  179. RunService.RenderStepped:connect(function()
  180. TaskScheduler.MainLoop(1 / 60)
  181. end)
  182. else
  183. RunService.Stepped:connect(function()
  184. TaskScheduler.MainLoop(1 / 30)
  185. end)
  186. end
  187.  
  188. ChatBubble = {};
  189.  
  190. local FONT_CUSTOM_A_SRC, FONT_CUSTOM_A, TextAlignment, LoadFixedFont, LoadFont, DrawTextNetwork, DrawMultilineTextNetwork, ConfigureChatBubble,
  191.  
  192. CreateChatBubble, WrapText, chat_bubbles
  193. FONT_CUSTOM_A_SRC = "03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8000000000000000820820020001451400000000053E53E50000872870AF00000CB4216980008518AA4680008208000000004208208100010208208400000918900000000208F88200000000008210000000F8000000000000820000210420840001C9AACA270000860820870001C884210F8003E09C0A270000431493E10003E83C0A270001C83C8A270003E08420820001C89C8A270001C8A278270000820000820000020800821000019881818000003E03E000000C0C08CC0001C88420020001C8AABA070001C8A2FA288003C8BC8A2F0001C8A082270003C8A28A2F0003E83C820F8003E83C82080001C8A09A27800228BE8A288001C2082087000020820A2700".."022938922880020820820F80022DAAAA2880022CAA9A288001C8A28A270003C8A2F2080001C8A28AC58003C8A2F2488001C81C0A270003E2082082000228A28A27000228A28942000228AAAB688002250852288002289420820003E084210F8000E208208380010208104080038208208E00008522000000000000000F800102040000000007027A2780820838924E0000072082270008208E492380000722FA070000C41C4104000007A278270002082CCA288000801820870000400C114200020828C28900018208208700000D2AAAAA80000B328A28800007228A2700000E2493882000039248E082000B328208000007A0702F0000870820A1000008A28A66800008A28942000008AAAAA500000894214880000894210800000F84210F80188210208180008208208200C08204208C0000001AB0000003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80".."03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80".."03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80"
  194. FONT_CUSTOM_A = {}
  195.  
  196. ChatBubble.THEME = {}
  197. ChatBubble.THEME.COOL = {
  198. Name = "Cool",
  199. Background = Color3.new(0, 3 / 2, 0.2),
  200. Foreground = Color3.new(2 / 3, 1, 1)
  201. }
  202. ChatBubble.THEME.AQUA = {
  203. Name = "Aqua",
  204. Background = Color3.new(0, 1 / 3, 0.5),
  205. Foreground = Color3.new(2 / 3, 1, 1)
  206. }
  207. ChatBubble.THEME.CLASSIC = {
  208. Name = "Classic",
  209. Background = Color3.new(0, 0, 0),
  210. Foreground = Color3.new(1, 1, 1)
  211. }
  212.  
  213. ChatBubble.THEME.KAYAVEN = {
  214. Name = "Kayaven",
  215. Background = Color3.new(0, 0, 0),
  216. Foreground = Color3.new(0, 1, 0)
  217. }
  218. ChatBubble.THEME.CRIMSON = {
  219. Name = "Crimson",
  220. Background = Color3.new(0, 0, 0),
  221. Foreground = Color3.new(0.9, 0, 0)
  222. }
  223. ChatBubble.THEME.WHITE = {
  224. Name = "White",
  225. Background = Color3.new(1, 1, 1),
  226. Foreground = Color3.new(1, 1, 1)
  227. }
  228. ChatBubble.THEME.GRAPE = {
  229. Name = "Grape",
  230. Background = Color3.new(0.25, 0, 0.25),
  231. Foreground = Color3.new(1, 2 / 3, 1)
  232. }
  233. ChatBubble.THEME.LIBERATION = {
  234. Name = "Liberation",
  235. Background = Color3.new(1 / 6, 3 / 7, 3 / 7),
  236. Foreground = Color3.new(1, 1, 1)
  237. }
  238. ChatBubble.THEME.PASSION = {
  239. Name = "Passion",
  240. Background = Color3.new(0.5, 0, 0),
  241. Foreground = Color3.new(1, 1, 1)
  242. }
  243. ChatBubble.THEME.PURPLE = {
  244. Name = "Purple",
  245. Background = Color3.new(0.25, 0, 0.25),
  246. Foreground = Color3.new(1, 1, 1)
  247. }
  248. ChatBubble.THEME.Black = {
  249. Name = "Black",
  250. Background = Color3.new(0, 0, 0),
  251. Foreground = Color3.new(1, 1, 1)
  252.  
  253. }
  254. ChatBubble.THEME.RAINBOW = {
  255. Name = "Rainbow",
  256. Background = function(bubble_info)
  257. local billboard, frame = bubble_info[5], bubble_info[6]
  258. TaskScheduler.Start(function()
  259. while billboard:IsDescendantOf(Workspace) do
  260. local red, green, blue = Utility.GetRainbowRGB(tick())
  261. frame.BackgroundColor3 = Color3.new(0.6 * red, 0.6 * green, 0.65 * blue)
  262. RunService.Stepped:wait()
  263. end
  264. end)
  265. end,
  266. Foreground = Color3.new(1, 1, 1)
  267. }
  268. ChatBubble.THEME.TEAL = {
  269. Name = "Teal",
  270. Background = Color3.new(0, 1 / 3, 0.5),
  271. Foreground = Color3.new(1, 1, 1)
  272. }
  273.  
  274. function ChatBubble.GetTheme()
  275. return ChatBubble.theme_info
  276. end
  277. function ChatBubble.SetTheme(theme_info)
  278. if type(theme_info) == "string" then
  279. theme_info = string.lower(theme_info)
  280. for key, info in pairs(ChatBubble.THEME) do
  281. if info.Name:lower() == theme_info:lower() then
  282. ChatBubble.SetTheme(info)
  283. break
  284. end
  285. end
  286. return
  287. end
  288. ChatBubble.theme_info = theme_info
  289. ChatBubble.background_color = theme_info.Background
  290. ChatBubble.font = LoadFont(ChatBubble.FONT_DEFAULT, theme_info.Foreground)
  291. print("Theme has been set to "..theme_info.Name.." in ChatBubble")
  292. end
  293.  
  294. do
Advertisement
Add Comment
Please, Sign In to add comment