Advertisement
Guest User

aPlaySoloFinobeSCRIPT.lua

a guest
May 22nd, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.54 KB | None | 0 0
  1. print("Loading aPlaySoloFinobeSCRIPT by sandboxed...")
  2.  
  3. Player = nil
  4.  
  5. SG = Instance.new("ScreenGui", game.CoreGui)
  6. SG.Name = "playSoloGui"
  7. Btn = Instance.new("ImageButton", SG)
  8. Btn.Name = "PlaySoloBtn"
  9. Btn.Position = UDim2.new(0.5, -40, 0, 0)
  10. Btn.Size = UDim2.new(0, 52, 0, 60)
  11. Btn.BackgroundColor3 = Color3.new(1, 1, 1)
  12. Btn.BorderColor3 = Color3.new(0, 0, 0)
  13. Btn.BackgroundTransparency = 0.5
  14. Btn.Image = "rbxassetid://408721206"
  15. Btn.ZIndex = 10
  16. Btn.Visible = true
  17. TL1 = Instance.new("TextLabel", SG)
  18. TL1.Name = "PlaySoloText"
  19. TL1.Position = UDim2.new(0.5, 20, 0, 20)
  20. TL1.Size = UDim2.new(0, 150, 0, 20)
  21. TL1.BackgroundColor3 = Color3.new(1, 1, 1)
  22. TL1.BorderColor3 = Color3.new(0, 0, 0)
  23. TL1.BackgroundTransparency = 0.7
  24. TL1.Text = "<- Click me to Play Solo!"
  25. TL1.ZIndex = 10
  26. TL1.TextScaled = true
  27. TL1.Visible = false
  28. TL2 = Instance.new("TextButton", SG)
  29. TL2.Name = "DieReminderText"
  30. TL2.Position = UDim2.new(0.25, 0, 0, 0)
  31. TL2.Size = UDim2.new(0.5, 0, 0, 62)
  32. TL2.BackgroundColor3 = Color3.new(1, 1, 1)
  33. TL2.BorderColor3 = Color3.new(0, 0, 0)
  34. TL2.BackgroundTransparency = 0.7
  35. TL2.Text = "Exit Play Solo - [Enter Edit Mode]"
  36. TL2.ZIndex = 10
  37. TL2.TextScaled = true
  38. TL2.Visible = false
  39. LocalText = Instance.new("TextButton", SG)
  40. LocalText.Name = "DieReminderText"
  41. LocalText.Position = UDim2.new(0.1, 0, 0.25, 0)
  42. LocalText.Size = UDim2.new(0.8, 0, 0.5, 0)
  43. LocalText.BackgroundColor3 = Color3.new(1, 1, 1)
  44. LocalText.BorderColor3 = Color3.new(0, 0, 0)
  45. LocalText.BackgroundTransparency = 0
  46. LocalText.Text = "Unfortunately, it is impossible to use Play Solo again due to limitations with the Roblox / Finobe Engine."
  47. LocalText.ZIndex = 10
  48. LocalText.TextScaled = true
  49. LocalText.Visible = false
  50. LocalText.MouseButton1Down:connect(function()
  51.     SG:Remove()
  52. end)
  53.  
  54. function main()
  55.     debounce = false
  56.     game.CoreGui.playSoloGui.PlaySoloBtn.Visible = false
  57.     game.CoreGui.playSoloGui.PlaySoloText.Visible = false
  58.     local function main0()
  59.         Player = game.Players:CreateLocalPlayer(0)
  60.     end
  61.     success, errorM = pcall(main0)
  62.     if not success then
  63.         Player = "no"
  64.         print("-----------------------------")
  65.         print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  66.         print("An error occurred: " .. errorM)
  67.         print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
  68.         print("-----------------------------")
  69.         if Player == "no" then
  70.             Btn.Visible = false
  71.             TL1.Visible = false
  72.             TL2.Visible = false
  73.             LocalText.Visible = true
  74.             wait(0.1)
  75.             Btn.Visible = false
  76.             TL1.Visible = false
  77.         end
  78.     end
  79.     if Player ~= "no" then
  80.         game:GetService("RunService"):run()
  81.         Player:LoadCharacter()
  82.         TL2.Visible = true
  83.         wait(0.1)
  84.         TL1.Visible = false
  85.         Player.Character.Humanoid.Died:connect(function()
  86.             if not debounce then
  87.                 debounce = true
  88.                 wait(5.1)
  89.                 Player:LoadCharacter()
  90.                 wait(0.1)
  91.                 game:GetService("RunService"):run()
  92.             end
  93.         end)
  94.         wait(0.9)
  95.         TL2.MouseButton1Down:connect(function()
  96.             Btn.Visible = true
  97.             TL1.Visible = false
  98.             TL2.Visible = false
  99.             wait(0.1)
  100.             Btn.Position = UDim2.new(0.5, -40, 1, -60)
  101.             TL1.Position = UDim2.new(0.5, 20, 1, -40)
  102.             game.Workspace.Player:Remove()
  103.             game.Players.Player:Remove()
  104.             game.Workspace.CurrentCamera:Remove()
  105.             game.CoreGui.RobloxGui:Remove()
  106.             Player = "no"
  107.             wait(0.1)
  108.             game:GetService("RunService"):reset()
  109.         end)
  110.     end
  111. end
  112.  
  113. function main2()
  114.     TL1.Visible = true
  115. end
  116. function main3()
  117.     TL1.Visible = false
  118. end
  119.  
  120. wait(0.1)
  121. TL1.Visible = false
  122.  
  123. Btn.MouseButton1Down:connect(main)
  124. Btn.MouseEnter:connect(main2)
  125. Btn.MouseLeave:connect(main3)
  126.  
  127.  
  128. print("aPlaySoloFinobeSCRIPT by sandboxed has loaded.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement