Advertisement
Syahrul_Gibran

Chess club script

Jun 29th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2. local replicatedStorage = game:GetService("ReplicatedStorage")
  3. local lplr = Players.LocalPlayer
  4.  
  5. local screenGui = Instance.new("ScreenGui", lplr:WaitForChild("PlayerGui"))
  6. screenGui.Name = "AutoPlayUI"
  7. local activetableset = game:GetService("ReplicatedStorage").InternalClientEvents.GetActiveTableset:Invoke()
  8. local button = Instance.new("TextButton")
  9. button.Size = UDim2.new(0, 150, 0, 50)
  10. button.Position = UDim2.new(0.5, -75, 1, -60)
  11. button.Text = "Auto Play"
  12. button.BackgroundColor3 = Color3.fromRGB(30, 150, 250)
  13. button.TextColor3 = Color3.new(1, 1, 1)
  14. button.TextScaled = true
  15. button.Font = Enum.Font.GothamBold
  16. button.Parent = screenGui
  17. local sundown = require(game:GetService("Players").LocalPlayer.PlayerScripts.AI.Sunfish)
  18.  
  19. button.MouseButton1Click:Connect(function()
  20.     activetableset = game:GetService("ReplicatedStorage").InternalClientEvents.GetActiveTableset:Invoke().FEN.Value
  21.     game:GetService("ReplicatedStorage"):WaitForChild("Chess"):WaitForChild("SubmitMove"):InvokeServer(tostring(sundown:GetBestMove(activetableset, 1750)))
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement