XScriptGiverX

Break IN GUI

Jun 27th, 2020
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.01 KB | None | 0 0
  1. localplyer = game.Players.LocalPlayer.Name
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local Title = Instance.new("TextLabel")
  6. local Apple = Instance.new("TextButton")
  7. local Cookie = Instance.new("TextButton")
  8. local Plank = Instance.new("TextButton")
  9. local BloxyCola = Instance.new("TextButton")
  10. local Items = Instance.new("TextLabel")
  11. local Teleports = Instance.new("TextLabel")
  12. local House = Instance.new("TextButton")
  13. local Basement = Instance.new("TextButton")
  14. local Attic = Instance.new("TextButton")
  15. local Store = Instance.new("TextButton")
  16. local SewerDrain = Instance.new("TextButton")
  17. local BossRoom = Instance.new("TextButton")
  18. local VaultCode = Instance.new("TextButton")
  19.  
  20. --Properties:
  21.  
  22. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  23. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  24.  
  25. Frame.Parent = ScreenGui
  26. Frame.BackgroundColor3 = Color3.new(0.313726, 0.313726, 0.313726)
  27. Frame.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  28. Frame.BorderSizePixel = 3
  29. Frame.Position = UDim2.new(0.363200009, 0, 0.224999994, 0)
  30. Frame.Size = UDim2.new(0, 284, 0, 376)
  31.  
  32. Title.Name = "Title"
  33. Title.Parent = Frame
  34. Title.BackgroundColor3 = Color3.new(0.207843, 0.207843, 0.207843)
  35. Title.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  36. Title.BorderSizePixel = 3
  37. Title.LayoutOrder = 1
  38. Title.Position = UDim2.new(0, 0, -0.000405250699, 0)
  39. Title.Size = UDim2.new(0, 284, 0, 30)
  40. Title.Font = Enum.Font.GothamBold
  41. Title.Text = "Break-In Gui"
  42. Title.TextColor3 = Color3.new(1, 1, 1)
  43. Title.TextSize = 20
  44.  
  45. Apple.Name = "Apple"
  46. Apple.Parent = Frame
  47. Apple.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  48. Apple.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  49. Apple.BorderSizePixel = 3
  50. Apple.Position = UDim2.new(0.0281690136, 0, 0.186170205, 0)
  51. Apple.Size = UDim2.new(0, 126, 0, 32)
  52. Apple.Font = Enum.Font.GothamBold
  53. Apple.Text = "Apple"
  54. Apple.TextColor3 = Color3.new(1, 1, 1)
  55. Apple.TextSize = 14
  56. Apple.MouseButton1Down:connect(function()
  57. game.ReplicatedStorage.RemoteEvents.GiveTool:FireServer("Apple")
  58. end)
  59.  
  60. Cookie.Name = "Cookie"
  61. Cookie.Parent = Frame
  62. Cookie.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  63. Cookie.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  64. Cookie.BorderSizePixel = 3
  65. Cookie.Position = UDim2.new(0.524647892, 0, 0.186170205, 0)
  66. Cookie.Size = UDim2.new(0, 126, 0, 32)
  67. Cookie.Font = Enum.Font.GothamBold
  68. Cookie.Text = "Cookie"
  69. Cookie.TextColor3 = Color3.new(1, 1, 1)
  70. Cookie.TextSize = 14
  71. Cookie.MouseButton1Down:connect(function()
  72. game.ReplicatedStorage.RemoteEvents.GiveTool:FireServer("Cookie")
  73. end)
  74.  
  75. Plank.Name = "Plank"
  76. Plank.Parent = Frame
  77. Plank.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  78. Plank.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  79. Plank.BorderSizePixel = 3
  80. Plank.Position = UDim2.new(0.524647892, 0, 0.31382978, 0)
  81. Plank.Size = UDim2.new(0, 126, 0, 32)
  82. Plank.Font = Enum.Font.GothamBold
  83. Plank.Text = "Plank"
  84. Plank.TextColor3 = Color3.new(1, 1, 1)
  85. Plank.TextSize = 14
  86. Plank.MouseButton1Down:connect(function()
  87. game.ReplicatedStorage.RemoteEvents.GiveTool:FireServer("Plank")
  88. end)
  89.  
  90. BloxyCola.Name = "BloxyCola"
  91. BloxyCola.Parent = Frame
  92. BloxyCola.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  93. BloxyCola.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  94. BloxyCola.BorderSizePixel = 3
  95. BloxyCola.Position = UDim2.new(0.0281690061, 0, 0.31382978, 0)
  96. BloxyCola.Size = UDim2.new(0, 126, 0, 32)
  97. BloxyCola.Font = Enum.Font.GothamBold
  98. BloxyCola.Text = "Bloxy Cola"
  99. BloxyCola.TextColor3 = Color3.new(1, 1, 1)
  100. BloxyCola.TextSize = 14
  101. BloxyCola.MouseButton1Down:connect(function()
  102. game.ReplicatedStorage.RemoteEvents.GiveTool:FireServer("BloxyCola")
  103. end)
  104.  
  105. Items.Name = "Items"
  106. Items.Parent = Frame
  107. Items.BackgroundColor3 = Color3.new(0.313726, 0.313726, 0.313726)
  108. Items.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  109. Items.BorderSizePixel = 0
  110. Items.LayoutOrder = 1
  111. Items.Position = UDim2.new(0, 0, 0.0953394324, 0)
  112. Items.Size = UDim2.new(0, 284, 0, 24)
  113. Items.Font = Enum.Font.GothamBold
  114. Items.Text = "--- Spawnable Items ---"
  115. Items.TextColor3 = Color3.new(1, 1, 1)
  116. Items.TextSize = 20
  117.  
  118. Teleports.Name = "Teleports"
  119. Teleports.Parent = Frame
  120. Teleports.BackgroundColor3 = Color3.new(0.313726, 0.313726, 0.313726)
  121. Teleports.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  122. Teleports.BorderSizePixel = 0
  123. Teleports.LayoutOrder = 1
  124. Teleports.Position = UDim2.new(0, 0, 0.5235309, 0)
  125. Teleports.Size = UDim2.new(0, 284, 0, 30)
  126. Teleports.Font = Enum.Font.GothamBold
  127. Teleports.Text = "--- Teleport Locations ---"
  128. Teleports.TextColor3 = Color3.new(1, 1, 1)
  129. Teleports.TextSize = 20
  130.  
  131. House.Name = "House"
  132. House.Parent = Frame
  133. House.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  134. House.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  135. House.BorderSizePixel = 3
  136. House.Position = UDim2.new(0.0281690061, 0, 0.630319118, 0)
  137. House.Size = UDim2.new(0, 126, 0, 32)
  138. House.Font = Enum.Font.GothamBold
  139. House.Text = "House"
  140. House.TextColor3 = Color3.new(1, 1, 1)
  141. House.TextSize = 14
  142. House.MouseButton1Down:connect(function()
  143. game.workspace[localplyer].HumanoidRootPart.CFrame = CFrame.new(-36, 3, -200) -- House
  144. end)
  145.  
  146. Basement.Name = "Basement"
  147. Basement.Parent = Frame
  148. Basement.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  149. Basement.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  150. Basement.BorderSizePixel = 3
  151. Basement.Position = UDim2.new(0.524647892, 0, 0.630319118, 0)
  152. Basement.Size = UDim2.new(0, 126, 0, 32)
  153. Basement.Font = Enum.Font.GothamBold
  154. Basement.Text = "Basement"
  155. Basement.TextColor3 = Color3.new(1, 1, 1)
  156. Basement.TextSize = 14
  157. Basement.MouseButton1Down:connect(function()
  158. game.workspace[localplyer].HumanoidRootPart.CFrame = CFrame.new(71, -15, -163) -- Basement
  159. end)
  160.  
  161. Attic.Name = "Attic"
  162. Attic.Parent = Frame
  163. Attic.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  164. Attic.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  165. Attic.BorderSizePixel = 3
  166. Attic.Position = UDim2.new(0.524647892, 0, 0.760638297, 0)
  167. Attic.Size = UDim2.new(0, 126, 0, 32)
  168. Attic.Font = Enum.Font.GothamBold
  169. Attic.Text = "Attic"
  170. Attic.TextColor3 = Color3.new(1, 1, 1)
  171. Attic.TextSize = 14
  172. Attic.MouseButton1Down:connect(function()
  173. game.workspace[localplyer].HumanoidRootPart.CFrame = CFrame.new(-16, 35, -220) -- Attic
  174. end)
  175.  
  176. Store.Name = "Store"
  177. Store.Parent = Frame
  178. Store.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  179. Store.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  180. Store.BorderSizePixel = 3
  181. Store.Position = UDim2.new(0.0281690061, 0, 0.760638297, 0)
  182. Store.Size = UDim2.new(0, 126, 0, 32)
  183. Store.Font = Enum.Font.GothamBold
  184. Store.Text = "Store"
  185. Store.TextColor3 = Color3.new(1, 1, 1)
  186. Store.TextSize = 14
  187. Store.MouseButton1Down:connect(function()
  188. game.workspace[localplyer].HumanoidRootPart.CFrame = CFrame.new(-422, 3, -121) -- Store
  189. end)
  190.  
  191. SewerDrain.Name = "Sewer Drain"
  192. SewerDrain.Parent = Frame
  193. SewerDrain.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  194. SewerDrain.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  195. SewerDrain.BorderSizePixel = 3
  196. SewerDrain.Position = UDim2.new(0.0281690061, 0, 0.885638237, 0)
  197. SewerDrain.Size = UDim2.new(0, 126, 0, 32)
  198. SewerDrain.Font = Enum.Font.GothamBold
  199. SewerDrain.Text = "Sewer Drain"
  200. SewerDrain.TextColor3 = Color3.new(1, 1, 1)
  201. SewerDrain.TextSize = 14
  202. SewerDrain.MouseButton1Down:connect(function()
  203. game.workspace[localplyer].HumanoidRootPart.CFrame = CFrame.new(129, 3, -125) -- Sewer Lid
  204. end)
  205.  
  206. BossRoom.Name = "Boss Room"
  207. BossRoom.Parent = Frame
  208. BossRoom.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  209. BossRoom.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  210. BossRoom.BorderSizePixel = 3
  211. BossRoom.Position = UDim2.new(0.524647892, 0, 0.885638237, 0)
  212. BossRoom.Size = UDim2.new(0, 126, 0, 32)
  213. BossRoom.Font = Enum.Font.GothamBold
  214. BossRoom.Text = "Boss Room"
  215. BossRoom.TextColor3 = Color3.new(1, 1, 1)
  216. BossRoom.TextSize = 14
  217. BossRoom.MouseButton1Down:connect(function()
  218. game.workspace[localplyer].HumanoidRootPart.CFrame = CFrame.new(-39, -287, -1480) -- Final Boss Room
  219. end)
  220.  
  221. VaultCode.Name = "Vault Code"
  222. VaultCode.Parent = Frame
  223. VaultCode.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  224. VaultCode.BorderColor3 = Color3.new(0.0392157, 0.0588235, 0.0784314)
  225. VaultCode.BorderSizePixel = 3
  226. VaultCode.Position = UDim2.new(0.278169006, 0, 0.43617022, 0)
  227. VaultCode.Size = UDim2.new(0, 126, 0, 32)
  228. VaultCode.Font = Enum.Font.GothamBold
  229. VaultCode.Text = "Vault Code"
  230. VaultCode.TextColor3 = Color3.new(1, 1, 1)
  231. VaultCode.TextSize = 14
  232. VaultCode.MouseButton1Down:connect(function()
  233. game.workspace.CodeNote.CFrame = game.workspace[localplyer].HumanoidRootPart.CFrame
  234. end)
  235.  
  236. -- Scripts:
  237.  
  238. local function RMIROO_fake_script() -- Frame.LocalScript
  239. local script = Instance.new('LocalScript', Frame)
  240.  
  241. local UserInputService = game:GetService("UserInputService")
  242.  
  243. local gui = script.Parent
  244.  
  245. local dragging
  246. local dragInput
  247. local dragStart
  248. local startPos
  249.  
  250. local function update(input)
  251. local delta = input.Position - dragStart
  252. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  253. end
  254.  
  255. gui.InputBegan:Connect(function(input)
  256. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  257. dragging = true
  258. dragStart = input.Position
  259. startPos = gui.Position
  260.  
  261. input.Changed:Connect(function()
  262. if input.UserInputState == Enum.UserInputState.End then
  263. dragging = false
  264. end
  265. end)
  266. end
  267. end)
  268.  
  269. gui.InputChanged:Connect(function(input)
  270. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  271. dragInput = input
  272. end
  273. end)
  274.  
  275. UserInputService.InputChanged:Connect(function(input)
  276. if input == dragInput and dragging then
  277. update(input)
  278. end
  279. end)
  280.  
  281. end
  282. coroutine.wrap(RMIROO_fake_script)()
Add Comment
Please, Sign In to add comment