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