Advertisement
Lacden

School RP FR Roblox

Jul 19th, 2024 (edited)
2,142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 37.57 KB | Source Code | 0 0
  1. local Workspace = game:GetService("Workspace")
  2. local Players = game:GetService("Players")
  3. local TweenService = game:GetService("TweenService")
  4. local RunService = game:GetService("RunService")
  5. local Lighting = game:GetService("Lighting")
  6. local LocalPlayer = Players.LocalPlayer
  7. local PlayerGui = LocalPlayer.PlayerGui
  8.  
  9. if PlayerGui:FindFirstChild("Lacden Client") then PlayerGui:FindFirstChild("Lacden Client"):Destroy() end
  10.  
  11. local ScreenGui = Instance.new("ScreenGui", PlayerGui)
  12. ------------------------
  13. local Frame = Instance.new("Frame", ScreenGui)
  14. local FrameUICorner = Instance.new("UICorner", Frame)
  15. local FrameUIStroke = Instance.new("UIStroke", Frame)
  16. local ResizeButton = Instance.new("TextButton", ScreenGui)
  17. local Resize_Button_UICorner = Instance.new("UICorner", ResizeButton)
  18. local Resize_Button_UIStroke = Instance.new("UIStroke", ResizeButton)
  19. local Container = Instance.new("ScrollingFrame", Frame)
  20. local ContainerUIGridLayout = Instance.new("UIGridLayout", Container)
  21. local ContainerUIPadding = Instance.new("UIPadding", Container)
  22. local PlayerPositionLabel = Instance.new("TextLabel", Frame)
  23. local PlayerPositionUICorner = Instance.new("UICorner", PlayerPositionLabel)
  24. local ItemAmountLabel = Instance.new("TextLabel", Frame)
  25. local ItemAmountLabelUICorner = Instance.new("UICorner", ItemAmountLabel)
  26. local TrashAmountLabel = Instance.new("TextLabel", Frame)
  27. local TrashAmountLabelUICorner = Instance.new("UICorner", TrashAmountLabel)
  28. local TitleLabel = Instance.new("TextLabel", Frame)
  29. local Janitor_Frame = Instance.new("Frame", Container)
  30. local Janitor_Frame_UICorner = Instance.new("UICorner", Janitor_Frame)
  31. local Janitor_Frame_UIStroke = Instance.new("UIStroke", Janitor_Frame)
  32. local Janitor_Frame_Toggle = Instance.new("Frame", Janitor_Frame)
  33. local Janitor_Frame_Toggle_UICorner = Instance.new("UICorner", Janitor_Frame_Toggle)
  34. local Janitor_Frame_Toggle_Button = Instance.new("TextButton", Janitor_Frame_Toggle)
  35. local Janitor_Frame_Toggle_Button_UICorner = Instance.new("UICorner", Janitor_Frame_Toggle_Button)
  36. local Janitor_Frame_Toggle_Button_UIStroke = Instance.new("UIStroke", Janitor_Frame_Toggle_Button)
  37. local Janitor_Frame_Title = Instance.new('TextLabel', Janitor_Frame)
  38. local Teleport_Player_Button = Instance.new("TextButton", Container)
  39. local Teleport_Player_Button_UICorner = Instance.new("UICorner", Teleport_Player_Button)
  40. local Teleport_Player_Button_UIStroke = Instance.new("UIStroke", Teleport_Player_Button)
  41. local Teleport_To_Item_Button = Instance.new("TextButton", Container)
  42. local Teleport_To_Item_Button_UICorner = Instance.new("UICorner", Teleport_To_Item_Button)
  43. local Teleport_To_Item_Button_UIStroke = Instance.new("UIStroke", Teleport_To_Item_Button)
  44. local Player_Speed_Frame = Instance.new("Frame", Container)
  45. local Player_Speed_Frame_UICorner = Instance.new("UICorner", Player_Speed_Frame)
  46. local Player_Speed_Frame_UIStroke = Instance.new("UIStroke", Player_Speed_Frame)
  47. local Player_Speed_Frame_TextBox = Instance.new("TextBox", Player_Speed_Frame)
  48. local Player_Speed_Frame_Label = Instance.new("TextLabel", Player_Speed_Frame)
  49. -----------------------
  50. local TeleportMenu = Instance.new("Frame", ScreenGui)
  51. local TeleportMenuUICorner = Instance.new("UICorner", TeleportMenu)
  52. local TeleportMenuUIStroke = Instance.new("UIStroke", TeleportMenu)
  53. local TeleportMenuButtons = Instance.new("Frame", TeleportMenu)
  54. local TeleportMenuButtonsUICorner = Instance.new("UICorner", TeleportMenuButtons)
  55. local TeleportMenuButtonsUIGridLayout = Instance.new("UIGridLayout", TeleportMenuButtons)
  56. local TeleportPlayerButton = Instance.new("TextButton", TeleportMenuButtons)
  57. local TeleportLocationButton = Instance.new("TextButton", TeleportMenuButtons)
  58. local TeleportMenuPlayersContainer = Instance.new("ScrollingFrame", TeleportMenu)
  59. local TeleportMenuPlayersContainerUIGridLayout = Instance.new("UIGridLayout", TeleportMenuPlayersContainer)
  60. local TeleportMenuPlayersContainerUIPadding = Instance.new("UIPadding", TeleportMenuPlayersContainer)
  61. local TeleportMenuPlayerTemplate = Instance.new("TextButton", TeleportMenuPlayersContainer)
  62. local TeleportMenuPlayerTemplateUICorner = Instance.new("UICorner", TeleportMenuPlayerTemplate)
  63. local TeleportMenuPlayerTemplateUIStroke = Instance.new("UIStroke", TeleportMenuPlayerTemplate)
  64. local TeleportMenuPlayerTemplateHeadshot = Instance.new("ImageLabel", TeleportMenuPlayerTemplate)
  65. local TeleportMenuPlayerTemplateHeadshotUICorner = Instance.new("UICorner", TeleportMenuPlayerTemplate)
  66. local TeleportMenuPlayerTemplatePlayerName = Instance.new("TextLabel", TeleportMenuPlayerTemplate)
  67. local TeleportMenuPlayerTemplatePlayerPosition = Instance.new("TextLabel", TeleportMenuPlayerTemplate)
  68. local TeleportMenuLocationsContainer = Instance.new("ScrollingFrame", TeleportMenu)
  69. local TeleportMenuLocationsContainerUIGridLayout = Instance.new("UIGridLayout", TeleportMenuLocationsContainer)
  70. local TeleportMenuLocationsContainerUIPadding = Instance.new("UIPadding", TeleportMenuLocationsContainer)
  71. local TeleportMenuLocationsTemplate = Instance.new("TextButton", TeleportMenuLocationsContainer)
  72. local TeleportMenuLocationsTemplateUICorner = Instance.new("UICorner", TeleportMenuLocationsTemplate)
  73. local TeleportMenuLocationsTemplateUIStroke = Instance.new("UIStroke", TeleportMenuLocationsTemplate)
  74. local TeleportMenuLocationsTemplateLocationName = Instance.new("TextLabel", TeleportMenuLocationsTemplate)
  75. local TeleportMenuLocationsTemplateLocationPosition = Instance.new("TextLabel", TeleportMenuLocationsTemplate)
  76. local TeleportMenuClose = Instance.new("TextButton", TeleportMenu)
  77. local TeleportMenuCloseUICorner = Instance.new("UICorner", TeleportMenuClose)
  78. local TeleportMenuTitle = Instance.new("TextLabel", TeleportMenu)
  79.  
  80. ScreenGui.Name = "Lacden Client"
  81. ScreenGui.IgnoreGuiInset = true
  82. ScreenGui.Enabled = true
  83. ScreenGui.ResetOnSpawn = false
  84. ScreenGui.DisplayOrder = 0
  85. ---------------
  86. Frame.Name = "Frame"
  87. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  88. Frame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  89. Frame.Position = UDim2.new(0.885, 0, 0.3, 0)
  90. Frame.Size = UDim2.new(0.15, 0, 0.4, 0)
  91. Frame.Visible = true
  92. ---------------
  93. FrameUICorner.Name = "UICorner"
  94. FrameUICorner.CornerRadius = UDim.new(0.03, 0)
  95. ---------------
  96. FrameUIStroke.Name = "UIStroke"
  97. FrameUIStroke.Color = Color3.fromRGB(255, 255, 255)
  98. FrameUIStroke.Thickness = 2
  99. FrameUIStroke.Enabled = true
  100. ---------------
  101. Container.Name = "Container"
  102. Container.AnchorPoint = Vector2.new(0.5, 0.5)
  103. Container.BackgroundTransparency = 1
  104. Container.Position = UDim2.new(0.5, 0, 0.4, 0)
  105. Container.Size = UDim2.new(0.95, 0, 0.5, 0)
  106. Container.CanvasSize = UDim2.new(0, 0, 2, 0)
  107. Container.ScrollBarImageColor3 = Color3.fromRGB(255, 255 ,255)
  108. Container.ScrollBarThickness = 6
  109. Container.VerticalScrollBarInset = Enum.ScrollBarInset.None
  110. Container.Visible = true
  111. --------------
  112. ContainerUIGridLayout.Name = "UIGridLayout"
  113. ContainerUIGridLayout.CellPadding = UDim2.new(0, 0, 0.01, 0)
  114. ContainerUIGridLayout.CellSize = UDim2.new(1, 0, 0.03, 0)
  115. ContainerUIGridLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  116. --------------
  117. ContainerUIPadding.Name = "UIPadding"
  118. ContainerUIPadding.PaddingLeft = UDim.new(0.01, 0)
  119. ContainerUIPadding.PaddingRight = UDim.new(0.075, 0)
  120. ContainerUIPadding.PaddingTop = UDim.new(0.01, 0)
  121. --------------
  122. Janitor_Frame.Name = "Janitor Work"
  123. Janitor_Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  124. Janitor_Frame.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  125. Janitor_Frame.LayoutOrder = 3
  126. Janitor_Frame.Visible = true
  127. -------------
  128. Janitor_Frame_UICorner.Name = "UICorner"
  129. Janitor_Frame_UICorner.CornerRadius = UDim.new(0.3, 0)
  130. -------------
  131. Janitor_Frame_UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  132. Janitor_Frame_UIStroke.Name = "UIStroke"
  133. Janitor_Frame_UIStroke.Color = Color3.fromRGB(255, 255, 255)
  134. Janitor_Frame_UIStroke.Thickness = 1
  135. Janitor_Frame_UIStroke.Enabled = true
  136. -------------
  137. Janitor_Frame_Toggle.Name = "Toggle"
  138. Janitor_Frame_Toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  139. Janitor_Frame_Toggle.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  140. Janitor_Frame_Toggle.Position = UDim2.new(0.75, 0, 0.5, 0)
  141. Janitor_Frame_Toggle.Size = UDim2.new(0.3, 0, 0.5, 0)
  142. Janitor_Frame_Toggle.Archivable = true
  143. Janitor_Frame_Toggle.Visible = true
  144. -------------
  145. Janitor_Frame_Toggle_UICorner.Name = "UICorner"
  146. Janitor_Frame_Toggle_UICorner.CornerRadius = UDim.new(1, 0)
  147. -------------
  148. Janitor_Frame_Toggle_Button.Name = "Button"
  149. Janitor_Frame_Toggle_Button.AnchorPoint = Vector2.new(0, 0.5)
  150. Janitor_Frame_Toggle_Button.BackgroundColor3 = Color3.fromRGB(58, 58, 58)
  151. Janitor_Frame_Toggle_Button.Position = UDim2.new(0, 0, 0.5, 0)
  152. Janitor_Frame_Toggle_Button.Size = UDim2.new(0.2, 0, 1, 0)
  153. Janitor_Frame_Toggle_Button.Text = ""
  154. -------------
  155. Janitor_Frame_Toggle_Button_UICorner.Name = "UICorner"
  156. Janitor_Frame_Toggle_Button_UICorner.CornerRadius = UDim.new(1, 0)
  157. -------------
  158. Janitor_Frame_Toggle_Button_UIStroke.Name = "UIStroke"
  159. Janitor_Frame_Toggle_Button_UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  160. Janitor_Frame_Toggle_Button_UIStroke.Color = Color3.fromRGB(0, 0, 0)
  161. Janitor_Frame_Toggle_Button_UIStroke.Thickness = 2
  162. -------------
  163. Janitor_Frame_Title.Name = "Title"
  164. Janitor_Frame_Title.AnchorPoint = Vector2.new(0.5, 0.5)
  165. Janitor_Frame_Title.BackgroundTransparency = 1
  166. Janitor_Frame_Title.Position = UDim2.new(0.31, 0, 0.5, 0)
  167. Janitor_Frame_Title.Size = UDim2.new(0.520, 0, 0.8, 0)
  168. Janitor_Frame_Title.Font = Enum.Font.GothamBold
  169. Janitor_Frame_Title.Text = "Janitor"
  170. Janitor_Frame_Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  171. Janitor_Frame_Title.TextScaled = true
  172. Janitor_Frame_Title.TextStrokeTransparency = 1
  173. -------------
  174. Teleport_Player_Button.Name = "Teleport"
  175. Teleport_Player_Button.AnchorPoint = Vector2.new(0.5, 0.5)
  176. Teleport_Player_Button.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  177. Teleport_Player_Button.Font = Enum.Font.GothamBold
  178. Teleport_Player_Button.Text = "Teleport Menu"
  179. Teleport_Player_Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  180. Teleport_Player_Button.TextScaled = true
  181. Teleport_Player_Button.TextStrokeTransparency = 0
  182. Teleport_Player_Button.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  183. Teleport_Player_Button.LayoutOrder = 1
  184. Teleport_Player_Button.Visible = true
  185. -------------
  186. Teleport_Player_Button_UICorner.Name = "UICorner"
  187. Teleport_Player_Button_UICorner.CornerRadius = UDim.new(0.3, 0)
  188. -------------
  189. Teleport_Player_Button_UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  190. Teleport_Player_Button_UIStroke.Name = "UIStroke"
  191. Teleport_Player_Button_UIStroke.Color = Color3.fromRGB(255, 255, 255)
  192. Teleport_Player_Button_UIStroke.Thickness = 1
  193. Teleport_Player_Button_UIStroke.Enabled = true
  194. -------------
  195. Teleport_To_Item_Button.Name = "TeleportToItems"
  196. Teleport_To_Item_Button.AnchorPoint = Vector2.new(0.5, 0.5)
  197. Teleport_To_Item_Button.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  198. Teleport_To_Item_Button.Font = Enum.Font.GothamBold
  199. Teleport_To_Item_Button.Text = "Teleport To Items"
  200. Teleport_To_Item_Button.TextColor3 = Color3.fromRGB(255, 255, 255)
  201. Teleport_To_Item_Button.TextScaled = true
  202. Teleport_To_Item_Button.TextStrokeTransparency = 0
  203. Teleport_To_Item_Button.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  204. Teleport_To_Item_Button.LayoutOrder = 2
  205. Teleport_To_Item_Button.Visible = true
  206. -------------
  207. Teleport_To_Item_Button_UICorner.Name = "UICorner"
  208. Teleport_To_Item_Button_UICorner.CornerRadius = UDim.new(0.3, 0)
  209. -------------
  210. Teleport_To_Item_Button_UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  211. Teleport_To_Item_Button_UIStroke.Name = "UIStroke"
  212. Teleport_To_Item_Button_UIStroke.Color = Color3.fromRGB(255, 255, 255)
  213. Teleport_To_Item_Button_UIStroke.Thickness = 1
  214. Teleport_To_Item_Button_UIStroke.Enabled = true
  215. -------------
  216. Player_Speed_Frame.Name = "Speed"
  217. Player_Speed_Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  218. Player_Speed_Frame.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  219. Player_Speed_Frame.LayoutOrder = 15
  220. Player_Speed_Frame.Visible = true
  221. -------------
  222. Player_Speed_Frame_UICorner.Name = "UICorner"
  223. Player_Speed_Frame_UICorner.CornerRadius = UDim.new(0.3, 0)
  224. -------------
  225. Player_Speed_Frame_UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  226. Player_Speed_Frame_UIStroke.Name = "UIStroke"
  227. Player_Speed_Frame_UIStroke.Color = Color3.fromRGB(255, 255, 255)
  228. Player_Speed_Frame_UIStroke.Thickness = 1
  229. Player_Speed_Frame_UIStroke.Enabled = true
  230. -------------
  231. Player_Speed_Frame_TextBox.Name = "TextBox"
  232. Player_Speed_Frame_TextBox.AnchorPoint = Vector2.new(0.5, 0.5)
  233. Player_Speed_Frame_TextBox.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  234. Player_Speed_Frame_TextBox.Position = UDim2.new(0.8, 0, 0.5, 0)
  235. Player_Speed_Frame_TextBox.Size = UDim2.new(0.3, 0, 0.8, 0)
  236. Player_Speed_Frame_TextBox.Font = Enum.Font.GothamBold
  237. Player_Speed_Frame_TextBox.TextScaled = true
  238. Player_Speed_Frame_TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  239. Player_Speed_Frame_TextBox.TextStrokeTransparency = 0
  240. -------------
  241. Player_Speed_Frame_Label.Name = "Speed"
  242. Player_Speed_Frame_Label.AnchorPoint = Vector2.new(0.5, 0.5)
  243. Player_Speed_Frame_Label.BackgroundTransparency = 1
  244. Player_Speed_Frame_Label.Position = UDim2.new(0.35, 0, 0.5, 0)
  245. Player_Speed_Frame_Label.Size = UDim2.new(0.6, 0, 0.8, 0)
  246. Player_Speed_Frame_Label.Font = Enum.Font.GothamBold
  247. Player_Speed_Frame_Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  248. Player_Speed_Frame_Label.Text = "Set Speed:"
  249. Player_Speed_Frame_Label.TextScaled = true
  250. Player_Speed_Frame_Label.TextStrokeTransparency = 0
  251. -------------
  252. ResizeButton.Name = "Resize"
  253. ResizeButton.AnchorPoint = Vector2.new(0.5, 0.5)
  254. ResizeButton.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  255. ResizeButton.Position = UDim2.new(0.885, 0, 0.05, 0)
  256. ResizeButton.Size = UDim2.new(0.15, 0, 0.05, 0)
  257. ResizeButton.Font = Enum.Font.GothamBold
  258. ResizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  259. ResizeButton.TextScaled = true
  260. ResizeButton.Text = "Retract"
  261. ResizeButton.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  262. ResizeButton.TextStrokeTransparency = 0
  263. ResizeButton.Visible = true
  264. -------------
  265. Resize_Button_UICorner.CornerRadius = UDim.new(0.03, 0)
  266. -------------
  267. Resize_Button_UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  268. Resize_Button_UIStroke.Color = Color3.fromRGB(255, 255, 255)
  269. Resize_Button_UIStroke.Thickness = 2
  270. -------------
  271. TitleLabel.Name = "Title"
  272. TitleLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  273. TitleLabel.BackgroundTransparency = 1
  274. TitleLabel.Position = UDim2.new(0.5, 0, 0.075, 0)
  275. TitleLabel.Size = UDim2.new(0.9, 0, 0.1, 0)
  276. TitleLabel.Font = Enum.Font.GothamBold
  277. TitleLabel.Text = "Lacden Client"
  278. TitleLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  279. TitleLabel.TextScaled = true
  280. TitleLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  281. TitleLabel.TextStrokeTransparency = 0
  282.  
  283.  
  284. --------------------
  285.  
  286.  
  287. TeleportMenu.Name = "TeleportMenu"
  288. TeleportMenu.AnchorPoint = Vector2.new(0.5, 0.5)
  289. TeleportMenu.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
  290. TeleportMenu.Position = UDim2.new(0.5, 0, 0.5, 0)
  291. TeleportMenu.Size = UDim2.new(0.4, 0, 0.5, 0)
  292. TeleportMenu.Visible = false
  293. --------------
  294. TeleportMenuUICorner.Name = "UICorner"
  295. TeleportMenuUICorner.CornerRadius = UDim.new(0.03, 0)
  296. ---------------
  297. TeleportMenuUIStroke.Name = "UIStroke"
  298. TeleportMenuUIStroke.Color = Color3.fromRGB(255, 255, 255)
  299. TeleportMenuUIStroke.Thickness = 2
  300. TeleportMenuUIStroke.Enabled = true
  301. -------------
  302. TeleportMenuButtons.Name = "Buttons"
  303. TeleportMenuButtons.AnchorPoint = Vector2.new(0.5, 0.5)
  304. TeleportMenuButtons.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  305. TeleportMenuButtons.Position = UDim2.new(0.5, 0, 0.25, 0)
  306. TeleportMenuButtons.Size = UDim2.new(0.9, 0, 0.125, 0)
  307. TeleportMenuButtons.Visible = true
  308. ---------------------
  309. TeleportMenuButtonsUICorner.Name = "UICorner"
  310. TeleportMenuButtonsUICorner.CornerRadius = UDim.new(0.2, 0)
  311. ---------------------
  312. TeleportMenuButtonsUIGridLayout.Name = "UIGridLayout"
  313. TeleportMenuButtonsUIGridLayout.CellPadding = UDim2.new(0.03, 0, 0, 0)
  314. TeleportMenuButtonsUIGridLayout.CellSize = UDim2.new(0.3, 0, 0.8, 0)
  315. TeleportMenuButtonsUIGridLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  316. TeleportMenuButtonsUIGridLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  317. ---------------------
  318. TeleportPlayerButton.Name = "Player"
  319. TeleportPlayerButton.AnchorPoint = Vector2.new(0.5, 0.5)
  320. TeleportPlayerButton.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  321. TeleportPlayerButton.Font = Enum.Font.GothamBold
  322. TeleportPlayerButton.Text = "Players"
  323. TeleportPlayerButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  324. TeleportPlayerButton.TextScaled = true
  325. TeleportPlayerButton.TextStrokeTransparency = 1
  326. TeleportPlayerButton.Visible = true
  327. ---------------------
  328. TeleportLocationButton.Name = "Location"
  329. TeleportLocationButton.AnchorPoint = Vector2.new(0.5, 0.5)
  330. TeleportLocationButton.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  331. TeleportLocationButton.Font = Enum.Font.GothamBold
  332. TeleportLocationButton.Text = "Locations"
  333. TeleportLocationButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  334. TeleportLocationButton.TextScaled = true
  335. TeleportLocationButton.TextStrokeTransparency = 1
  336. TeleportLocationButton.Visible = true
  337. ---------------------
  338. TeleportMenuPlayersContainer.Name = "PlayersContainer"
  339. TeleportMenuPlayersContainer.AnchorPoint = Vector2.new(0.5, 0.5)
  340. TeleportMenuPlayersContainer.BackgroundTransparency = 1
  341. TeleportMenuPlayersContainer.Position = UDim2.new(0.5, 0, 0.65, 0)
  342. TeleportMenuPlayersContainer.Size = UDim2.new(0.9, 0, 0.6, 0)
  343. TeleportMenuPlayersContainer.CanvasSize = UDim2.new(0, 0, 10, 0)
  344. TeleportMenuPlayersContainer.ScrollBarThickness = 6
  345. TeleportMenuPlayersContainer.ScrollBarImageColor3 = Color3.fromRGB(255, 255, 255)
  346. TeleportMenuPlayersContainer.Visible = false
  347. --------------------
  348. TeleportMenuPlayersContainerUIPadding.Name = "UIPadding"
  349. TeleportMenuPlayersContainerUIPadding.PaddingLeft = UDim.new(0.01, 0)
  350. TeleportMenuPlayersContainerUIPadding.PaddingRight = UDim.new(0.03, 0)
  351. TeleportMenuPlayersContainerUIPadding.PaddingTop = UDim.new(0.001, 0)
  352. -------------------
  353. TeleportMenuPlayersContainerUIGridLayout.Name = "UIGridLayout"
  354. TeleportMenuPlayersContainerUIGridLayout.CellPadding = UDim2.new(1, 0, 0.004, 0)
  355. TeleportMenuPlayersContainerUIGridLayout.CellSize = UDim2.new(1, 0, 0.014, 0)
  356. -------------------
  357. TeleportMenuPlayerTemplate.Name = "Template"
  358. TeleportMenuPlayerTemplate.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  359. TeleportMenuPlayerTemplate.Text = ""
  360. TeleportMenuPlayerTemplate.Visible = false
  361. TeleportMenuPlayerTemplate.Archivable = true
  362. -------------------
  363. TeleportMenuPlayerTemplateUICorner.Name = "UICorner"
  364. TeleportMenuPlayerTemplateUICorner.CornerRadius = UDim.new(0.2, 0)
  365. -------------------
  366. TeleportMenuPlayerTemplateUIStroke.Name = "UIStroke"
  367. TeleportMenuPlayerTemplateUIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  368. TeleportMenuPlayerTemplateUIStroke.Color = Color3.fromRGB(63, 63, 63)
  369. TeleportMenuPlayerTemplateUIStroke.Thickness = 3
  370. -------------------
  371. TeleportMenuPlayerTemplateHeadshot.Name = "Headshot"
  372. TeleportMenuPlayerTemplateHeadshot.AnchorPoint = Vector2.new(0.5, 0.5)
  373. TeleportMenuPlayerTemplateHeadshot.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  374. TeleportMenuPlayerTemplateHeadshot.Position = UDim2.new(0.075, 0, 0.5, 0)
  375. TeleportMenuPlayerTemplateHeadshot.Size = UDim2.new(0.09, 0, 0.8, 0)
  376. TeleportMenuPlayerTemplateHeadshot.Visible = true
  377. TeleportMenuPlayerTemplateHeadshot.Archivable = true
  378. -------------------
  379. TeleportMenuPlayerTemplateHeadshotUICorner.Name = "UICorner"
  380. TeleportMenuPlayerTemplateHeadshotUICorner.CornerRadius = UDim.new(0.2, 0)
  381. -------------------
  382. TeleportMenuPlayerTemplatePlayerName.Name = "PlayerName"
  383. TeleportMenuPlayerTemplatePlayerName.AnchorPoint = Vector2.new(0.5, 0.5)
  384. TeleportMenuPlayerTemplatePlayerName.BackgroundTransparency = 1
  385. TeleportMenuPlayerTemplatePlayerName.Position = UDim2.new(0.3, 0, 0.5, 0)
  386. TeleportMenuPlayerTemplatePlayerName.Size = UDim2.new(0.3, 0, 0.6, 0)
  387. TeleportMenuPlayerTemplatePlayerName.Font = Enum.Font.GothamBold
  388. TeleportMenuPlayerTemplatePlayerName.TextColor3 = Color3.fromRGB(255, 255, 255)
  389. TeleportMenuPlayerTemplatePlayerName.TextScaled = true
  390. TeleportMenuPlayerTemplatePlayerName.TextStrokeTransparency = 0
  391. TeleportMenuPlayerTemplatePlayerName.Visible = true
  392. TeleportMenuPlayerTemplatePlayerName.Archivable = true
  393. -------------------
  394. TeleportMenuPlayerTemplatePlayerPosition.Name = "PlayerPosition"
  395. TeleportMenuPlayerTemplatePlayerPosition.AnchorPoint = Vector2.new(0.5, 0.5)
  396. TeleportMenuPlayerTemplatePlayerPosition.BackgroundTransparency = 1
  397. TeleportMenuPlayerTemplatePlayerPosition.Position = UDim2.new(0.75, 0, 0.5, 0)
  398. TeleportMenuPlayerTemplatePlayerPosition.Size = UDim2.new(0.45, 0, 0.6, 0)
  399. TeleportMenuPlayerTemplatePlayerPosition.Font = Enum.Font.GothamBold
  400. TeleportMenuPlayerTemplatePlayerPosition.TextColor3 = Color3.fromRGB(255, 255, 255)
  401. TeleportMenuPlayerTemplatePlayerPosition.TextScaled = true
  402. TeleportMenuPlayerTemplatePlayerPosition.TextStrokeTransparency = 0
  403. TeleportMenuPlayerTemplatePlayerPosition.Visible = true
  404. TeleportMenuPlayerTemplatePlayerPosition.Archivable = true
  405. -------------------
  406. TeleportMenuLocationsContainer.Name = "LocationsContainer"
  407. TeleportMenuLocationsContainer.AnchorPoint = Vector2.new(0.5, 0.5)
  408. TeleportMenuLocationsContainer.BackgroundTransparency = 1
  409. TeleportMenuLocationsContainer.Position = UDim2.new(0.5, 0, 0.65, 0)
  410. TeleportMenuLocationsContainer.Size = UDim2.new(0.9, 0, 0.6, 0)
  411. TeleportMenuLocationsContainer.CanvasSize = UDim2.new(0, 0, 10, 0)
  412. TeleportMenuLocationsContainer.ScrollBarThickness = 6
  413. TeleportMenuLocationsContainer.ScrollBarImageColor3 = Color3.fromRGB(255, 255, 255)
  414. TeleportMenuLocationsContainer.Archivable = true
  415. TeleportMenuLocationsContainer.Visible = false
  416. --------------------
  417. TeleportMenuLocationsContainerUIPadding.Name = "UIPadding"
  418. TeleportMenuLocationsContainerUIPadding.PaddingLeft = UDim.new(0.01, 0)
  419. TeleportMenuLocationsContainerUIPadding.PaddingRight = UDim.new(0.03, 0)
  420. TeleportMenuLocationsContainerUIPadding.PaddingTop = UDim.new(0.001, 0)
  421. -------------------
  422. TeleportMenuLocationsContainerUIGridLayout.Name = "UIGridLayout"
  423. TeleportMenuLocationsContainerUIGridLayout.CellPadding = UDim2.new(1, 0, 0.004, 0)
  424. TeleportMenuLocationsContainerUIGridLayout.CellSize = UDim2.new(1, 0, 0.014, 0)
  425. -------------------
  426. TeleportMenuLocationsTemplate.Name = "Template"
  427. TeleportMenuLocationsTemplate.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  428. TeleportMenuLocationsTemplate.Text = ""
  429. TeleportMenuLocationsTemplate.Visible = false
  430. TeleportMenuLocationsTemplate.Archivable = true
  431. -------------------
  432. TeleportMenuLocationsTemplateUICorner.Name = "UICorner"
  433. TeleportMenuLocationsTemplateUICorner.CornerRadius = UDim.new(0.2, 0)
  434. -------------------
  435. TeleportMenuLocationsTemplateUIStroke.Name = "UIStroke"
  436. TeleportMenuLocationsTemplateUIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  437. TeleportMenuLocationsTemplateUIStroke.Color = Color3.fromRGB(63, 63, 63)
  438. TeleportMenuLocationsTemplateUIStroke.Thickness = 3
  439. -------------------
  440. TeleportMenuLocationsTemplateLocationName.Name = "LocationName"
  441. TeleportMenuLocationsTemplateLocationName.AnchorPoint = Vector2.new(0.5, 0.5)
  442. TeleportMenuLocationsTemplateLocationName.BackgroundTransparency = 1
  443. TeleportMenuLocationsTemplateLocationName.Position = UDim2.new(0.3, 0, 0.5, 0)
  444. TeleportMenuLocationsTemplateLocationName.Size = UDim2.new(0.3, 0, 0.6, 0)
  445. TeleportMenuLocationsTemplateLocationName.Font = Enum.Font.GothamBold
  446. TeleportMenuLocationsTemplateLocationName.TextColor3 = Color3.fromRGB(255, 255, 255)
  447. TeleportMenuLocationsTemplateLocationName.TextScaled = true
  448. TeleportMenuLocationsTemplateLocationName.TextStrokeTransparency = 0
  449. TeleportMenuLocationsTemplateLocationName.Visible = true
  450. TeleportMenuLocationsTemplateLocationName.Archivable = true
  451. -------------------
  452. TeleportMenuLocationsTemplateLocationPosition.Name = "LocationPosition"
  453. TeleportMenuLocationsTemplateLocationPosition.AnchorPoint = Vector2.new(0.5, 0.5)
  454. TeleportMenuLocationsTemplateLocationPosition.BackgroundTransparency = 1
  455. TeleportMenuLocationsTemplateLocationPosition.Position = UDim2.new(0.75, 0, 0.5, 0)
  456. TeleportMenuLocationsTemplateLocationPosition.Size = UDim2.new(0.45, 0, 0.6, 0)
  457. TeleportMenuLocationsTemplateLocationPosition.Font = Enum.Font.GothamBold
  458. TeleportMenuLocationsTemplateLocationPosition.TextColor3 = Color3.fromRGB(255, 255, 255)
  459. TeleportMenuLocationsTemplateLocationPosition.TextScaled = true
  460. TeleportMenuLocationsTemplateLocationPosition.TextStrokeTransparency = 0
  461. TeleportMenuLocationsTemplateLocationPosition.Visible = true
  462. TeleportMenuLocationsTemplateLocationPosition.Archivable = true
  463. -------------------
  464. TeleportMenuClose.Name = "Close"
  465. TeleportMenuClose.AnchorPoint = Vector2.new(0.5, 0.5)
  466. TeleportMenuClose.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
  467. TeleportMenuClose.Position = UDim2.new(0.95, 0, 0.08, 0)
  468. TeleportMenuClose.Size = UDim2.new(0.07, 0, 0.1, 0)
  469. TeleportMenuClose.Font = Enum.Font.GothamBold
  470. TeleportMenuClose.Text = "X"
  471. TeleportMenuClose.TextColor3 = Color3.fromRGB(255, 255, 255)
  472. TeleportMenuClose.TextScaled = true
  473. TeleportMenuClose.TextStrokeTransparency = 1
  474. TeleportMenuClose.Visible = true
  475. --------------------
  476. TeleportMenuCloseUICorner.Name = "UICorner"
  477. TeleportMenuCloseUICorner.CornerRadius = UDim.new(0.2, 0)
  478. --------------------
  479. PlayerPositionLabel.Name = "PlayerPosition"
  480. PlayerPositionLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  481. PlayerPositionLabel.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  482. PlayerPositionLabel.Position = UDim2.new(0.5, 0, 0.95, 0)
  483. PlayerPositionLabel.Size = UDim2.new(0.9, 0, 0.08, 0)
  484. PlayerPositionLabel.Font = Enum.Font.GothamBold
  485. PlayerPositionLabel.Text = ""
  486. PlayerPositionLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  487. PlayerPositionLabel.TextScaled = true
  488. PlayerPositionLabel.TextStrokeTransparency = 0
  489. PlayerPositionLabel.Archivable = true
  490. PlayerPositionLabel.Visible = true
  491. ---------------------
  492. PlayerPositionUICorner.Name = "UICorner"
  493. PlayerPositionUICorner.CornerRadius = UDim.new(0.2, 0)
  494. --------------------
  495. ItemAmountLabel.Name = "AmountOfItems"
  496. ItemAmountLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  497. ItemAmountLabel.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  498. ItemAmountLabel.Position = UDim2.new(0.5, 0, 0.85, 0)
  499. ItemAmountLabel.Size = UDim2.new(0.9, 0, 0.08, 0)
  500. ItemAmountLabel.Font = Enum.Font.GothamBold
  501. ItemAmountLabel.Text = `Items: 0`
  502. ItemAmountLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  503. ItemAmountLabel.TextScaled = true
  504. ItemAmountLabel.TextStrokeTransparency = 0
  505. ItemAmountLabel.Archivable = true
  506. ItemAmountLabel.Visible = true
  507. ---------------------
  508. ItemAmountLabelUICorner.Name = "UICorner"
  509. ItemAmountLabelUICorner.CornerRadius = UDim.new(0.2, 0)
  510. --------------------
  511. TrashAmountLabel.Name = "AmountOfTrashes"
  512. TrashAmountLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  513. TrashAmountLabel.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  514. TrashAmountLabel.Position = UDim2.new(0.5, 0, 0.75, 0)
  515. TrashAmountLabel.Size = UDim2.new(0.9, 0, 0.08, 0)
  516. TrashAmountLabel.Font = Enum.Font.GothamBold
  517. TrashAmountLabel.Text = `Trashes: 0`
  518. TrashAmountLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  519. TrashAmountLabel.TextScaled = true
  520. TrashAmountLabel.TextStrokeTransparency = 0
  521. TrashAmountLabel.Archivable = true
  522. TrashAmountLabel.Visible = true
  523. ---------------------
  524. TrashAmountLabelUICorner.Name = "UICorner"
  525. TrashAmountLabelUICorner.CornerRadius = UDim.new(0.2, 0)
  526. ---------------------
  527. TeleportMenuTitle.Name = "Title"
  528. TeleportMenuTitle.AnchorPoint = Vector2.new(0.5, 0.5)
  529. TeleportMenuTitle.BackgroundTransparency = 1
  530. TeleportMenuTitle.Position = UDim2.new(0.5, 0, 0.075, 0)
  531. TeleportMenuTitle.Size = UDim2.new(0.8, 0, 0.1, 0)
  532. TeleportMenuTitle.Font = Enum.Font.GothamBold
  533. TeleportMenuTitle.Text = "Teleport Menu"
  534. TeleportMenuTitle.TextColor3 = Color3.fromRGB(0, 0, 0)
  535. TeleportMenuTitle.TextScaled = true
  536. TeleportMenuTitle.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  537. TeleportMenuTitle.TextStrokeTransparency = 0
  538. TeleportMenuTitle.Visible = true
  539. ------------------
  540.  
  541. local ItemHighlight = Instance.new("Highlight")
  542.  
  543. ------------------
  544. ItemHighlight.Name = "Highlight"
  545. ItemHighlight.Archivable = true
  546. ItemHighlight.Enabled = true
  547. ItemHighlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  548. ItemHighlight.FillColor = Color3.fromRGB(255, 255, 0)
  549. ItemHighlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  550.  
  551.  
  552. local FrameMode = "Retract"
  553. local LoopPlayerContainer = true
  554. local SpawnLocation = CFrame.new(255, 75, -423)
  555. local AutoFind = true
  556. local AutoJanitor = false
  557.  
  558. local function TweenFrameSize()
  559.     local NewSize = if FrameMode == "Retract" then UDim2.new(0.15, 0, 0, 0) else UDim2.new(0.15, 0, 0.4, 0)
  560.     local NewPosition = if FrameMode == "Retract" then UDim2.new(0.886, 0, 0.125, 0) else UDim2.new(0.885, 0, 0.3, 0)
  561.     if FrameMode == "Retract" then FrameMode = "Expand" else FrameMode = "Retract" end
  562.     ResizeButton.Text = FrameMode
  563.  
  564.     local tween = TweenService:Create(Frame, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {Size = NewSize, Position = NewPosition})
  565.     tween:Play()
  566. end
  567.  
  568. local function ToggleSwitch(Frame: Frame, Mode: boolean)
  569.     local NewPosition = Mode and UDim2.new(0.875, 0, 0.5, 0) or UDim2.new(0, 0, 0.5, 0)
  570.     local Color = Mode and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 0)
  571.  
  572.     Frame.BackgroundColor3 = Color
  573.  
  574.     local tween = TweenService:Create(Frame.Button, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {Position = NewPosition})
  575.     tween:Play()
  576.    
  577.     return not Mode
  578. end
  579.  
  580.  
  581. local function GetItems()
  582.     local ItemsName = {
  583.         "Cadeau des 1 an blanc",
  584.         "Cadeau des 1 an rose",
  585.         "Cadeau des 1 an jaune",
  586.         "Part de gateau des 1 an",
  587.         "Cadeau des 1 an vert",
  588.         "Cadeau des 1 an bleu",
  589.         "Cahier des 1 an",
  590.         "Stylo des 1 an",
  591.     }
  592.  
  593.     local Items = {}
  594.  
  595.     for _, desc in Workspace:FindFirstChild("Oxi'sInteractable"):FindFirstChild("EventSpawners"):GetDescendants() do
  596.         if not table.find(ItemsName, desc.Name) then continue end
  597.         table.insert(Items, desc.Parent)
  598.     end
  599.    
  600.     return Items
  601. end
  602.  
  603.  
  604. local function GetTrashes(mode)
  605.  
  606.     local Trashes = {}
  607.  
  608.     for _, desc in Workspace:FindFirstChild("Oxi'sInteractable"):FindFirstChild("Trash"):FindFirstChild(mode):GetDescendants() do
  609.         if desc.Name ~= "Trash" then continue end
  610.         if not desc.Showed.Value then continue end
  611.        
  612.         table.insert(Trashes, desc)
  613.        
  614.     end
  615.  
  616.     return Trashes
  617. end
  618.  
  619. local function fireproximityprompt(ProximityPrompt: ProximityPrompt, Amount: Integer, Skip: Boolean)
  620.     assert(ProximityPrompt, "Argument #1 Missing or nil")
  621.     assert(typeof(ProximityPrompt) == "Instance" and ProximityPrompt:IsA("ProximityPrompt"), "Attempted to fire a Value that is not a ProximityPrompt")
  622.  
  623.     local HoldDuration = ProximityPrompt.HoldDuration
  624.     if Skip then
  625.         ProximityPrompt.HoldDuration = 0
  626.     end
  627.  
  628.     for i = 1, Amount or 1 do
  629.         ProximityPrompt:InputHoldBegin()
  630.         if Skip then
  631.             local RunService = game:GetService("RunService")
  632.             local Start = time()
  633.             repeat
  634.                 RunService.Heartbeat:Wait(0.1)
  635.             until time() - Start > HoldDuration
  636.         end
  637.         ProximityPrompt:InputHoldEnd()
  638.     end
  639.     ProximityPrompt.HoldDuration = HoldDuration
  640. end
  641.  
  642.  
  643. local function JanitorTeleport(Frame, Mode)
  644.     local retrunedValue = ToggleSwitch(Frame, Mode)
  645.     AutoJanitor = retrunedValue
  646.  
  647.     while AutoJanitor do
  648.         local Trashes = GetTrashes("FloorPuddle")
  649.         if not Trashes then return end
  650.  
  651.         for _, Trash in Trashes do
  652.  
  653.             if not AutoJanitor then continue end
  654.  
  655.             local Character = LocalPlayer.Character
  656.             if not Character then continue end
  657.  
  658.             local ProximityPrompt = Trash:FindFirstChildOfClass("ProximityPrompt")
  659.             if not ProximityPrompt then continue end
  660.  
  661.             local targetCFrame = Trash.CFrame
  662.             if not targetCFrame then continue end
  663.  
  664.             Character:PivotTo(targetCFrame + Vector3.new(0, 3, 0))
  665.             fireproximityprompt(ProximityPrompt, 0, true)
  666.  
  667.             task.wait(1.25)
  668.  
  669.             Character:PivotTo(SpawnLocation + Vector3.new(0, 200, 0))
  670.  
  671.             task.wait(0.3)
  672.  
  673.         end
  674.         task.wait(1)
  675.     end
  676. end
  677.  
  678. local function TeleportPlayerToItems()
  679.     local Items = GetItems()   
  680.     if not Items then return end
  681.  
  682.     for _, item in Items do
  683.        
  684.         local Character = LocalPlayer.Character
  685.         if not Character then continue end
  686.        
  687.         local targetCFrame = nil
  688.         local proximityPrompt = nil
  689.        
  690.         for _, desc in item:GetDescendants() do
  691.             if desc.Name == "ProximityPrompt" then
  692.                 proximityPrompt = desc
  693.                 continue
  694.             end
  695.             if desc.Name == "Spawner" then
  696.                 targetCFrame = desc
  697.                 continue
  698.             end
  699.         end
  700.        
  701.         if not proximityPrompt then continue end
  702.         if not targetCFrame then continue end
  703.        
  704.         Character:PivotTo(targetCFrame.CFrame + Vector3.new(0, 3, 0))
  705.         fireproximityprompt(proximityPrompt, 0, true)
  706.  
  707.         print(`Teleported to {item.Parent.Name}`)
  708.        
  709.         task.wait(0.3)
  710.        
  711.         Character:PivotTo(SpawnLocation + Vector3.new(0, 200, 0))
  712.        
  713.         task.wait(0.2)
  714.        
  715.     end
  716.    
  717.     local Character = LocalPlayer.Character
  718.     if not Character then return end
  719.    
  720.     Character:PivotTo(SpawnLocation)
  721. end
  722.  
  723. local function HighlightAllItems()
  724.     local Items = GetItems()
  725.     if not Items then return end
  726.  
  727.     for _, item in Items do
  728.  
  729.         if item.Parent:FindFirstChild("Highlight") then continue end
  730.  
  731.         local HighlightClone = ItemHighlight:Clone()
  732.         local HighlightClone2 = ItemHighlight:Clone()
  733.        
  734.         HighlightClone.Parent = item.Parent
  735.         HighlightClone.Adornee = item
  736.         HighlightClone2.Parent = item.Parent
  737.         HighlightClone2.Adornee = item
  738.     end
  739.    
  740.     return #Items
  741. end
  742.  
  743. local function SetPlayerSpeed(amount: number)
  744.     if type(tonumber(amount)) ~= "number" then return end
  745.     if tonumber(amount) > 32 then amount = 32 Player_Speed_Frame_TextBox.Text = 32 end
  746.    
  747.     local Character = LocalPlayer.Character
  748.     if not Character then return end
  749.    
  750.     local Humanoid = Character:FindFirstChild("Humanoid")
  751.     if not Humanoid then return end
  752.    
  753.     Humanoid.WalkSpeed = amount
  754.    
  755. end
  756.  
  757. local function OpenTeleportMenu()
  758.     TeleportMenu.Visible = true
  759.     TeleportMenuPlayersContainer.Visible = false
  760.     LoopPlayerContainer = true
  761. end
  762.  
  763. local function CloseTeleportMenu()
  764.     TeleportMenu.Visible = false
  765.     LoopPlayerContainer = false
  766. end
  767.  
  768. local function GeneratePlayers()
  769.  
  770.     local PLACEHOLDER_IMAGE = "rbxassetid://0"
  771.  
  772.     for _, template in TeleportMenuPlayersContainer:GetChildren() do
  773.         if template.Name == "Template" or not template:IsA("TextButton") then continue end
  774.         template:Destroy()
  775.     end
  776.  
  777.     for _, player: Player in Players:GetChildren() do
  778.         local userId = player.UserId
  779.         local thumbType = Enum.ThumbnailType.HeadShot
  780.         local thumbSize = Enum.ThumbnailSize.Size420x420
  781.         local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
  782.  
  783.         local Character = player.Character
  784.         if not Character then continue end
  785.  
  786.         local template = TeleportMenuPlayerTemplate:Clone()
  787.         template.Name = player.Name
  788.         template.Headshot.Image = content or PLACEHOLDER_IMAGE
  789.         template.PlayerName.Text = player.Name
  790.         template.PlayerPosition.Text = `{Character.PrimaryPart.Position.X}, {Character.PrimaryPart.Position.Y}, {Character.PrimaryPart.Position.Z}`
  791.         template.Parent = TeleportMenuPlayersContainer
  792.         template.Visible = Character.PrimaryPart.Position.X ~= 0
  793.        
  794.         template.Activated:Connect(function ()
  795.             task.delay(0.5, function ()
  796.                 local Character = LocalPlayer.Character
  797.                 if not Character then return end
  798.                
  799.                 local targetCharacter = player.Character
  800.                 if not targetCharacter then return end
  801.                
  802.                 local targetCharacterCFrame = targetCharacter.PrimaryPart.CFrame
  803.                 if not targetCharacterCFrame then return end
  804.                
  805.                 Character:PivotTo(targetCharacterCFrame + Vector3.new(0, 2, 0))
  806.             end)
  807.         end)
  808.     end
  809. end
  810.  
  811. local function GenerateLocations()
  812.     for _, location: SpawnLocation in workspace:FindFirstChild("Oxi'sInteractable"):FindFirstChild("Spawns"):GetChildren() do
  813.         print(location)
  814.         local template = TeleportMenuLocationsTemplate:Clone()
  815.         template.Name = location.Name
  816.         template.LocationName.Text = location.Name
  817.         template.LocationPosition.Text = `{location.Position.X}, {location.Position.Y}, {location.Position.Z}`
  818.         template.Visible = true
  819.         template.Parent = TeleportMenuLocationsContainer
  820.  
  821.         template.Activated:Connect(function ()
  822.             task.delay(0.5, function ()
  823.                 local Character = LocalPlayer.Character
  824.                 if not Character then return end
  825.  
  826.                 local targetCFrame = location.CFrame
  827.                 if not targetCFrame then return end
  828.  
  829.                 Character:PivotTo(targetCFrame + Vector3.new(0, 2, 0))
  830.             end)
  831.         end)
  832.     end
  833. end
  834.  
  835. local function EnabledPlayerTeleportContainer()
  836.  
  837.     TeleportMenuPlayersContainer.Visible = true
  838.     TeleportMenuLocationsContainer.Visible = false
  839.    
  840.     task.spawn(function ()
  841.         while LoopPlayerContainer do
  842.             GeneratePlayers()
  843.             task.wait(15)
  844.         end
  845.     end)
  846.  
  847. end
  848.  
  849. local function EnabledLocationsTeleportContainer()
  850.     TeleportMenuLocationsContainer.Visible = true
  851.     TeleportMenuPlayersContainer.Visible = false
  852. end
  853.  
  854. Player_Speed_Frame_TextBox:GetPropertyChangedSignal("Text"):Connect(function ()
  855.     SetPlayerSpeed(Player_Speed_Frame_TextBox.Text)
  856. end)
  857.  
  858. RunService.Heartbeat:Connect(function ()
  859.    
  860.     local Character = LocalPlayer.Character
  861.     if not Character then return end
  862.    
  863.     local HumanoidRootPart = Character:FindFirstChild('HumanoidRootPart')
  864.     if not HumanoidRootPart then return end
  865.    
  866.     PlayerPositionLabel.Text = `{math.round(HumanoidRootPart.Position.X)}, {math.round(HumanoidRootPart.Position.Y)}, {math.round(HumanoidRootPart.Position.Z)}`
  867.     TrashAmountLabel.Text = `Trashes: {#GetTrashes("FloorPuddle")}`
  868.    
  869.     if AutoFind then
  870.         local amount = HighlightAllItems()
  871.         ItemAmountLabel.Text = `Items: {amount}`
  872.     end
  873.    
  874. end)
  875.  
  876. ResizeButton.Activated:Connect(TweenFrameSize)
  877. Janitor_Frame_Toggle_Button.Activated:Connect(function ()
  878.     JanitorTeleport(Janitor_Frame_Toggle, AutoJanitor)
  879. end)
  880. TeleportMenuClose.Activated:Connect(CloseTeleportMenu)
  881. TeleportPlayerButton.Activated:Connect(EnabledPlayerTeleportContainer)
  882. TeleportLocationButton.Activated:Connect(EnabledLocationsTeleportContainer)
  883. Teleport_Player_Button.Activated:Connect(OpenTeleportMenu)
  884. Teleport_To_Item_Button.Activated:Connect(TeleportPlayerToItems)
  885.  
  886. GenerateLocations()
  887.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement