SHOW:
|
|
- or go back to the newest paste.
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,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer | |
6 | end | |
7 | function clerp(c1,c2,al) | |
8 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
9 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
10 | for i,v in pairs(com1) do | |
11 | com1[i] = v+(com2[i]-v)*al | |
12 | end | |
13 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
14 | end | |
15 | ||
16 | ||
17 | local plr = game:service'Players'.LocalPlayer | |
18 | plrgui = plr.PlayerGui | |
19 | char = plr.Character | |
20 | mouse = plr:GetMouse() | |
21 | humanoid = char:findFirstChild("Humanoid") | |
22 | torso = char:findFirstChild("Torso") | |
23 | head = char.Head | |
24 | ra = char:findFirstChild("Right Arm") | |
25 | la = char:findFirstChild("Left Arm") | |
26 | rl = char:findFirstChild("Right Leg") | |
27 | ll = char:findFirstChild("Left Leg") | |
28 | rs = torso:findFirstChild("Right Shoulder") | |
29 | ls = torso:findFirstChild("Left Shoulder") | |
30 | rh = torso:findFirstChild("Right Hip") | |
31 | lh = torso:findFirstChild("Left Hip") | |
32 | neck = torso:findFirstChild("Neck") | |
33 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint") | |
34 | rootpart = char:findFirstChild("HumanoidRootPart") | |
35 | camera = workspace.CurrentCamera | |
36 | anim = char:findFirstChild("Animate") | |
37 | local sound = Instance.new("Sound", char) | |
38 | sound.Volume = 1 | |
39 | sound.Looped = true | |
40 | sound.Name = "Sound" | |
41 | ||
42 | SoundsList = {} | |
43 | ||
44 | function newSound(name, id, pitch, puush) | |
45 | if not puush == true then puush = false end | |
46 | if puush then | |
47 | table.insert(SoundsList, {["Name"]=name, ["ID"]="puush("..id..")", ["Pitch"]=pitch or 1}) | |
48 | else | |
49 | table.insert(SoundsList, {["Name"]=name, ["ID"]=id, ["Pitch"]=pitch or 1}) | |
50 | end | |
51 | end | |
52 | ||
53 | newSound("Saints Row IV Theme (puush asset)", "9jVEX", 1, true) | |
54 | newSound("Lemon Tree - Fool's Garden (puush asset)", "9jVD9", 1, true) | |
55 | newSound("What is Love", "142544487") | |
56 | newSound("Martin Garrix - Animals", "142370129") | |
57 | newSound("The Proclaimers - 500 Miles", "151371405") | |
58 | newSound("Avicii - Wake me up", "142603004") | |
59 | newSound("Hip Hop - Jeff Syndicate", "27697735", 3) | |
60 | newSound("Alice Deejay - Better Off Alone", "142397452") | |
61 | newSound("BBBFF - My Little Pony", "142605535") | |
62 | newSound("Intro - My Little Pony", "142626518") | |
63 | newSound("Bangarang - Skrillex", "142319852") | |
64 | newSound("Surfin' Bird ", "145567707") | |
65 | newSound("You've been trolled", "142633540") | |
66 | newSound('Disco Star - Spongebob video game', '144906669') | |
67 | newSound("Europe - The Final Countdown", "142859512") | |
68 | newSound("LMFAO - Party Rock Anthem", "145262991") | |
69 | newSound("Darude - Sandstorm", "142401311", .53) | |
70 | newSound('Skrillex - Fire', '150137157') | |
71 | newSound('Spongebob - Goofy Goober Rock', '142396943') | |
72 | newSound('The Slenderman song (Comedy)', '142776228') | |
73 | newSound('Avicii - Levels', "148424799") | |
74 | newSound('Erectin\' a river', '145849454') | |
75 | newSound('TTC - Fat cat Adventures [Glitch Hop]', '142808748') | |
76 | newSound('Thrift Shop - Macklemore', '155119191') | |
77 | newSound('Five Nights At Freddys 2 Song', '192043328') | |
78 | ||
79 | local function HSV(H,S,V) | |
80 | H = H % 360 | |
81 | local C = V * S | |
82 | local H2 = H/60 | |
83 | local X = C * (1 - math.abs((H2 %2) -1)) | |
84 | local color = Color3.new(0,0,0) | |
85 | if H2 <= 0 then | |
86 | color = Color3.new(C,0,0) | |
87 | elseif 0 <= H2 and H2 <= 1 then | |
88 | color = Color3.new(C,X,0) | |
89 | elseif 1 <= H2 and H2 <= 2 then | |
90 | color = Color3.new(X,C,0) | |
91 | elseif 2 <= H2 and H2 <= 3 then | |
92 | color = Color3.new(0,C,X) | |
93 | elseif 3 <= H2 and H2 <= 4 then | |
94 | color = Color3.new(0,X,C) | |
95 | elseif 4 <= H2 and H2 <= 5 then | |
96 | color = Color3.new(X,0,C) | |
97 | elseif 5 <= H2 and H2 <= 6 then | |
98 | color = Color3.new(C,0,X) | |
99 | end | |
100 | local m = V - C | |
101 | return Color3.new(color.r + m, color.g + m, color.b + m) | |
102 | end | |
103 | ||
104 | function RemoveDisco() | |
105 | char:findFirstChild'DiscoBox':remove() | |
106 | gui:remove() | |
107 | sound:stop() | |
108 | end | |
109 | ||
110 | function BeginPlacingDisco() | |
111 | -- 1 - DiscoBox | |
112 | local obj1 = Instance.new("Model") | |
113 | obj1.Name = "DiscoBox" | |
114 | obj1.Parent = char | |
115 | ||
116 | -- 2 - DiscTop | |
117 | obj2 = Instance.new("Part") | |
118 | obj2.CFrame = CFrame.new(Vector3.new(-34.5000038, 3.09000182, -48.5)) * CFrame.Angles(-0, 0, -0) | |
119 | obj2.FormFactor = Enum.FormFactor.Custom | |
120 | obj2.TopSurface = Enum.SurfaceType.Smooth | |
121 | obj2.BottomSurface = Enum.SurfaceType.Smooth | |
122 | obj2.Material = Enum.Material.SmoothPlastic | |
123 | obj2.Size = Vector3.new(3, 0.200000003, 3) | |
124 | obj2.BrickColor = BrickColor.new("Dark stone grey") | |
125 | obj2.Friction = 0.30000001192093 | |
126 | obj2.Shape = Enum.PartType.Block | |
127 | obj2.Name = "DiscTop" | |
128 | obj2.Parent = obj1 | |
129 | ||
130 | -- 3 - Mesh | |
131 | obj3 = Instance.new("CylinderMesh") | |
132 | obj3.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003) | |
133 | obj3.Parent = obj2 | |
134 | ||
135 | -- 4 - Part-to-Part Strong Joint | |
136 | obj4 = Instance.new("ManualWeld") | |
137 | obj4.Part0 = DiscTop | |
138 | obj4.Part1 = Part | |
139 | obj4.Name = "Part-to-Part Strong Joint" | |
140 | obj4.Parent = obj2 | |
141 | ||
142 | -- 5 - Disc | |
143 | obj5 = Instance.new("Part") | |
144 | obj5.CFrame = CFrame.new(Vector3.new(-34.5, 3.08999991, -48.5)) * CFrame.Angles(-0, 0, -0) | |
145 | obj5.FormFactor = Enum.FormFactor.Custom | |
146 | obj5.TopSurface = Enum.SurfaceType.Smooth | |
147 | obj5.BottomSurface = Enum.SurfaceType.Smooth | |
148 | obj5.Material = Enum.Material.Sand | |
149 | obj5.Size = Vector3.new(3, 0.200000003, 3) | |
150 | obj5.BrickColor = BrickColor.new("Black") | |
151 | obj5.Friction = 0.30000001192093 | |
152 | obj5.Shape = Enum.PartType.Block | |
153 | obj5.Name = "Disc" | |
154 | obj5.Parent = obj1 | |
155 | ||
156 | -- 6 - Mesh | |
157 | obj6 = Instance.new("CylinderMesh") | |
158 | obj6.Scale = Vector3.new(0.899999976, 1, 0.899999976) | |
159 | obj6.Parent = obj5 | |
160 | ||
161 | -- 7 - Part-to-Part Strong Joint | |
162 | obj7 = Instance.new("ManualWeld") | |
163 | obj7.Part0 = Disc | |
164 | obj7.Part1 = Part | |
165 | obj7.Name = "Part-to-Part Strong Joint" | |
166 | obj7.Parent = obj5 | |
167 | ||
168 | -- 8 - Part | |
169 | obj8 = Instance.new("Part") | |
170 | obj8.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999987, -49.5)) * CFrame.Angles(-0, 0, -0) | |
171 | obj8.FormFactor = Enum.FormFactor.Custom | |
172 | obj8.TopSurface = Enum.SurfaceType.Smooth | |
173 | obj8.BottomSurface = Enum.SurfaceType.Smooth | |
174 | obj8.Material = Enum.Material.SmoothPlastic | |
175 | obj8.Size = Vector3.new(1, 0.200000003, 1) | |
176 | obj8.BrickColor = BrickColor.new("Mid gray") | |
177 | obj8.Friction = 0.30000001192093 | |
178 | obj8.Shape = Enum.PartType.Block | |
179 | obj8.Parent = obj1 | |
180 | ||
181 | -- 9 - Mesh | |
182 | obj9 = Instance.new("CylinderMesh") | |
183 | obj9.Scale = Vector3.new(0.5, 1.04999995, 0.5) | |
184 | obj9.Parent = obj8 | |
185 | ||
186 | -- 10 - Part-to-Part Strong Joint | |
187 | obj10 = Instance.new("ManualWeld") | |
188 | obj10.Part0 = Part | |
189 | obj10.Part1 = Part | |
190 | obj10.Name = "Part-to-Part Strong Joint" | |
191 | obj10.Parent = obj8 | |
192 | ||
193 | -- 11 - Part | |
194 | obj11 = Instance.new("Part") | |
195 | obj11.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999987, -49.5)) * CFrame.Angles(-0, 0, -0) | |
196 | obj11.FormFactor = Enum.FormFactor.Custom | |
197 | obj11.TopSurface = Enum.SurfaceType.Smooth | |
198 | obj11.BottomSurface = Enum.SurfaceType.Smooth | |
199 | obj11.Material = Enum.Material.SmoothPlastic | |
200 | obj11.Size = Vector3.new(1, 0.200000003, 1) | |
201 | obj11.BrickColor = BrickColor.new("Mid gray") | |
202 | obj11.Friction = 0.30000001192093 | |
203 | obj11.Shape = Enum.PartType.Block | |
204 | obj11.Parent = obj1 | |
205 | ||
206 | -- 12 - Mesh | |
207 | obj12 = Instance.new("CylinderMesh") | |
208 | obj12.Scale = Vector3.new(0.400000006, 1.04999995, 0.400000006) | |
209 | obj12.Parent = obj11 | |
210 | ||
211 | -- 13 - Bar | |
212 | obj13 = Instance.new("Part") | |
213 | obj13.CFrame = CFrame.new(Vector3.new(-37.0000114, 3.09000063, -50.5)) * CFrame.Angles(-0, 0, -0) | |
214 | obj13.FormFactor = Enum.FormFactor.Custom | |
215 | obj13.TopSurface = Enum.SurfaceType.Smooth | |
216 | obj13.BottomSurface = Enum.SurfaceType.Smooth | |
217 | obj13.Material = Enum.Material.SmoothPlastic | |
218 | obj13.Size = Vector3.new(7.99999905, 0.200000003, 1) | |
219 | obj13.BrickColor = BrickColor.new("Really black") | |
220 | obj13.Friction = 0.30000001192093 | |
221 | obj13.Shape = Enum.PartType.Block | |
222 | obj13.Parent = obj1 | |
223 | ||
224 | -- 14 - Part-to-Part Strong Joint | |
225 | obj14 = Instance.new("ManualWeld") | |
226 | obj14.Part0 = Part | |
227 | obj14.Part1 = nil | |
228 | obj14.Name = "Part-to-Part Strong Joint" | |
229 | obj14.Parent = obj13 | |
230 | ||
231 | -- 15 - Part-to-Part Strong Joint | |
232 | obj15 = Instance.new("ManualWeld") | |
233 | obj15.Part0 = Part | |
234 | obj15.Part1 = nil | |
235 | obj15.Name = "Part-to-Part Strong Joint" | |
236 | obj15.Parent = obj13 | |
237 | ||
238 | -- 16 - Mesh | |
239 | obj16 = Instance.new("BlockMesh") | |
240 | obj16.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003) | |
241 | obj16.Parent = obj13 | |
242 | ||
243 | -- 17 - Box | |
244 | obj17 = Instance.new("Part") | |
245 | obj17.CFrame = CFrame.new(Vector3.new(-37, 1.49000001, -49)) * CFrame.Angles(-0, 0, -0) | |
246 | obj17.FormFactor = Enum.FormFactor.Symmetric | |
247 | obj17.TopSurface = Enum.SurfaceType.Smooth | |
248 | obj17.BottomSurface = Enum.SurfaceType.Smooth | |
249 | obj17.Material = Enum.Material.SmoothPlastic | |
250 | obj17.Size = Vector3.new(8, 3, 4) | |
251 | obj17.BrickColor = BrickColor.new("Dark stone grey") | |
252 | obj17.Friction = 0.30000001192093 | |
253 | obj17.Shape = Enum.PartType.Block | |
254 | obj17.Name = "Box" | |
255 | obj17.Parent = obj1 | |
256 | ||
257 | -- 18 - Part-to-Part Strong Joint | |
258 | obj18 = Instance.new("ManualWeld") | |
259 | obj18.Part0 = Box | |
260 | obj18.Part1 = Part | |
261 | obj18.Name = "Part-to-Part Strong Joint" | |
262 | obj18.Parent = obj17 | |
263 | ||
264 | -- 19 - Part-to-Part Strong Joint | |
265 | obj19 = Instance.new("ManualWeld") | |
266 | obj19.Part0 = Box | |
267 | obj19.Part1 = Disc | |
268 | obj19.Name = "Part-to-Part Strong Joint" | |
269 | obj19.Parent = obj17 | |
270 | ||
271 | -- 20 - Part-to-Part Strong Joint | |
272 | obj20 = Instance.new("ManualWeld") | |
273 | obj20.Part0 = Box | |
274 | obj20.Part1 = Disc2 | |
275 | obj20.Name = "Part-to-Part Strong Joint" | |
276 | obj20.Parent = obj17 | |
277 | ||
278 | -- 21 - Part-to-Part Strong Joint | |
279 | obj21 = Instance.new("ManualWeld") | |
280 | obj21.Part0 = Box | |
281 | obj21.Part1 = DiscTop2 | |
282 | obj21.Name = "Part-to-Part Strong Joint" | |
283 | obj21.Parent = obj17 | |
284 | ||
285 | -- 22 - Part-to-Part Strong Joint | |
286 | obj22 = Instance.new("ManualWeld") | |
287 | obj22.Part0 = Box | |
288 | obj22.Part1 = DiscTop | |
289 | obj22.Name = "Part-to-Part Strong Joint" | |
290 | obj22.Parent = obj17 | |
291 | ||
292 | -- 23 - Part-to-Part Strong Joint | |
293 | obj23 = Instance.new("ManualWeld") | |
294 | obj23.Part0 = Box | |
295 | obj23.Part1 = Part | |
296 | obj23.Name = "Part-to-Part Strong Joint" | |
297 | obj23.Parent = obj17 | |
298 | ||
299 | -- 24 - Part-to-Part Strong Joint | |
300 | obj24 = Instance.new("ManualWeld") | |
301 | obj24.Part0 = Box | |
302 | obj24.Part1 = Part | |
303 | obj24.Name = "Part-to-Part Strong Joint" | |
304 | obj24.Parent = obj17 | |
305 | ||
306 | -- 25 - Part-to-Part Strong Joint | |
307 | obj25 = Instance.new("ManualWeld") | |
308 | obj25.Part0 = Box | |
309 | obj25.Part1 = Part | |
310 | obj25.Name = "Part-to-Part Strong Joint" | |
311 | obj25.Parent = obj17 | |
312 | ||
313 | -- 26 - Box-to-Part Strong Joint | |
314 | obj26 = Instance.new("ManualWeld") | |
315 | obj26.Part0 = Box | |
316 | obj26.Part1 = Slider | |
317 | obj26.Name = "Box-to-Part Strong Joint" | |
318 | obj26.Parent = obj17 | |
319 | ||
320 | -- 27 - Box-to-Part Strong Joint | |
321 | obj27 = Instance.new("ManualWeld") | |
322 | obj27.Part0 = Box | |
323 | obj27.Part1 = Slider2 | |
324 | obj27.Name = "Box-to-Part Strong Joint" | |
325 | obj27.Parent = obj17 | |
326 | ||
327 | -- 28 - Part | |
328 | obj28 = Instance.new("Part") | |
329 | obj28.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999987, -48.5)) * CFrame.Angles(-0, 0, -0) | |
330 | obj28.FormFactor = Enum.FormFactor.Custom | |
331 | obj28.TopSurface = Enum.SurfaceType.Smooth | |
332 | obj28.BottomSurface = Enum.SurfaceType.Smooth | |
333 | obj28.Material = Enum.Material.SmoothPlastic | |
334 | obj28.Size = Vector3.new(1, 0.200000003, 1) | |
335 | obj28.BrickColor = BrickColor.new("Bright red") | |
336 | obj28.Friction = 0.30000001192093 | |
337 | obj28.Shape = Enum.PartType.Block | |
338 | obj28.Parent = obj1 | |
339 | ||
340 | -- 29 - Mesh | |
341 | obj29 = Instance.new("CylinderMesh") | |
342 | obj29.Scale = Vector3.new(0.5, 1.04999995, 0.5) | |
343 | obj29.Parent = obj28 | |
344 | ||
345 | -- 30 - Part-to-Part Strong Joint | |
346 | obj30 = Instance.new("ManualWeld") | |
347 | obj30.Part0 = Part | |
348 | obj30.Part1 = Part | |
349 | obj30.Name = "Part-to-Part Strong Joint" | |
350 | obj30.Parent = obj28 | |
351 | ||
352 | -- 31 - Part-to-Part Strong Joint | |
353 | obj31 = Instance.new("ManualWeld") | |
354 | obj31.Part0 = Part | |
355 | obj31.Part1 = Part | |
356 | obj31.Name = "Part-to-Part Strong Joint" | |
357 | obj31.Parent = obj28 | |
358 | ||
359 | -- 32 - Part | |
360 | obj32 = Instance.new("Part") | |
361 | obj32.CFrame = CFrame.new(Vector3.new(-37, 3.09000087, -50.5)) * CFrame.Angles(-0, 0, -0) | |
362 | obj32.FormFactor = Enum.FormFactor.Custom | |
363 | obj32.TopSurface = Enum.SurfaceType.Smooth | |
364 | obj32.BottomSurface = Enum.SurfaceType.Smooth | |
365 | obj32.Material = Enum.Material.SmoothPlastic | |
366 | obj32.Size = Vector3.new(8, 0.200000003, 1) | |
367 | obj32.BrickColor = BrickColor.new("Dark stone grey") | |
368 | obj32.Friction = 0.30000001192093 | |
369 | obj32.Shape = Enum.PartType.Block | |
370 | obj32.Parent = obj1 | |
371 | ||
372 | -- 33 - Part-to-Part Strong Joint | |
373 | obj33 = Instance.new("ManualWeld") | |
374 | obj33.Part0 = Part | |
375 | obj33.Part1 = Disc | |
376 | obj33.Name = "Part-to-Part Strong Joint" | |
377 | obj33.Parent = obj32 | |
378 | ||
379 | -- 34 - Part-to-Part Strong Joint | |
380 | obj34 = Instance.new("ManualWeld") | |
381 | obj34.Part0 = Part | |
382 | obj34.Part1 = Disc2 | |
383 | obj34.Name = "Part-to-Part Strong Joint" | |
384 | obj34.Parent = obj32 | |
385 | ||
386 | -- 35 - Part-to-Part Strong Joint | |
387 | obj35 = Instance.new("ManualWeld") | |
388 | obj35.Part0 = Part | |
389 | obj35.Part1 = DiscTop2 | |
390 | obj35.Name = "Part-to-Part Strong Joint" | |
391 | obj35.Parent = obj32 | |
392 | ||
393 | -- 36 - Part-to-Part Strong Joint | |
394 | obj36 = Instance.new("ManualWeld") | |
395 | obj36.Part0 = Part | |
396 | obj36.Part1 = DiscTop | |
397 | obj36.Name = "Part-to-Part Strong Joint" | |
398 | obj36.Parent = obj32 | |
399 | ||
400 | -- 37 - Part | |
401 | obj37 = Instance.new("Part") | |
402 | obj37.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999987, -48.5)) * CFrame.Angles(-0, 0, -0) | |
403 | obj37.FormFactor = Enum.FormFactor.Custom | |
404 | obj37.TopSurface = Enum.SurfaceType.Smooth | |
405 | obj37.BottomSurface = Enum.SurfaceType.Smooth | |
406 | obj37.Material = Enum.Material.SmoothPlastic | |
407 | obj37.Size = Vector3.new(1, 0.200000003, 1) | |
408 | obj37.BrickColor = BrickColor.new("Bright red") | |
409 | obj37.Friction = 0.30000001192093 | |
410 | obj37.Shape = Enum.PartType.Block | |
411 | obj37.Parent = obj1 | |
412 | ||
413 | -- 38 - Mesh | |
414 | obj38 = Instance.new("CylinderMesh") | |
415 | obj38.Scale = Vector3.new(0.699999988, 1.04999995, 0.699999988) | |
416 | obj38.Parent = obj37 | |
417 | ||
418 | -- 39 - Part-to-Part Strong Joint | |
419 | obj39 = Instance.new("ManualWeld") | |
420 | obj39.Part0 = Part | |
421 | obj39.Part1 = Part | |
422 | obj39.Name = "Part-to-Part Strong Joint" | |
423 | obj39.Parent = obj37 | |
424 | ||
425 | -- 40 - Part-to-Part Strong Joint | |
426 | obj40 = Instance.new("ManualWeld") | |
427 | obj40.Part0 = Part | |
428 | obj40.Part1 = Part | |
429 | obj40.Name = "Part-to-Part Strong Joint" | |
430 | obj40.Parent = obj37 | |
431 | ||
432 | -- 41 - Part | |
433 | obj41 = Instance.new("Part") | |
434 | obj41.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999963, -47.5)) * CFrame.Angles(-0, 0, -0) | |
435 | obj41.FormFactor = Enum.FormFactor.Custom | |
436 | obj41.TopSurface = Enum.SurfaceType.Smooth | |
437 | obj41.BottomSurface = Enum.SurfaceType.Smooth | |
438 | obj41.Material = Enum.Material.SmoothPlastic | |
439 | obj41.Size = Vector3.new(1, 0.200000003, 1) | |
440 | obj41.BrickColor = BrickColor.new("Bright blue") | |
441 | obj41.Friction = 0.30000001192093 | |
442 | obj41.Shape = Enum.PartType.Block | |
443 | obj41.Parent = obj1 | |
444 | ||
445 | -- 42 - Mesh | |
446 | obj42 = Instance.new("CylinderMesh") | |
447 | obj42.Scale = Vector3.new(0.5, 1.04999995, 0.5) | |
448 | obj42.Parent = obj41 | |
449 | ||
450 | -- 43 - Part-to-Part Strong Joint | |
451 | obj43 = Instance.new("ManualWeld") | |
452 | obj43.Part0 = Part | |
453 | obj43.Part1 = Part | |
454 | obj43.Name = "Part-to-Part Strong Joint" | |
455 | obj43.Parent = obj41 | |
456 | ||
457 | -- 44 - Part | |
458 | obj44 = Instance.new("Part") | |
459 | obj44.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999963, -47.5)) * CFrame.Angles(-0, 0, -0) | |
460 | obj44.FormFactor = Enum.FormFactor.Custom | |
461 | obj44.TopSurface = Enum.SurfaceType.Smooth | |
462 | obj44.BottomSurface = Enum.SurfaceType.Smooth | |
463 | obj44.Material = Enum.Material.SmoothPlastic | |
464 | obj44.Size = Vector3.new(1, 0.200000003, 1) | |
465 | obj44.BrickColor = BrickColor.new("Bright blue") | |
466 | obj44.Friction = 0.30000001192093 | |
467 | obj44.Shape = Enum.PartType.Block | |
468 | obj44.Parent = obj1 | |
469 | ||
470 | -- 45 - Mesh | |
471 | obj45 = Instance.new("CylinderMesh") | |
472 | obj45.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003) | |
473 | obj45.Parent = obj44 | |
474 | ||
475 | -- 46 - Part-to-Part Strong Joint | |
476 | obj46 = Instance.new("ManualWeld") | |
477 | obj46.Part0 = Part | |
478 | obj46.Part1 = Part | |
479 | obj46.Name = "Part-to-Part Strong Joint" | |
480 | obj46.Parent = obj44 | |
481 | ||
482 | -- 47 - Part | |
483 | obj47 = Instance.new("Part") | |
484 | obj47.CFrame = CFrame.new(Vector3.new(-39.5000038, 2.88999963, -46.5)) * CFrame.Angles(-0, 0, -0) | |
485 | obj47.FormFactor = Enum.FormFactor.Custom | |
486 | obj47.TopSurface = Enum.SurfaceType.Smooth | |
487 | obj47.BottomSurface = Enum.SurfaceType.Smooth | |
488 | obj47.Material = Enum.Material.SmoothPlastic | |
489 | obj47.Size = Vector3.new(3.00000048, 0.200000003, 1) | |
490 | obj47.BrickColor = BrickColor.new("Really black") | |
491 | obj47.Friction = 0.30000001192093 | |
492 | obj47.Shape = Enum.PartType.Block | |
493 | obj47.Parent = obj1 | |
494 | ||
495 | -- 48 - Part-to-Part Strong Joint | |
496 | obj48 = Instance.new("ManualWeld") | |
497 | obj48.Part0 = Part | |
498 | obj48.Part1 = nil | |
499 | obj48.Name = "Part-to-Part Strong Joint" | |
500 | obj48.Parent = obj47 | |
501 | ||
502 | -- 49 - Part-to-Part Strong Joint | |
503 | obj49 = Instance.new("ManualWeld") | |
504 | obj49.Part0 = Part | |
505 | obj49.Part1 = nil | |
506 | obj49.Name = "Part-to-Part Strong Joint" | |
507 | obj49.Parent = obj47 | |
508 | ||
509 | -- 50 - Mesh | |
510 | obj50 = Instance.new("BlockMesh") | |
511 | obj50.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003) | |
512 | obj50.Parent = obj47 | |
513 | ||
514 | -- 51 - Part | |
515 | obj51 = Instance.new("Part") | |
516 | obj51.CFrame = CFrame.new(Vector3.new(-34.5, 2.88999963, -46.5)) * CFrame.Angles(-0, 0, -0) | |
517 | obj51.FormFactor = Enum.FormFactor.Custom | |
518 | obj51.TopSurface = Enum.SurfaceType.Smooth | |
519 | obj51.BottomSurface = Enum.SurfaceType.Smooth | |
520 | obj51.Material = Enum.Material.SmoothPlastic | |
521 | obj51.Size = Vector3.new(3.00000048, 0.200000003, 1) | |
522 | obj51.BrickColor = BrickColor.new("Really black") | |
523 | obj51.Friction = 0.30000001192093 | |
524 | obj51.Shape = Enum.PartType.Block | |
525 | obj51.Parent = obj1 | |
526 | ||
527 | -- 52 - Part-to-Part Strong Joint | |
528 | obj52 = Instance.new("ManualWeld") | |
529 | obj52.Part0 = Part | |
530 | obj52.Part1 = nil | |
531 | obj52.Name = "Part-to-Part Strong Joint" | |
532 | obj52.Parent = obj51 | |
533 | ||
534 | -- 53 - Part-to-Part Strong Joint | |
535 | obj53 = Instance.new("ManualWeld") | |
536 | obj53.Part0 = Part | |
537 | obj53.Part1 = nil | |
538 | obj53.Name = "Part-to-Part Strong Joint" | |
539 | obj53.Parent = obj51 | |
540 | ||
541 | -- 54 - Mesh | |
542 | obj54 = Instance.new("BlockMesh") | |
543 | obj54.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003) | |
544 | obj54.Parent = obj51 | |
545 | ||
546 | -- 55 - DiscTop2 | |
547 | obj55 = Instance.new("Part") | |
548 | obj55.CFrame = CFrame.new(Vector3.new(-39.5, 3.09000063, -48.5)) * CFrame.Angles(-0, 0, -0) | |
549 | obj55.FormFactor = Enum.FormFactor.Custom | |
550 | obj55.TopSurface = Enum.SurfaceType.Smooth | |
551 | obj55.BottomSurface = Enum.SurfaceType.Smooth | |
552 | obj55.Material = Enum.Material.SmoothPlastic | |
553 | obj55.Size = Vector3.new(3, 0.200000003, 3) | |
554 | obj55.BrickColor = BrickColor.new("Dark stone grey") | |
555 | obj55.Friction = 0.30000001192093 | |
556 | obj55.Shape = Enum.PartType.Block | |
557 | obj55.Name = "DiscTop2" | |
558 | obj55.Parent = obj1 | |
559 | ||
560 | -- 56 - Mesh | |
561 | obj56 = Instance.new("CylinderMesh") | |
562 | obj56.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003) | |
563 | obj56.Parent = obj55 | |
564 | ||
565 | -- 57 - Part-to-Part Strong Joint | |
566 | obj57 = Instance.new("ManualWeld") | |
567 | obj57.Part0 = DiscTop2 | |
568 | obj57.Part1 = Part | |
569 | obj57.Name = "Part-to-Part Strong Joint" | |
570 | obj57.Parent = obj55 | |
571 | ||
572 | -- 58 - Disc2 | |
573 | obj58 = Instance.new("Part") | |
574 | obj58.CFrame = CFrame.new(Vector3.new(-39.5, 3.08999991, -48.5)) * CFrame.Angles(-0, 0, -0) | |
575 | obj58.FormFactor = Enum.FormFactor.Custom | |
576 | obj58.TopSurface = Enum.SurfaceType.Smooth | |
577 | obj58.BottomSurface = Enum.SurfaceType.Smooth | |
578 | obj58.Material = Enum.Material.Sand | |
579 | obj58.Size = Vector3.new(3, 0.200000003, 3) | |
580 | obj58.BrickColor = BrickColor.new("Black") | |
581 | obj58.Friction = 0.30000001192093 | |
582 | obj58.Shape = Enum.PartType.Block | |
583 | obj58.Name = "Disc2" | |
584 | obj58.Parent = obj1 | |
585 | ||
586 | -- 59 - Mesh | |
587 | obj59 = Instance.new("CylinderMesh") | |
588 | obj59.Scale = Vector3.new(0.899999976, 1, 0.899999976) | |
589 | obj59.Parent = obj58 | |
590 | ||
591 | -- 60 - Part-to-Part Strong Joint | |
592 | obj60 = Instance.new("ManualWeld") | |
593 | obj60.Part0 = Disc2 | |
594 | obj60.Part1 = Part | |
595 | obj60.Name = "Part-to-Part Strong Joint" | |
596 | obj60.Parent = obj58 | |
597 | ||
598 | -- 61 - Part | |
599 | obj61 = Instance.new("Part") | |
600 | obj61.CFrame = CFrame.new(Vector3.new(-37, 2.69000006, -46.5)) * CFrame.Angles(-0, 0, -0) | |
601 | obj61.FormFactor = Enum.FormFactor.Custom | |
602 | obj61.TopSurface = Enum.SurfaceType.Smooth | |
603 | obj61.BottomSurface = Enum.SurfaceType.Smooth | |
604 | obj61.Material = Enum.Material.SmoothPlastic | |
605 | obj61.Size = Vector3.new(8, 0.600000024, 1) | |
606 | obj61.BrickColor = BrickColor.new("Dark stone grey") | |
607 | obj61.Friction = 0.30000001192093 | |
608 | obj61.Shape = Enum.PartType.Block | |
609 | obj61.Parent = obj1 | |
610 | ||
611 | -- 62 - Slider2 | |
612 | obj62 = Instance.new("Part") | |
613 | obj62.CFrame = CFrame.new(Vector3.new(-38.7000237, 2.89000058, -46.5)) * CFrame.Angles(-0, 0, -0) | |
614 | obj62.FormFactor = Enum.FormFactor.Custom | |
615 | obj62.TopSurface = Enum.SurfaceType.Smooth | |
616 | obj62.BottomSurface = Enum.SurfaceType.Smooth | |
617 | obj62.Material = Enum.Material.SmoothPlastic | |
618 | obj62.Size = Vector3.new(0.200000152, 0.200000003, 1) | |
619 | obj62.BrickColor = BrickColor.new("Dark stone grey") | |
620 | obj62.Friction = 0.30000001192093 | |
621 | obj62.Shape = Enum.PartType.Block | |
622 | obj62.Name = "Slider2" | |
623 | obj62.Parent = obj1 | |
624 | ||
625 | -- 63 - Part-to-Part Strong Joint | |
626 | obj63 = Instance.new("ManualWeld") | |
627 | obj63.Part0 = Slider2 | |
628 | obj63.Part1 = nil | |
629 | obj63.Name = "Part-to-Part Strong Joint" | |
630 | obj63.Parent = obj62 | |
631 | ||
632 | -- 64 - Part-to-Part Strong Joint | |
633 | obj64 = Instance.new("ManualWeld") | |
634 | obj64.Part0 = Slider2 | |
635 | obj64.Part1 = nil | |
636 | obj64.Name = "Part-to-Part Strong Joint" | |
637 | obj64.Parent = obj62 | |
638 | ||
639 | -- 65 - Mesh | |
640 | obj65 = Instance.new("BlockMesh") | |
641 | obj65.Scale = Vector3.new(0.899999976, 1.45000005, 0.5) | |
642 | obj65.Parent = obj62 | |
643 | ||
644 | -- 66 - Slider | |
645 | obj66 = Instance.new("Part") | |
646 | obj66.CFrame = CFrame.new(Vector3.new(-34.6999969, 2.88999987, -46.5)) * CFrame.Angles(-0, 0, -0) | |
647 | obj66.FormFactor = Enum.FormFactor.Custom | |
648 | obj66.TopSurface = Enum.SurfaceType.Smooth | |
649 | obj66.BottomSurface = Enum.SurfaceType.Smooth | |
650 | obj66.Material = Enum.Material.SmoothPlastic | |
651 | obj66.Size = Vector3.new(0.200000152, 0.200000003, 1) | |
652 | obj66.BrickColor = BrickColor.new("Dark stone grey") | |
653 | obj66.Friction = 0.30000001192093 | |
654 | obj66.Shape = Enum.PartType.Block | |
655 | obj66.Name = "Slider" | |
656 | obj66.Parent = obj1 | |
657 | ||
658 | -- 67 - Part-to-Part Strong Joint | |
659 | obj67 = Instance.new("ManualWeld") | |
660 | obj67.Part0 = Slider | |
661 | obj67.Part1 = nil | |
662 | obj67.Name = "Part-to-Part Strong Joint" | |
663 | obj67.Parent = obj66 | |
664 | ||
665 | -- 68 - Part-to-Part Strong Joint | |
666 | obj68 = Instance.new("ManualWeld") | |
667 | obj68.Part0 = Slider | |
668 | obj68.Part1 = nil | |
669 | obj68.Name = "Part-to-Part Strong Joint" | |
670 | obj68.Parent = obj66 | |
671 | ||
672 | -- 69 - Mesh | |
673 | obj69 = Instance.new("BlockMesh") | |
674 | obj69.Scale = Vector3.new(0.899999976, 1.45000005, 0.5) | |
675 | obj69.Parent = obj66 | |
676 | ||
677 | for i,v in pairs(obj1:children()) do | |
678 | v.Anchored = true | |
679 | v.Locked = true | |
680 | end | |
681 | ||
682 | function Recursive(Model) | |
683 | local Stuff = {} | |
684 | local function Recur(Targ) | |
685 | for i,v in pairs(Targ:getChildren()) do | |
686 | table.insert(Stuff,v) | |
687 | Recur(v) | |
688 | end | |
689 | end | |
690 | Recur(Model) | |
691 | return Stuff | |
692 | end | |
693 | ||
694 | function MoveModel(Model,CF) | |
695 | local Center = Model:getModelCFrame() | |
696 | local Offsets = {} | |
697 | for i,v in pairs (Recursive(Model)) do | |
698 | if v:IsA("BasePart") then | |
699 | Offsets[v] = CF*Center:toObjectSpace(v.CFrame) | |
700 | end | |
701 | end | |
702 | ||
703 | for i,v in pairs(Offsets) do | |
704 | i.CFrame = v | |
705 | end | |
706 | end | |
707 | ||
708 | MoveModel(obj1, torso.CFrame*CFrame.new(0,-1.5,-3)) | |
709 | ||
710 | local value = 0 | |
711 | local Slider2CFrame = obj62.CFrame | |
712 | local SliderCFrame = obj66.CFrame | |
713 | local colur = 0 | |
714 | local hue = 0 | |
715 | local DiscoLight = Instance.new('PointLight', obj2) | |
716 | DiscoLight.Range = 0 | |
717 | game:service'RunService'.RenderStepped:connect(function() | |
718 | if obj1.Parent ~= char then return end | |
719 | if sound.IsPlaying then | |
720 | hue = ((hue+5)%360) | |
721 | colur = HSV(hue,.8,.8) | |
722 | DiscoLight.Color = Color3.new(colur.r, colur.g, colur.b) | |
723 | DiscoLight.Range = 60 | |
724 | value = (value % 360) + math.random() | |
725 | obj13.Color = Color3.new(colur.r, colur.g, colur.b) | |
726 | obj58.CFrame = obj58.CFrame * CFrame.Angles(0, .05, 0) | |
727 | obj5.CFrame = obj5.CFrame * CFrame.Angles(0, .05, 0) | |
728 | obj62.CFrame = Slider2CFrame * CFrame.new(math.sin(value)*.25, 0, 0) | |
729 | obj66.CFrame = SliderCFrame * CFrame.new(-math.sin(value)*.25, 0, 0) | |
730 | else | |
731 | DiscoLight.Range = 0 | |
732 | obj13.Color = Color3.new() | |
733 | end | |
734 | end) | |
735 | ||
736 | local function createText(parent, msg, line, size, func) | |
737 | local textLabel | |
738 | if func then | |
739 | textLabel = Instance.new("TextButton", parent) | |
740 | else | |
741 | textLabel = Instance.new("TextLabel", parent) | |
742 | end | |
743 | textLabel.Text = msg | |
744 | textLabel.Name = "List" | |
745 | if size ~= true then | |
746 | textLabel.TextScaled = false | |
747 | textLabel.FontSize = 'Size14' | |
748 | elseif size == true then | |
749 | textLabel.TextScaled = true | |
750 | end | |
751 | textLabel.BackgroundColor = BrickColor.new'Olive' | |
752 | textLabel.BackgroundTransparency = .9 | |
753 | textLabel.TextColor = BrickColor.White() | |
754 | textLabel.TextStrokeTransparency = 0.65 | |
755 | textLabel.Size = UDim2.new(1, 0, 0, 25) | |
756 | textLabel.TextXAlignment = 'Left' | |
757 | textLabel.Position = UDim2.new(0, 0, 0, (line-1)*25) | |
758 | if func then | |
759 | textLabel.MouseButton1Down:connect(function() | |
760 | local r,e = ypcall(function() | |
761 | func(plr) | |
762 | end) | |
763 | if e then print(e) end | |
764 | end) | |
765 | end | |
766 | end | |
767 | ||
768 | gui = Instance.new('ScreenGui', plrgui) | |
769 | gui.Name = 'äMixer' | |
770 | wait() | |
771 | local dragframe = Instance.new('Frame', gui) | |
772 | dragframe.Size = UDim2.new(0, 598, 0, 18) | |
773 | dragframe.BackgroundColor = BrickColor.new'Dark stone grey' | |
774 | dragframe.Position = UDim2.new(0, gui.AbsoluteSize.X - gui.AbsoluteSize.X/2 - 300, 0, 10) | |
775 | dragframe.Active = true | |
776 | dragframe.Draggable = true | |
777 | dragframe.ZIndex = 3 | |
778 | dragframe.BorderSizePixel = 0 | |
779 | local mainframe = Instance.new('Frame', dragframe) | |
780 | mainframe.Size = UDim2.new(0, 600, 0, 415) | |
781 | mainframe.Position = UDim2.new(0, -1, 0, -1) | |
782 | mainframe.BackgroundColor = BrickColor.new'Olive' | |
783 | local CPframe = Instance.new('ScrollingFrame', mainframe) | |
784 | CPframe.Size = UDim2.new(0, 470, 0, 22) | |
785 | CPframe.Position = UDim2.new(0, 130, 0, 50) | |
786 | CPframe.BackgroundColor = BrickColor.new'Dark stone grey' | |
787 | CPframe.ScrollBarThickness = 0 | |
788 | local CP = Instance.new('TextLabel', CPframe) | |
789 | CP.Size = UDim2.new(1,0,0,22) | |
790 | CP.BackgroundTransparency = 1 | |
791 | CP.ZIndex = 7 | |
792 | CP.FontSize = 'Size18' | |
793 | CP.TextColor3 = Color3.new(1,1,1) | |
794 | CP.TextStrokeTransparency = 0 | |
795 | CP.TextXAlignment = 'Left' | |
796 | CP.Text = 'Playing /-/ None' | |
797 | ||
798 | local oldCPframePos | |
799 | ||
800 | local scrollframe = Instance.new('ScrollingFrame', mainframe) | |
801 | scrollframe.Size = UDim2.new(0, 590, 0, 330) | |
802 | scrollframe.Position = UDim2.new(0, 5, 0, 80) | |
803 | scrollframe.BackgroundColor = BrickColor.new'Olive' | |
804 | scrollframe.CanvasSize = UDim2.new(0, 590, 0, 25*#SoundsList) | |
805 | local playbutton = Instance.new('TextButton', mainframe) | |
806 | playbutton.Size = UDim2.new(0, 50, 0, 50) | |
807 | playbutton.Position = UDim2.new(0, 10, 0, 25) | |
808 | playbutton.BackgroundColor3 = Color3.new(0,1,0) | |
809 | playbutton.Text = ">" | |
810 | playbutton.TextScaled = true | |
811 | playbutton.TextColor3 = Color3.new(1,1,1) | |
812 | playbutton.TextStrokeTransparency = 0 | |
813 | playbutton.MouseButton1Down:connect(function() | |
814 | game:service'ContentProvider':Preload(sound.SoundId) | |
815 | sound:play() | |
816 | local r,e = ypcall(function() | |
817 | CP.Text = 'Playing /-/ '..game:service'MarketplaceService':GetProductInfo(sound.SoundId:match("%d+")).Name | |
818 | end) | |
819 | if e then CP.Text = 'Playing /-/ Unknown asset' end | |
820 | wait() | |
821 | CPframe.CanvasSize = UDim2.new(0, CP.TextBounds.X, 0, 0) | |
822 | end) | |
823 | local stopbutton = Instance.new('TextButton', mainframe) | |
824 | stopbutton.Size = UDim2.new(0, 50, 0, 50) | |
825 | stopbutton.Position = UDim2.new(0, 70, 0, 25) | |
826 | stopbutton.BackgroundColor3 = Color3.new(1,0,0) | |
827 | stopbutton.Text = "=" | |
828 | stopbutton.TextScaled = true | |
829 | stopbutton.TextColor3 = Color3.new(1,1,1) | |
830 | stopbutton.TextStrokeTransparency = 0 | |
831 | stopbutton.MouseButton1Down:connect(function() | |
832 | sound:stop() | |
833 | CP.Text = 'Playing /-/ None' | |
834 | CPframe.CanvasPosition = Vector2.new() | |
835 | end) | |
836 | local idbox = Instance.new('TextBox', mainframe) | |
837 | idbox.Size = UDim2.new(0, 100, 0, 22) | |
838 | idbox.Position = UDim2.new(0, 130, 0, 25) | |
839 | idbox.Text = 'Insert ID here' | |
840 | idbox.BackgroundTransparency = .5 | |
841 | idbox.TextScaled = true | |
842 | idbox.TextXAlignment = 'Left' | |
843 | idbox.BackgroundColor3 = BrickColor.new'Olive'.Color | |
844 | idbox.TextColor3 = Color3.new() | |
845 | idbox.TextStrokeTransparency = 0 | |
846 | local submit = Instance.new('TextButton', mainframe) | |
847 | submit.Size = UDim2.new(0, 50, 0, 22) | |
848 | submit.Position = UDim2.new(0, 240, 0, 25) | |
849 | submit.BackgroundColor3 = Color3.new(.2,.5,.4) | |
850 | submit.Text = "Submit ID" | |
851 | submit.TextScaled = false | |
852 | submit.TextColor3 = Color3.new(1,1,1) | |
853 | submit.TextStrokeTransparency = 0 | |
854 | submit.MouseButton1Down:connect(function() | |
855 | if idbox.Text == 'Insert ID here' then return end | |
856 | sound:stop() | |
857 | sound.SoundId = "rbxassetid://"..tonumber(idbox.Text:match("%d+")) | |
858 | newSound(game:service'MarketplaceService':GetProductInfo(idbox.Text:match("%d+")).Name..' /-ID-/ '..idbox.Text:match("%d+"), idbox.Text:match("%d+")) | |
859 | createText(scrollframe, game:service'MarketplaceService':GetProductInfo(idbox.Text:match("%d+")).Name.." /-ID-/ "..idbox.Text:match("%d+"), #scrollframe:children()+1, false, function() sound.SoundId = "rbxassetid://"..idbox.Text:match("%d+") end) | |
860 | scrollframe.CanvasSize = UDim2.new(0, 590, 0, 25*#SoundsList) | |
861 | idbox.Text = 'Insert ID here' | |
862 | end) | |
863 | ||
864 | local minimize = Instance.new('TextButton', dragframe) | |
865 | minimize.Size = UDim2.new(0, 16, 0, 16) | |
866 | minimize.Position = UDim2.new(0, 582, 0, 1) | |
867 | minimize.BackgroundColor = BrickColor.new'Dark stone grey' | |
868 | minimize.Text = '-' | |
869 | minimize.TextYAlignment = 'Bottom' | |
870 | minimize.ZIndex = 3 | |
871 | minimize.TextColor3 = Color3.new(1,1,1) | |
872 | ||
873 | local maximize = Instance.new('TextButton', gui) | |
874 | maximize.Size = UDim2.new(0, 30, 0, 30) | |
875 | maximize.Position = UDim2.new(0, gui.AbsoluteSize.X-30, 0, gui.AbsoluteSize.Y-30) | |
876 | maximize.BackgroundColor = BrickColor.new'Dark stone grey' | |
877 | maximize.Text = '=' | |
878 | maximize.Visible = false | |
879 | maximize.TextColor3 = Color3.new(1,1,1) | |
880 | ||
881 | minimize.MouseButton1Down:connect(function() | |
882 | dragframe.Visible = false | |
883 | maximize.Visible = true | |
884 | end) | |
885 | maximize.MouseButton1Down:connect(function() | |
886 | dragframe.Visible = true | |
887 | maximize.Visible = false | |
888 | end) | |
889 | ||
890 | for i,v in pairs(SoundsList) do | |
891 | createText(scrollframe, v.Name.." /-ID-/ "..v["ID"], i, false, function() sound:stop() sound.SoundId = "rbxassetid://"..v["ID"] sound.Pitch = v["Pitch"] end) | |
892 | end | |
893 | ||
894 | while wait(0) do | |
895 | if CP.TextBounds.X > 470 then | |
896 | if CPframe.CanvasPosition == oldCPframePos and not (CPframe.CanvasPosition.X >= CP.TextBounds.X-471) then | |
897 | CPframe.CanvasPosition = CPframe.CanvasPosition + Vector2.new(1, 0) | |
898 | elseif (CPframe.CanvasPosition.X >= CP.TextBounds.X-471)then | |
899 | wait(3) | |
900 | CPframe.CanvasPosition = Vector2.new() | |
901 | wait(1) | |
902 | end | |
903 | oldCPframePos = CPframe.CanvasPosition | |
904 | end | |
905 | end | |
906 | end | |
907 | ||
908 | ||
909 | mouse.KeyDown:connect(function(k) | |
910 | if k == 'q' then | |
911 | activated = not activated | |
912 | if activated then | |
913 | BeginPlacingDisco() | |
914 | else | |
915 | RemoveDisco() | |
916 | end | |
917 | end | |
918 | end) |