Advertisement
hjkook

gnomed

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