Advertisement
foxywolf233

Work at a gas station script

May 18th, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.81 KB | None | 0 0
  1. -- Made by Tea#1727
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local Label = Instance.new("TextLabel")
  5. local UICorner = Instance.new("UICorner")
  6. local UICorner_2 = Instance.new("UICorner")
  7. local COMINGSOON = Instance.new("TextButton")
  8. local UICorner_3 = Instance.new("UICorner")
  9. local COMINGSOON_2 = Instance.new("TextButton")
  10. local UICorner_4 = Instance.new("UICorner")
  11. local COMINGSOON_3 = Instance.new("TextButton")
  12. local UICorner_5 = Instance.new("UICorner")
  13. local COMINGSOON_4 = Instance.new("TextButton")
  14. local UICorner_6 = Instance.new("UICorner")
  15. local COMINGSOON_5 = Instance.new("TextButton")
  16. local UICorner_7 = Instance.new("UICorner")
  17. local CleanWindow = Instance.new("TextButton")
  18. local UICorner_8 = Instance.new("UICorner")
  19. local Customize = Instance.new("TextButton")
  20. local UICorner_9 = Instance.new("UICorner")
  21. local ShowFinances = Instance.new("TextButton")
  22. local UICorner_10 = Instance.new("UICorner")
  23. local COMINGSOON_6 = Instance.new("TextButton")
  24. local UICorner_11 = Instance.new("UICorner")
  25. local FuelCar = Instance.new("TextButton")
  26. local UICorner_12 = Instance.new("UICorner")
  27. local CleanFloor = Instance.new("TextButton")
  28. local UICorner_13 = Instance.new("UICorner")
  29. local DrinkRedbull = Instance.new("TextButton")
  30. local UICorner_14 = Instance.new("UICorner")
  31. local ToggleSprintOFF = Instance.new("TextButton")
  32. local UICorner_15 = Instance.new("UICorner")
  33. local ToggleSprintON = Instance.new("TextButton")
  34. local UICorner_16 = Instance.new("UICorner")
  35.  
  36. --Properties:
  37.  
  38. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  39. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  40. ScreenGui.ResetOnSpawn = false
  41.  
  42. Frame.Parent = ScreenGui
  43. Frame.BackgroundColor3 = Color3.fromRGB(89, 89, 89)
  44. Frame.BorderSizePixel = 0
  45. Frame.Position = UDim2.new(0.0841959938, 0, 0.0833549276, 0)
  46. Frame.Size = UDim2.new(0, 436, 0, 583)
  47. Frame.Active = true
  48.  
  49. Label.Name = "Label"
  50. Label.Parent = Frame
  51. Label.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  52. Label.Size = UDim2.new(0, 436, 0, 59)
  53. Label.Font = Enum.Font.GothamBold
  54. Label.Text = "Simple GUI"
  55. Label.TextColor3 = Color3.fromRGB(181, 181, 181)
  56. Label.TextScaled = true
  57. Label.TextSize = 14.000
  58. Label.TextWrapped = true
  59.  
  60. UICorner.Parent = Label
  61.  
  62. UICorner_2.CornerRadius = UDim.new(0, 9)
  63. UICorner_2.Parent = Frame
  64.  
  65. COMINGSOON.Name = "COMING SOON..."
  66. COMINGSOON.Parent = Frame
  67. COMINGSOON.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  68. COMINGSOON.Position = UDim2.new(0.0229357816, 0, 0.126929671, 0)
  69. COMINGSOON.Size = UDim2.new(0, 200, 0, 50)
  70. COMINGSOON.Font = Enum.Font.SourceSansBold
  71. COMINGSOON.Text = "COMING SOON..."
  72. COMINGSOON.TextColor3 = Color3.fromRGB(72, 72, 72)
  73. COMINGSOON.TextScaled = true
  74. COMINGSOON.TextSize = 14.000
  75. COMINGSOON.TextWrapped = true
  76.  
  77. UICorner_3.Parent = COMINGSOON
  78.  
  79. COMINGSOON_2.Name = "COMING SOON..."
  80. COMINGSOON_2.Parent = Frame
  81. COMINGSOON_2.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  82. COMINGSOON_2.Position = UDim2.new(0.509174287, 0, 0.126929671, 0)
  83. COMINGSOON_2.Size = UDim2.new(0, 200, 0, 50)
  84. COMINGSOON_2.Font = Enum.Font.SourceSansBold
  85. COMINGSOON_2.Text = "COMING SOON.."
  86. COMINGSOON_2.TextColor3 = Color3.fromRGB(72, 72, 72)
  87. COMINGSOON_2.TextScaled = true
  88. COMINGSOON_2.TextSize = 14.000
  89. COMINGSOON_2.TextWrapped = true
  90.  
  91. UICorner_4.Parent = COMINGSOON_2
  92.  
  93. COMINGSOON_3.Name = "COMING SOON..."
  94. COMINGSOON_3.Parent = Frame
  95. COMINGSOON_3.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  96. COMINGSOON_3.Position = UDim2.new(0.0229357481, 0, 0.257289886, 0)
  97. COMINGSOON_3.Size = UDim2.new(0, 200, 0, 50)
  98. COMINGSOON_3.Font = Enum.Font.SourceSansBold
  99. COMINGSOON_3.Text = "COMING SOON..."
  100. COMINGSOON_3.TextColor3 = Color3.fromRGB(72, 72, 72)
  101. COMINGSOON_3.TextScaled = true
  102. COMINGSOON_3.TextSize = 14.000
  103. COMINGSOON_3.TextWrapped = true
  104.  
  105. UICorner_5.Parent = COMINGSOON_3
  106.  
  107. COMINGSOON_4.Name = "COMING SOON..."
  108. COMINGSOON_4.Parent = Frame
  109. COMINGSOON_4.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  110. COMINGSOON_4.Position = UDim2.new(0.509174287, 0, 0.257289886, 0)
  111. COMINGSOON_4.Size = UDim2.new(0, 200, 0, 50)
  112. COMINGSOON_4.Font = Enum.Font.SourceSansBold
  113. COMINGSOON_4.Text = "COMING SOON..."
  114. COMINGSOON_4.TextColor3 = Color3.fromRGB(72, 72, 72)
  115. COMINGSOON_4.TextScaled = true
  116. COMINGSOON_4.TextSize = 14.000
  117. COMINGSOON_4.TextStrokeColor3 = Color3.fromRGB(72, 72, 72)
  118. COMINGSOON_4.TextWrapped = true
  119.  
  120. UICorner_6.Parent = COMINGSOON_4
  121.  
  122. COMINGSOON_5.Name = "COMING SOON..."
  123. COMINGSOON_5.Parent = Frame
  124. COMINGSOON_5.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  125. COMINGSOON_5.Position = UDim2.new(0.0229357481, 0, 0.387650073, 0)
  126. COMINGSOON_5.Size = UDim2.new(0, 200, 0, 50)
  127. COMINGSOON_5.Font = Enum.Font.SourceSansBold
  128. COMINGSOON_5.Text = "COMING SOON..."
  129. COMINGSOON_5.TextColor3 = Color3.fromRGB(72, 72, 72)
  130. COMINGSOON_5.TextScaled = true
  131. COMINGSOON_5.TextSize = 14.000
  132. COMINGSOON_5.TextWrapped = true
  133.  
  134. UICorner_7.Parent = COMINGSOON_5
  135.  
  136. CleanWindow.Name = "CleanWindow"
  137. CleanWindow.Parent = Frame
  138. CleanWindow.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  139. CleanWindow.Position = UDim2.new(0.0229357481, 0, 0.521440804, 0)
  140. CleanWindow.Size = UDim2.new(0, 200, 0, 50)
  141. CleanWindow.Font = Enum.Font.SourceSansBold
  142. CleanWindow.Text = "Clean Windows"
  143. CleanWindow.TextColor3 = Color3.fromRGB(72, 72, 72)
  144. CleanWindow.TextScaled = true
  145. CleanWindow.TextSize = 14.000
  146. CleanWindow.TextWrapped = true
  147.  
  148. CleanWindow.MouseButton1Down:connect(function()
  149. local args = {
  150. [1] = "Clean",
  151. [2] = workspace.Windows.Part.Attachment.Clean
  152. }
  153.  
  154. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  155. end)
  156.  
  157. UICorner_8.Parent = CleanWindow
  158.  
  159. Customize.Name = "Customize"
  160. Customize.Parent = Frame
  161. Customize.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  162. Customize.Position = UDim2.new(0.0229357481, 0, 0.656946778, 0)
  163. Customize.Size = UDim2.new(0, 200, 0, 50)
  164. Customize.Font = Enum.Font.SourceSansBold
  165. Customize.Text = "Customize Character"
  166. Customize.TextColor3 = Color3.fromRGB(72, 72, 72)
  167. Customize.TextScaled = true
  168. Customize.TextSize = 14.000
  169. Customize.TextWrapped = true
  170.  
  171. Customize.MouseButton1Down:connect(function()
  172. local args = {
  173. [1] = "Customize",
  174. [2] = true
  175. }
  176.  
  177. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  178.  
  179. end)
  180.  
  181. UICorner_9.Parent = Customize
  182.  
  183. ShowFinances.Name = "ShowFinances"
  184. ShowFinances.Parent = Frame
  185. ShowFinances.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  186. ShowFinances.Position = UDim2.new(0.0229357481, 0, 0.7975986, 0)
  187. ShowFinances.Size = UDim2.new(0, 200, 0, 50)
  188. ShowFinances.Font = Enum.Font.SourceSansBold
  189. ShowFinances.Text = "Show Finances"
  190. ShowFinances.TextColor3 = Color3.fromRGB(72, 72, 72)
  191. ShowFinances.TextScaled = true
  192. ShowFinances.TextSize = 14.000
  193. ShowFinances.TextWrapped = true
  194.  
  195. ShowFinances.MouseButton1Down:connect(function()
  196. local args = {
  197. [1] = "ShowFinances"
  198. }
  199.  
  200. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  201. end)
  202.  
  203. UICorner_10.Parent = ShowFinances
  204.  
  205. COMINGSOON_6.Name = "COMING SOON..."
  206. COMINGSOON_6.Parent = Frame
  207. COMINGSOON_6.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  208. COMINGSOON_6.Position = UDim2.new(0.509174287, 0, 0.387650073, 0)
  209. COMINGSOON_6.Size = UDim2.new(0, 200, 0, 50)
  210. COMINGSOON_6.Font = Enum.Font.SourceSansBold
  211. COMINGSOON_6.Text = "COMING SOON..."
  212. COMINGSOON_6.TextColor3 = Color3.fromRGB(72, 72, 72)
  213. COMINGSOON_6.TextScaled = true
  214. COMINGSOON_6.TextSize = 14.000
  215. COMINGSOON_6.TextWrapped = true
  216.  
  217. UICorner_11.Parent = COMINGSOON_6
  218.  
  219. FuelCar.Name = "FuelCar"
  220. FuelCar.Parent = Frame
  221. FuelCar.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  222. FuelCar.Position = UDim2.new(0.509174287, 0, 0.521440804, 0)
  223. FuelCar.Size = UDim2.new(0, 200, 0, 50)
  224. FuelCar.Font = Enum.Font.SourceSansBold
  225. FuelCar.Text = "Fuel Car"
  226. FuelCar.TextColor3 = Color3.fromRGB(72, 72, 72)
  227. FuelCar.TextScaled = true
  228. FuelCar.TextSize = 14.000
  229. FuelCar.TextWrapped = true
  230.  
  231. FuelCar.MouseButton1Down:connect(function()
  232. local args = {
  233. [1] = "FuelCustomer",
  234. [2] = workspace.Car_Med,
  235. [3] = workspace.Pumps.Pump_Type1
  236. }
  237.  
  238. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  239. end)
  240.  
  241. UICorner_12.Parent = FuelCar
  242.  
  243. CleanFloor.Name = "CleanFloor"
  244. CleanFloor.Parent = Frame
  245. CleanFloor.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  246. CleanFloor.Position = UDim2.new(0.509174287, 0, 0.655231535, 0)
  247. CleanFloor.Size = UDim2.new(0, 200, 0, 50)
  248. CleanFloor.Font = Enum.Font.SourceSansBold
  249. CleanFloor.Text = "Clean Floor"
  250. CleanFloor.TextColor3 = Color3.fromRGB(72, 72, 72)
  251. CleanFloor.TextScaled = true
  252. CleanFloor.TextSize = 14.000
  253. CleanFloor.TextWrapped = true
  254.  
  255. CleanFloor.MouseButton1Down:connect(function()
  256. local args = {
  257. [1] = "Clean",
  258. [2] = workspace.Spot.Clean
  259. }
  260.  
  261. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  262. end)
  263.  
  264. UICorner_13.Parent = CleanFloor
  265.  
  266. DrinkRedbull.Name = "DrinkRedbull"
  267. DrinkRedbull.Parent = Frame
  268. DrinkRedbull.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  269. DrinkRedbull.Position = UDim2.new(0.509174287, 0, 0.795883358, 0)
  270. DrinkRedbull.Size = UDim2.new(0, 200, 0, 50)
  271. DrinkRedbull.Font = Enum.Font.SourceSansBold
  272. DrinkRedbull.Text = "Drink RedBull"
  273. DrinkRedbull.TextColor3 = Color3.fromRGB(72, 72, 72)
  274. DrinkRedbull.TextScaled = true
  275. DrinkRedbull.TextSize = 14.000
  276. DrinkRedbull.TextWrapped = true
  277.  
  278. DrinkRedbull.MouseButton1Down:connect(function()
  279. local args = {
  280. [1] = "BuyBloxBull",
  281. [2] = workspace.Vendor_BloxBull_1
  282. }
  283.  
  284. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  285. end)
  286.  
  287. UICorner_14.Parent = DrinkRedbull
  288.  
  289. ToggleSprintOFF.Name = "ToggleSprint(OFF)"
  290. ToggleSprintOFF.Parent = Frame
  291. ToggleSprintOFF.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  292. ToggleSprintOFF.Position = UDim2.new(0.509174287, 0, 0.915951967, 0)
  293. ToggleSprintOFF.Size = UDim2.new(0, 200, 0, 40)
  294. ToggleSprintOFF.Font = Enum.Font.SourceSansBold
  295. ToggleSprintOFF.Text = "Toggle Sprint (OFF)"
  296. ToggleSprintOFF.TextColor3 = Color3.fromRGB(72, 72, 72)
  297. ToggleSprintOFF.TextScaled = true
  298. ToggleSprintOFF.TextSize = 14.000
  299. ToggleSprintOFF.TextWrapped = true
  300.  
  301. ToggleSprintOFF.MouseButton1Down:connect(function()
  302. local args = {
  303. [1] = "Sprinting",
  304. [2] = false
  305. }
  306.  
  307. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  308. end)
  309.  
  310. UICorner_15.Parent = ToggleSprintOFF
  311.  
  312. ToggleSprintON.Name = "ToggleSprint(ON)"
  313. ToggleSprintON.Parent = Frame
  314. ToggleSprintON.BackgroundColor3 = Color3.fromRGB(122, 122, 122)
  315. ToggleSprintON.Position = UDim2.new(0.0229357444, 0, 0.915951967, 0)
  316. ToggleSprintON.Size = UDim2.new(0, 200, 0, 40)
  317. ToggleSprintON.Font = Enum.Font.SourceSansBold
  318. ToggleSprintON.Text = "Toggle Sprint (ON)"
  319. ToggleSprintON.TextColor3 = Color3.fromRGB(72, 72, 72)
  320. ToggleSprintON.TextScaled = true
  321. ToggleSprintON.TextSize = 14.000
  322. ToggleSprintON.TextWrapped = true
  323.  
  324. ToggleSprintON.MouseButton1Down:connect(function()
  325. local args = {
  326. [1] = "Sprinting",
  327. [2] = true
  328. }
  329.  
  330. game:GetService("ReplicatedStorage").Remote:FireServer(unpack(args))
  331. end)
  332.  
  333. UICorner_16.Parent = ToggleSprintON
  334.  
  335. -- Scripts:
  336.  
  337. local function GTBFSBY_fake_script() -- Frame.Smooth GUI Dragging
  338. local script = Instance.new('LocalScript', Frame)
  339.  
  340. local UserInputService = game:GetService("UserInputService")
  341. local runService = (game:GetService("RunService"));
  342.  
  343. local gui = script.Parent
  344.  
  345. local dragging
  346. local dragInput
  347. local dragStart
  348. local startPos
  349.  
  350. function Lerp(a, b, m)
  351. return a + (b - a) * m
  352. end;
  353.  
  354. local lastMousePos
  355. local lastGoalPos
  356. local DRAG_SPEED = (8); -- // The speed of the UI darg.
  357. function Update(dt)
  358. if not (startPos) then return end;
  359. if not (dragging) and (lastGoalPos) then
  360. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  361. return
  362. end;
  363.  
  364. local delta = (lastMousePos - UserInputService:GetMouseLocation())
  365. local xGoal = (startPos.X.Offset - delta.X);
  366. local yGoal = (startPos.Y.Offset - delta.Y);
  367. lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  368. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  369. end;
  370.  
  371. gui.InputBegan:Connect(function(input)
  372. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  373. dragging = true
  374. dragStart = input.Position
  375. startPos = gui.Position
  376. lastMousePos = UserInputService:GetMouseLocation()
  377.  
  378. input.Changed:Connect(function()
  379. if input.UserInputState == Enum.UserInputState.End then
  380. dragging = false
  381. end
  382. end)
  383. end
  384. end)
  385.  
  386. gui.InputChanged:Connect(function(input)
  387. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  388. dragInput = input
  389. end
  390. end)
  391.  
  392. runService.Heartbeat:Connect(Update)
  393. end
  394. coroutine.wrap(GTBFSBY_fake_script)()
  395. local function RIJO_fake_script() -- Frame.Smooth GUI Dragging
  396. local script = Instance.new('LocalScript', Frame)
  397.  
  398. local UserInputService = game:GetService("UserInputService")
  399. local runService = (game:GetService("RunService"));
  400.  
  401. local gui = script.Parent
  402.  
  403. local dragging
  404. local dragInput
  405. local dragStart
  406. local startPos
  407.  
  408. function Lerp(a, b, m)
  409. return a + (b - a) * m
  410. end;
  411.  
  412. local lastMousePos
  413. local lastGoalPos
  414. local DRAG_SPEED = (8); -- // The speed of the UI darg.
  415. function Update(dt)
  416. if not (startPos) then return end;
  417. if not (dragging) and (lastGoalPos) then
  418. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, lastGoalPos.X.Offset, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, lastGoalPos.Y.Offset, dt * DRAG_SPEED))
  419. return
  420. end;
  421.  
  422. local delta = (lastMousePos - UserInputService:GetMouseLocation())
  423. local xGoal = (startPos.X.Offset - delta.X);
  424. local yGoal = (startPos.Y.Offset - delta.Y);
  425. lastGoalPos = UDim2.new(startPos.X.Scale, xGoal, startPos.Y.Scale, yGoal)
  426. gui.Position = UDim2.new(startPos.X.Scale, Lerp(gui.Position.X.Offset, xGoal, dt * DRAG_SPEED), startPos.Y.Scale, Lerp(gui.Position.Y.Offset, yGoal, dt * DRAG_SPEED))
  427. end;
  428.  
  429. gui.InputBegan:Connect(function(input)
  430. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  431. dragging = true
  432. dragStart = input.Position
  433. startPos = gui.Position
  434. lastMousePos = UserInputService:GetMouseLocation()
  435.  
  436. input.Changed:Connect(function()
  437. if input.UserInputState == Enum.UserInputState.End then
  438. dragging = false
  439. end
  440. end)
  441. end
  442. end)
  443.  
  444. gui.InputChanged:Connect(function(input)
  445. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  446. dragInput = input
  447. end
  448. end)
  449.  
  450. runService.Heartbeat:Connect(Update)
  451. end
  452. coroutine.wrap(RIJO_fake_script)()
  453.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement