Advertisement
hjkook

Untitled

Jan 10th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.38 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151. local Player = owner
  152. local Character = Player.Character
  153. local Torso = Character.Torso
  154. local Torso2 = Character.Head
  155.  
  156. --GUI???꾩슂?쒕뜲?댄꽣 :D
  157. local SurfaceGui = Instance.new("SurfaceGui")
  158. local Frame = Instance.new("Frame")
  159. local TextLabel = Instance.new("TextLabel")
  160. local Frame_2 = Instance.new("Frame")
  161. local TextLabel = Instance.new("TextLabel")
  162. local TextLabel_2 = Instance.new("TextLabel")
  163. local TextLabel_3 = Instance.new("TextLabel")
  164. local TextButton = Instance.new("TextButton")
  165.  
  166. local function Smooth(Part)
  167. Part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  168. Part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  169. Part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  170. Part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  171. Part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  172. Part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  173. end
  174.  
  175. local Keyboard = Instance.new("Part")
  176. Keyboard.BrickColor = BrickColor.new("Lsvender")
  177. Keyboard.Transparency = 0.6
  178. Keyboard.Size = Vector3.new(2.24, 0.24, 2.89)
  179. Keyboard.CanCollide = false
  180. Keyboard.Locked = true
  181.  
  182. local Keyboard2 = Instance.new("Part")
  183. Keyboard2.BrickColor = BrickColor.new("Lsvender")
  184. Keyboard2.Material = Enum.Material.Neon
  185. Keyboard2.Transparency = 0.6
  186. Keyboard2.Size = Vector3.new(12.38, 0.24, 6.97)
  187. Keyboard2.CanCollide = false
  188. Keyboard2.Locked = true
  189.  
  190.  
  191. Smooth(Keyboard) --二쇱꽍
  192. Smooth(Keyboard2)
  193.  
  194. local KeyboardWeld = Instance.new("Weld")
  195. KeyboardWeld.Part0 = Torso
  196. KeyboardWeld.Part1 = Keyboard
  197. KeyboardWeld.C0 = CFrame.new(1, 0.4, -2) * CFrame.Angles(0.5, 0, 0)
  198.  
  199. -- Gui to Lua
  200. -- Version: 3.1
  201.  
  202. SurfaceGui.Parent = game.Players.LocalPlayer.PlayerGui
  203. SurfaceGui.Face = "Top"
  204.  
  205. Frame.Parent = SurfaceGui
  206. Frame.BackgroundColor3 = Color3.fromRGB(44, 44, 44)
  207. Frame.BorderSizePixel = 0
  208. Frame.ClipsDescendants = true
  209. Frame.Size = UDim2.new(0, 421, 0, 278)
  210.  
  211. Frame_2.Parent = Frame
  212. Frame_2.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  213. Frame_2.BorderSizePixel = 0
  214. Frame_2.Position = UDim2.new(0.895486891, 0, 0, 0)
  215. Frame_2.Size = UDim2.new(0, 7, 0, 278)
  216.  
  217. TextLabel.Parent = Frame
  218. TextLabel.BackgroundColor3 = Color3.fromRGB(107, 107, 107)
  219. TextLabel.BackgroundTransparency = 0.100
  220. TextLabel.BorderSizePixel = 0
  221. TextLabel.Position = UDim2.new(0.912114024, 0, 0, 0)
  222. TextLabel.Size = UDim2.new(0, 37, 0, 278)
  223. TextLabel.Font = Enum.Font.SourceSans
  224. TextLabel.Text = ""
  225. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  226. TextLabel.TextSize = 14.000
  227.  
  228. TextLabel_2.Parent = Frame
  229. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  230. TextLabel_2.BackgroundTransparency = 1.000
  231. TextLabel_2.Position = UDim2.new(-5.43662324e-08, 0, 0.953237414, 0)
  232. TextLabel_2.Size = UDim2.new(0, 39, 0, 13)
  233. TextLabel_2.Font = Enum.Font.SourceSans
  234. TextLabel_2.Text = "TURBO"
  235. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  236. TextLabel_2.TextSize = 14.000
  237.  
  238. TextButton.Parent = Frame
  239. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  240. TextButton.Size = UDim2.new(0, 376, 0, 21)
  241. TextButton.Font = Enum.Font.SourceSans
  242. TextButton.Text = "MUSIC"
  243. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  244. TextButton.TextSize = 14.000
  245.  
  246. TextButton.MouseButton1Click:Connect(function()
  247. -- Objects
  248.  
  249. local WindowH = Instance.new("ScreenGui")
  250. local Window = Instance.new("Frame")
  251. local TopBar = Instance.new("Frame")
  252. local X = Instance.new("ImageButton")
  253. local HeaderOfTopBar = Instance.new("TextLabel")
  254. local InfoButton = Instance.new("TextButton")
  255. local Content = Instance.new("Frame")
  256. local ChangeID = Instance.new("TextButton")
  257. local ChangeShape = Instance.new("TextButton")
  258. local RunDec = Instance.new("TextButton")
  259. local ID = Instance.new("TextBox")
  260. local IDec = Instance.new("TextButton")
  261. local ShapeDec = Instance.new("TextButton")
  262. local Shape = Instance.new("TextBox")
  263. local Info = Instance.new("ScrollingFrame")
  264. local InfoText = Instance.new("TextLabel")
  265.  
  266. -- Properties
  267.  
  268. WindowH.Name = "WindowH"
  269. WindowH.Parent = game.Players.LocalPlayer.PlayerGui
  270.  
  271. Window.Name = "Window"
  272. Window.Parent = WindowH
  273. Window.Active = true
  274. Window.BackgroundColor3 = Color3.new(0.666667, 0, 0)
  275. Window.Draggable = true
  276. Window.Position = UDim2.new(0, 177, 0, 137)
  277. Window.Size = UDim2.new(0, 471, 0, 322)
  278.  
  279. TopBar.Name = "TopBar"
  280. TopBar.Parent = Window
  281. TopBar.BackgroundColor3 = Color3.new(0, 0, 0)
  282. TopBar.BorderSizePixel = 0
  283. TopBar.Size = UDim2.new(0, 471, 0, 28)
  284.  
  285. X.Name = "X"
  286. X.Parent = TopBar
  287. X.BackgroundColor3 = Color3.new(1, 1, 1)
  288. X.Position = UDim2.new(0, 442, 0, 0)
  289. X.Size = UDim2.new(0, 29, 0, 28)
  290. X.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  291. X.Image = "rbxassetid://190837466"
  292.  
  293. HeaderOfTopBar.Name = "HeaderOfTopBar"
  294. HeaderOfTopBar.Parent = TopBar
  295. HeaderOfTopBar.BackgroundColor3 = Color3.new(0, 0, 0)
  296. HeaderOfTopBar.BackgroundTransparency = 1
  297. HeaderOfTopBar.Size = UDim2.new(0, 367, 0, 28)
  298. HeaderOfTopBar.Font = Enum.Font.Cartoon
  299. HeaderOfTopBar.FontSize = Enum.FontSize.Size14
  300. HeaderOfTopBar.Text = "Welcome to Anonymous's Audio visualizer GUI"
  301. HeaderOfTopBar.TextColor3 = Color3.new(0, 1, 0.498039)
  302. HeaderOfTopBar.TextScaled = true
  303. HeaderOfTopBar.TextSize = 14
  304. HeaderOfTopBar.TextWrapped = true
  305. HeaderOfTopBar.TextXAlignment = Enum.TextXAlignment.Left
  306.  
  307. InfoButton.Name = "InfoButton"
  308. InfoButton.Parent = TopBar
  309. InfoButton.BackgroundColor3 = Color3.new(1, 1, 1)
  310. InfoButton.Position = UDim2.new(0, 373, 0, 0)
  311. InfoButton.Size = UDim2.new(0, 67, 0, 28)
  312. InfoButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  313. InfoButton.Font = Enum.Font.SourceSans
  314. InfoButton.FontSize = Enum.FontSize.Size18
  315. InfoButton.Text = "Info"
  316. InfoButton.TextColor3 = Color3.new(0.0117647, 0.207843, 0)
  317. InfoButton.TextSize = 16
  318.  
  319. Content.Name = "Content"
  320. Content.Parent = Window
  321. Content.BackgroundColor3 = Color3.new(0, 0, 0)
  322. Content.BackgroundTransparency = 0.5
  323. Content.Position = UDim2.new(0, 0, 0, 29)
  324. Content.Size = UDim2.new(0, 471, 0, 293)
  325.  
  326. ChangeID.Name = "ChangeID"
  327. ChangeID.Parent = Content
  328. ChangeID.BackgroundColor3 = Color3.new(1, 1, 1)
  329. ChangeID.Size = UDim2.new(0, 236, 0, 50)
  330. ChangeID.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  331. ChangeID.FontSize = Enum.FontSize.Size14
  332. ChangeID.Text = "Change Sound Id"
  333. ChangeID.TextColor3 = Color3.new(0, 0, 0)
  334. ChangeID.TextScaled = true
  335. ChangeID.TextSize = 14
  336. ChangeID.TextWrapped = true
  337.  
  338. ChangeShape.Name = "ChangeShape"
  339. ChangeShape.Parent = Content
  340. ChangeShape.BackgroundColor3 = Color3.new(1, 1, 1)
  341. ChangeShape.Position = UDim2.new(0, 0, 0, 55)
  342. ChangeShape.Size = UDim2.new(0, 236, 0, 50)
  343. ChangeShape.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  344. ChangeShape.FontSize = Enum.FontSize.Size14
  345. ChangeShape.Text = "Change Shape"
  346. ChangeShape.TextColor3 = Color3.new(0, 0, 0)
  347. ChangeShape.TextScaled = true
  348. ChangeShape.TextSize = 14
  349. ChangeShape.TextWrapped = true
  350.  
  351. RunDec.Name = "RunDec"
  352. RunDec.Parent = Content
  353. RunDec.BackgroundColor3 = Color3.new(1, 1, 1)
  354. RunDec.Position = UDim2.new(0, 0, 0, 243)
  355. RunDec.Size = UDim2.new(0, 236, 0, 50)
  356. RunDec.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  357. RunDec.Font = Enum.Font.SciFi
  358. RunDec.FontSize = Enum.FontSize.Size14
  359. RunDec.Text = "Run Decoration"
  360. RunDec.TextColor3 = Color3.new(0.333333, 0.666667, 1)
  361. RunDec.TextScaled = true
  362. RunDec.TextSize = 14
  363. RunDec.TextWrapped = true
  364.  
  365. ID.Name = "ID"
  366. ID.Parent = Content
  367. ID.BackgroundColor3 = Color3.new(1, 1, 1)
  368. ID.BackgroundTransparency = 1
  369. ID.Position = UDim2.new(0, 271, 0, 0)
  370. ID.Size = UDim2.new(0, 200, 0, 50)
  371. ID.ZIndex = 2
  372. ID.Font = Enum.Font.Bodoni
  373. ID.FontSize = Enum.FontSize.Size14
  374. ID.Text = "Sound ID"
  375. ID.TextScaled = true
  376. ID.TextSize = 14
  377. ID.TextWrapped = true
  378.  
  379. IDec.Name = "IDec"
  380. IDec.Parent = Content
  381. IDec.BackgroundColor3 = Color3.new(1, 1, 1)
  382. IDec.Position = UDim2.new(0, 271, 0, 0)
  383. IDec.Size = UDim2.new(0, 200, 0, 50)
  384. IDec.Style = Enum.ButtonStyle.RobloxRoundButton
  385. IDec.Font = Enum.Font.SourceSans
  386. IDec.FontSize = Enum.FontSize.Size14
  387. IDec.Text = ""
  388. IDec.TextSize = 14
  389.  
  390. ShapeDec.Name = "ShapeDec"
  391. ShapeDec.Parent = Content
  392. ShapeDec.BackgroundColor3 = Color3.new(1, 1, 1)
  393. ShapeDec.Position = UDim2.new(0, 271, 0, 55)
  394. ShapeDec.Size = UDim2.new(0, 200, 0, 50)
  395. ShapeDec.Style = Enum.ButtonStyle.RobloxRoundButton
  396. ShapeDec.Font = Enum.Font.SourceSans
  397. ShapeDec.FontSize = Enum.FontSize.Size14
  398. ShapeDec.Text = ""
  399. ShapeDec.TextSize = 14
  400.  
  401. Shape.Name = "Shape"
  402. Shape.Parent = Content
  403. Shape.BackgroundColor3 = Color3.new(1, 1, 1)
  404. Shape.BackgroundTransparency = 1
  405. Shape.Position = UDim2.new(0, 274, 0, 55)
  406. Shape.Size = UDim2.new(0, 196, 0, 50)
  407. Shape.ZIndex = 2
  408. Shape.Font = Enum.Font.Bodoni
  409. Shape.FontSize = Enum.FontSize.Size14
  410. Shape.Text = "Shape Name"
  411. Shape.TextScaled = true
  412. Shape.TextSize = 14
  413. Shape.TextWrapped = true
  414.  
  415. Info.Name = "Info"
  416. Info.Parent = Window
  417. Info.BackgroundColor3 = Color3.new(0.333333, 0.333333, 0)
  418. Info.BorderSizePixel = 0
  419. Info.Position = UDim2.new(0, 0, 0, 28)
  420. Info.Size = UDim2.new(0, 471, 0, 294)
  421. Info.Visible = false
  422. Info.ZIndex = 3
  423. Info.BottomImage = "rbxassetid://162937863"
  424. Info.CanvasSize = UDim2.new(0, 0, 4, 0)
  425. Info.MidImage = "rbxassetid://162937890"
  426. Info.TopImage = "rbxassetid://162937878"
  427.  
  428. InfoText.Name = "InfoText"
  429. InfoText.Parent = Info
  430. InfoText.BackgroundColor3 = Color3.new(1, 1, 1)
  431. InfoText.BackgroundTransparency = 1
  432. InfoText.Size = UDim2.new(0, 456, 0, 294)
  433. InfoText.ZIndex = 4
  434. InfoText.Font = Enum.Font.Cartoon
  435. InfoText.FontSize = Enum.FontSize.Size24
  436. InfoText.Text = "The currents functions are:\n \n1.Change Shape, shapes are Block and Ball with caps\n \n2.Change Audio ID\n \n3.Run Decoration\nWhat does the 3 functions do?\n \n1.Change the visualizer shape\n \n2.Change the audios's ID to the new one\n \n3.You will get a better experience with (Run Decoration)\n \n 1.FogEnd will change to 500\n \n 2.It would add BlurEffect and a clean sky\n \n 3.Brightness will be 0\n \n 4.Color will be changed to Black to see the Visualizer \n Color Better ;)"
  437. InfoText.TextColor3 = Color3.new(0, 0, 0)
  438. InfoText.TextSize = 20
  439. InfoText.TextXAlignment = Enum.TextXAlignment.Left
  440. InfoText.TextYAlignment = Enum.TextYAlignment.Top
  441. ----------------------------------------------------------------
  442. ----------------------------------------------------------------
  443. InfoButton.MouseButton1Click:Connect(function()
  444. if Info.Visible == false then
  445. Info.Visible = true
  446. else Info.Visible = false
  447. end
  448. end)
  449.  
  450. X.MouseButton1Click:Connect(function()
  451. WindowH:Destroy()
  452. end)
  453.  
  454. ChangeID.MouseButton1Click:Connect(function()
  455. _G.sound2.SoundId = "rbxassetid://"..ID.Text
  456. _G.sound2:Play()
  457. end)
  458.  
  459. ChangeShape.MouseButton1Click:Connect(function()
  460. _G.ball.Shape = Shape.Text
  461. end)
  462.  
  463. RunDec.MouseButton1Click:Connect(function()
  464. local ln = game:FindFirstChildOfClass("Lighting")
  465.  
  466. local blur = Instance.new("ColorCorrectionEffect",game:FindFirstChildOfClass("Lighting"))
  467. blur.Contrast = 1
  468. blur.Brightness = 0.5
  469.  
  470. local sky = Instance.new("Sky",game:FindFirstChildOfClass("Lighting"))
  471. sky.CelestialBodiesShown = false
  472.  
  473. ln.Brightness = 0
  474. ln.Ambient = Color3.new(0,0,0)
  475. ln.OutdoorAmbient = Color3.new(0,0,0)
  476. ln.TimeOfDay = "00:00:00"
  477. ln.FogEnd = 50
  478. ln.FogColor = Color3.new(0,0,0)
  479.  
  480. end)
  481.  
  482. local id = "565649306"
  483.  
  484. if head:FindFirstChild("MyAssIsSoCool") then
  485. head:FindFirstChild("MyAssIsSoCool"):Destroy()
  486. end
  487. local model = Instance.new("Model", Torso2)
  488. _G.ball = Instance.new("Part", model)
  489. local ball = _G.ball
  490. _G.sound2 = Instance.new("Sound", ball)
  491. local sound = _G.sound2
  492. _G.light = Instance.new("PointLight", ball)
  493. local light = _G.light
  494. local id2 = "rbxassetid://"..id
  495.  
  496. sound.SoundId = id2
  497. ball.Anchored = true
  498. model.Name = "MyAssIsSoCool"
  499. ball.CanCollide = false
  500. sound:Play()
  501. sound.Volume = 10
  502. ball.Shape = "Block"
  503. ball.Material = "Neon"
  504.  
  505. while wait() do
  506. local sp = sound.PlaybackLoudness/50
  507. ball.BrickColor = BrickColor.Random()
  508. ball.CFrame = head.CFrame*CFrame.new(0,6,0)
  509. ball.Size = Vector3.new(sp,sp,sp)
  510. light.Range = sp+15
  511. light.Brightness = sp+25
  512. light.Color = Color3.new(math.random(),math.random(),math.random())
  513. end
  514. end)
  515.  
  516. local KeyboardWeld2 = Instance.new("Weld")
  517. KeyboardWeld2.Part0 = Torso2
  518. KeyboardWeld2.Part1 = Keyboard2
  519. KeyboardWeld2.C0 = CFrame.new(1, 0.4, -3) * CFrame.Angles(2, 0, 0)
  520.  
  521. KeyboardWeld.Parent = Keyboard
  522. Keyboard.Parent = Torso
  523.  
  524. KeyboardWeld2.Parent = Keyboard2
  525. Keyboard2.Parent = Torso2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement