xvc200

Musical Chairs script

Dec 14th, 2024 (edited)
2,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 KB | None | 0 0
  1. if game.PlaceId == 113323927469374 then
  2. local StarterGui = game:GetService("StarterGui")
  3.  
  4. StarterGui:SetCore("SendNotification", {
  5. Title = "Script Made By",
  6. Text = "GhostPlayer",
  7. Icon = "rbxassetid://29819383",
  8. Duration = 2.5,
  9. })
  10.  
  11. -- Admin Detector in Server
  12. loadstring(game:HttpGet('https://raw.githubusercontent.com/MainScripts352/MainScripts352/main/Admin'))()
  13.  
  14. -- GUI
  15. local ScreenGui1 = Instance.new("ScreenGui")
  16. ScreenGui1.Parent = game.CoreGui
  17.  
  18. local Frame1 = Instance.new("Frame")
  19. Frame1.Parent = ScreenGui1
  20. Frame1.BackgroundColor3 = Color3.fromRGB(199, 172, 120)
  21. Frame1.Position = UDim2.new(0.6, 0, 0.1, 0)
  22. Frame1.Size = UDim2.new(0.25, 0, 0.35, 0)
  23. Frame1.Draggable = true
  24. Frame1.Active = true
  25.  
  26. Instance.new("UICorner", Frame1).CornerRadius = UDim.new(0.1, 0)
  27. Instance.new("UIStroke", Frame1).Color = Color3.fromRGB(248, 248, 248)
  28.  
  29. local TextLabel1 = Instance.new("TextLabel")
  30. TextLabel1.Parent = Frame1
  31. TextLabel1.BackgroundTransparency = 1
  32. TextLabel1.Size = UDim2.new(1, 0, 0.3, 0)
  33. TextLabel1.Font = Enum.Font.SourceSansBold
  34. TextLabel1.TextColor3 = Color3.fromRGB(248, 248, 248)
  35. TextLabel1.Text = "Musical Chairs"
  36. TextLabel1.TextSize = 20
  37.  
  38. local Frame2 = Instance.new("Frame")
  39. Frame2.Parent = Frame1
  40. Frame2.BackgroundColor3 = Color3.fromRGB(199, 172, 120)
  41. Frame2.Position = UDim2.new(0.1, 0, 0.35, 0)
  42. Frame2.Size = UDim2.new(0.8, 0, 0.5, 0)
  43.  
  44. Instance.new("UICorner", Frame2).CornerRadius = UDim.new(0.1, 0)
  45. Instance.new("UIStroke", Frame2).Color = Color3.fromRGB(248, 248, 248)
  46.  
  47. local TextButton1 = Instance.new("TextButton")
  48. TextButton1.Parent = Frame2
  49. TextButton1.BackgroundTransparency = 1
  50. TextButton1.Size = UDim2.new(0.98, 0, 0.98, 0)
  51. TextButton1.Position = UDim2.new(0.01, 0, 0.01, 0)
  52. TextButton1.Font = Enum.Font.SourceSansBold
  53. TextButton1.TextColor3 = Color3.fromRGB(248, 248, 248)
  54. TextButton1.Text = "Auto Sit"
  55. TextButton1.TextSize = 18
  56. TextButton1.TextScaled = true
  57.  
  58. TextButton1.MouseButton1Down:Connect(function()
  59. Frame2.BackgroundColor3 = Color3.fromRGB(202, 191, 163)
  60. end)
  61.  
  62. TextButton1.MouseLeave:Connect(function()
  63. Frame2.BackgroundColor3 = Color3.fromRGB(199, 172, 120)
  64. end)
  65.  
  66. local AutoSit = false
  67. TextButton1.MouseButton1Click:Connect(function()
  68. AutoSit = not AutoSit
  69. TextButton1.Text = AutoSit and "UnAuto Sit" or "Auto Sit"
  70. end)
  71.  
  72. -- Auto Sit Logic
  73. game:GetService("RunService").RenderStepped:Connect(function()
  74. if AutoSit then
  75. for _, v in pairs(workspace:WaitForChild("SpinnerStuff"):WaitForChild("ChairSpots"):GetDescendants()) do
  76. if v:IsA("BasePart") and v.Name == "Seat" and not v:FindFirstChild("SeatWeld") then
  77. v.Parent.Base.CanCollide = false
  78. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Parent.Base.CFrame * CFrame.new(0, 3, 0)
  79. end
  80. end
  81. end
  82. end)
  83.  
  84. else
  85. -- Fake disconnect GUI
  86. local gui = Instance.new("ScreenGui", game.CoreGui)
  87. gui.Name = "FakeDisconnect"
  88.  
  89. local frame = Instance.new("Frame", gui)
  90. frame.Size = UDim2.new(1, 0, 1.2, 0)
  91. frame.Position = UDim2.new(0, 0, -0.2, 0)
  92. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  93. frame.BackgroundTransparency = 0.5
  94.  
  95. local frame1 = Instance.new("Frame", frame)
  96. frame1.Size = UDim2.new(0.43, 0, 0.48, 0)
  97. frame1.Position = UDim2.new(0.27, 0, 0.28, 0)
  98. frame1.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  99.  
  100. local line = Instance.new("Frame", frame1)
  101. line.Position = UDim2.new(0.1, 0, 0.28, 0)
  102. line.Size = UDim2.new(0.78, 0, 0.0001, 0)
  103. line.BackgroundColor3 = Color3.new(0, 0, 0)
  104.  
  105. local function createLabel(parent, pos, text)
  106. local lbl = Instance.new("TextLabel", parent)
  107. lbl.BackgroundTransparency = 1
  108. lbl.Position = pos
  109. lbl.Size = UDim2.new(0.8, 0, 0.1, 0)
  110. lbl.TextColor3 = Color3.new(1, 1, 1)
  111. lbl.Font = Enum.Font.SourceSansLight
  112. lbl.TextScaled = true
  113. lbl.TextWrapped = true
  114. lbl.Text = text
  115. end
  116.  
  117. local function createButton(parent, pos, txt, callback)
  118. local btn = Instance.new("TextButton", parent)
  119. btn.Position = pos
  120. btn.Size = UDim2.new(0.37, 0, 0.15, 0)
  121. btn.BackgroundColor3 = Color3.new(1, 1, 1)
  122. btn.TextColor3 = Color3.new(0, 0, 0)
  123. btn.Font = Enum.Font.SourceSansLight
  124. btn.TextScaled = true
  125. btn.Text = txt
  126. btn.MouseButton1Click:Connect(callback)
  127. end
  128.  
  129. createLabel(frame1, UDim2.new(0.1, 0, 0.07, 0), "GhostPlayer")
  130. createLabel(frame1, UDim2.new(0.1, 0, 0.34, 0), "This Script is not Allowed in this Game")
  131. createLabel(frame1, UDim2.new(0.1, 0, 0.43, 0), "Do you want to Teleport in the game Script?")
  132. createLabel(frame1, UDim2.new(0.1, 0, 0.55, 0), "(Error Code: 267)")
  133.  
  134. createButton(frame1, UDim2.new(0.1, 0, 0.7, 0), "Join", function()
  135. gui:Destroy()
  136. game:GetService("TeleportService"):Teleport(113323927469374)
  137. end)
  138.  
  139. createButton(frame1, UDim2.new(0.52, 0, 0.7, 0), "No", function()
  140. gui:Destroy()
  141. end)
  142. end
  143.  
Advertisement
Add Comment
Please, Sign In to add comment