Guest User

Impossible Squid Game Script

a guest
Jan 24th, 2022
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.91 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local UIGradient = Instance.new("UIGradient")
  9. local UICorner = Instance.new("UICorner")
  10. local TopBar = Instance.new("Frame")
  11. local UIGradient_2 = Instance.new("UIGradient")
  12. local UICorner_2 = Instance.new("UICorner")
  13. local TextLabel = Instance.new("TextLabel")
  14. local CornerBar = Instance.new("Frame")
  15. local UIGradient_3 = Instance.new("UIGradient")
  16. local UICorner_3 = Instance.new("UICorner")
  17. local CornerBar_2 = Instance.new("Frame")
  18. local UIGradient_4 = Instance.new("UIGradient")
  19. local UICorner_4 = Instance.new("UICorner")
  20. local TextLabel_2 = Instance.new("TextLabel")
  21. local TextLabel_3 = Instance.new("TextLabel")
  22. local TextLabel_4 = Instance.new("TextLabel")
  23. local TextLabel_5 = Instance.new("TextLabel")
  24. local ImageLabel = Instance.new("ImageLabel")
  25. local UICorner_5 = Instance.new("UICorner")
  26. local TextButton = Instance.new("TextButton")
  27.  
  28. --Properties:
  29.  
  30. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  31. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  32.  
  33. Frame.Parent = ScreenGui
  34. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  35. Frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  36. Frame.BorderSizePixel = 0
  37. Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
  38. Frame.Size = UDim2.new(0, 615, 0, 366)
  39.  
  40. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(216, 216, 216)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(216, 216, 216))}
  41. UIGradient.Parent = Frame
  42.  
  43. UICorner.Parent = Frame
  44.  
  45. TopBar.Name = "TopBar"
  46. TopBar.Parent = Frame
  47. TopBar.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  48. TopBar.BorderSizePixel = 0
  49. TopBar.Position = UDim2.new(-0.00121377409, 0, -0.00263221748, 0)
  50. TopBar.Size = UDim2.new(0, 615, 0, 37)
  51.  
  52. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(216, 216, 216)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(216, 216, 216))}
  53. UIGradient_2.Parent = TopBar
  54.  
  55. UICorner_2.Parent = TopBar
  56.  
  57. TextLabel.Parent = TopBar
  58. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  59. TextLabel.BackgroundTransparency = 1.000
  60. TextLabel.Position = UDim2.new(0.310569108, 0, 0.0810810775, 0)
  61. TextLabel.Size = UDim2.new(0, 343, 0, 28)
  62. TextLabel.Font = Enum.Font.GothamBold
  63. TextLabel.Text = "Impossible Squid Game Transaction"
  64. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. TextLabel.TextScaled = true
  66. TextLabel.TextSize = 20.000
  67. TextLabel.TextWrapped = true
  68.  
  69. CornerBar.Name = "CornerBar"
  70. CornerBar.Parent = Frame
  71. CornerBar.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  72. CornerBar.BorderSizePixel = 0
  73. CornerBar.Position = UDim2.new(-0.00121375604, 0, 0.0711383075, 0)
  74. CornerBar.Size = UDim2.new(0, 149, 0, 339)
  75.  
  76. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(216, 216, 216)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(216, 216, 216))}
  77. UIGradient_3.Parent = CornerBar
  78.  
  79. UICorner_3.Parent = CornerBar
  80.  
  81. CornerBar_2.Name = "CornerBar"
  82. CornerBar_2.Parent = Frame
  83. CornerBar_2.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  84. CornerBar_2.BorderSizePixel = 0
  85. CornerBar_2.Position = UDim2.new(0.766265929, 0, 0.0957284719, 0)
  86. CornerBar_2.Size = UDim2.new(0, 10, 0, 330)
  87.  
  88. UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(216, 216, 216)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(216, 216, 216))}
  89. UIGradient_4.Parent = CornerBar_2
  90.  
  91. UICorner_4.Parent = CornerBar_2
  92.  
  93. TextLabel_2.Parent = Frame
  94. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  95. TextLabel_2.BackgroundTransparency = 1.000
  96. TextLabel_2.Position = UDim2.new(0.806504011, 0, 0.0971791372, 0)
  97. TextLabel_2.Size = UDim2.new(0, 119, 0, 21)
  98. TextLabel_2.Font = Enum.Font.GothamBold
  99. TextLabel_2.Text = "Credits:"
  100. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  101. TextLabel_2.TextScaled = true
  102. TextLabel_2.TextSize = 20.000
  103. TextLabel_2.TextWrapped = true
  104.  
  105. TextLabel_3.Parent = Frame
  106. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  107. TextLabel_3.BackgroundTransparency = 1.000
  108. TextLabel_3.Position = UDim2.new(0.782526076, 0, 0.184610829, 0)
  109. TextLabel_3.Size = UDim2.new(0, 133, 0, 21)
  110. TextLabel_3.Font = Enum.Font.GothamBold
  111. TextLabel_3.Text = "Founder: PastUnderStandings"
  112. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  113. TextLabel_3.TextScaled = true
  114. TextLabel_3.TextSize = 20.000
  115. TextLabel_3.TextWrapped = true
  116.  
  117. TextLabel_4.Parent = Frame
  118. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  119. TextLabel_4.BackgroundTransparency = 1.000
  120. TextLabel_4.Position = UDim2.new(0.782526076, 0, 0.280239254, 0)
  121. TextLabel_4.Size = UDim2.new(0, 133, 0, 21)
  122. TextLabel_4.Font = Enum.Font.GothamBold
  123. TextLabel_4.Text = "Tester: PickleNickle"
  124. TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  125. TextLabel_4.TextScaled = true
  126. TextLabel_4.TextSize = 20.000
  127. TextLabel_4.TextWrapped = true
  128.  
  129. TextLabel_5.Parent = Frame
  130. TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  131. TextLabel_5.BackgroundTransparency = 1.000
  132. TextLabel_5.Position = UDim2.new(0.0182984397, 0, 0.0234086514, 0)
  133. TextLabel_5.Size = UDim2.new(0, 124, 0, 13)
  134. TextLabel_5.Font = Enum.Font.GothamBold
  135. TextLabel_5.Text = "1FOB - Impossible Squid Game"
  136. TextLabel_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  137. TextLabel_5.TextScaled = true
  138. TextLabel_5.TextSize = 20.000
  139. TextLabel_5.TextWrapped = true
  140.  
  141. ImageLabel.Parent = Frame
  142. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  143. ImageLabel.Position = UDim2.new(0.240650401, 0, 0.0152119286, 0)
  144. ImageLabel.Size = UDim2.new(0, 29, 0, 25)
  145. ImageLabel.Image = "rbxassetid://8624734600"
  146.  
  147. UICorner_5.CornerRadius = UDim.new(0, 88)
  148. UICorner_5.Parent = ImageLabel
  149.  
  150. TextButton.Parent = Frame
  151. TextButton.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  152. TextButton.Position = UDim2.new(0.254985482, 0, 0.152527243, 0)
  153. TextButton.Size = UDim2.new(0, 150, 0, 49)
  154. TextButton.Font = Enum.Font.GothamBold
  155. TextButton.Text = "Teleport to End"
  156. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  157. TextButton.TextScaled = true
  158. TextButton.TextSize = 14.000
  159. TextButton.TextWrapped = true
  160.  
  161. -- Scripts:
  162.  
  163. local function SLTQXF_fake_script() -- Frame.LocalScript
  164. local script = Instance.new('LocalScript', Frame)
  165.  
  166. local UIS = game:GetService('UserInputService')
  167.  
  168. local frame = script.Parent
  169.  
  170.  
  171.  
  172. local dragToggle = nil
  173.  
  174. local dragSpeed = 0.25
  175.  
  176. local dragStart = nil
  177.  
  178. local startPos = nil
  179.  
  180.  
  181.  
  182. local function updateInput(input)
  183.  
  184. local delta = input.Position - dragStart
  185.  
  186. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  187.  
  188. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  189.  
  190. game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  191.  
  192. end
  193.  
  194.  
  195.  
  196. frame.InputBegan:Connect(function(input)
  197.  
  198. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  199.  
  200. dragToggle = true
  201.  
  202. dragStart = input.Position
  203.  
  204. startPos = frame.Position
  205.  
  206. input.Changed:Connect(function()
  207.  
  208. if input.UserInputState == Enum.UserInputState.End then
  209.  
  210. dragToggle = false
  211.  
  212. end
  213.  
  214. end)
  215.  
  216. end
  217.  
  218. end)
  219.  
  220.  
  221.  
  222. UIS.InputChanged:Connect(function(input)
  223.  
  224. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  225.  
  226. if dragToggle then
  227.  
  228. updateInput(input)
  229.  
  230. end
  231.  
  232. end
  233.  
  234. end)
  235. end
  236. coroutine.wrap(SLTQXF_fake_script)()
  237. local function BRXV_fake_script() -- TextButton.Script
  238. local script = Instance.new('Script', TextButton)
  239.  
  240. local plr = script.Parent.Parent.Parent.Parent.Parent -- if this doesnt work, use your own variables that targeting to Player
  241. local char = plr.Character
  242.  
  243. script.Parent.MouseButton1Click:Connect(function()
  244. char.HumanoidRootPart.CFrame = workspace.Jackpot.CFrame -- Change Part1 to Your Teleport brick name
  245. end)
  246. end
  247. coroutine.wrap(BRXV_fake_script)()
  248.  
Advertisement
Add Comment
Please, Sign In to add comment