Advertisement
p_z

Mouse Opts v2.41

p_z
Mar 11th, 2021 (edited)
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 42.30 KB | None | 0 0
  1. local debugmode = false
  2. --[[
  3.     INSTRUCTIONS:
  4.         Click the "Disabled" button, it should turn green and state "Enabled", if it does not do this then check the console(F9, or say '/console' in chat)
  5.         Actions only work if the main GUI frame is minimised & the button states "Enabled"(unchangable)
  6.         The On-Click/Key buttons toggle the mode of which to TP/DEL(1/2)/ANK on click or on key press(the key being the Toggle [mode] Hotkey string
  7.         To toggle the mode/change it, click on the orange texted button saying 'Toggle '(your current mode)'Hotkey';
  8.     ERRORS:
  9.         MOUSE INVISIBLE: Right click the toggle custom mouse decal id button, yet to be expanded on so it may error for now
  10.     WARNINGS:
  11.         MULTIPLE GUIs: When you are re-executing the GUI make sure you click the 'X' button for a proper shut down, deleting the ScreenGui or;
  12.         -core parents will not work alone, having mulitple keybinds you cannot alter and cannot stop from running is unchangable with no gui.
  13.         MULTIPLE SCRIPTS // LAG: Adding scripts or other GUIs in some instances, depending on how large they are, may cause great lag. Try;
  14.         execute this particular script after(or last) large(r) scripts and it should reduce any possible lag being generated.
  15.         Designed w/ 1920 x 1080(native) screen res, if you use a smaller screen res size the GUI objects may become distorted; change positions to your liking: Line-499
  16.     BUILT-IN HOTKEYS:
  17.         Press 'Insert' to toggle the side menus
  18.     DEFAULT OR CHANGABLE HOTKEYS:
  19.         Press Q to toggle the Main frame and the help frame's visibility
  20.         Press E to toggle the action's on/off property, always on if using 'On-Key'
  21.     MOUSE ICONS:
  22.         The provided first 3(as of 11/03/2021) do not work, the other decals are default Roblox images
  23.         To enable custom decals click the (originally) red button to green(adding changable ids later)
  24.     CREDITS:
  25.         Created, designed & scripted by: Scripteria(@684113538) with use of ROBLOX decals & other public decals available via the catalog
  26.         In Affiliation with: === {{ F.O.E }} ===
  27. --]]
  28. local isHSe = false
  29. local m1_MOUSE_TP_DECALID = "http://www.roblox.com/asset/?id=4834472848"
  30. local m2_MOUSE_DEL1_DECALID = "http://www.roblox.com/asset/?id=6503608654"
  31. local m3_MOUSE_DEL2_DECALID = "http://www.roblox.com/asset/?id=6503590581"
  32. local m4_MOUSE_ANCHOR_DECALID = "rbxasset://textures/AnchorCursor.png"
  33. local m4_MOUSE_UNANCHOR_DECALID = "rbxasset://textures/UnAnchorCursor.png"
  34. local m1_MOUSE_selbox_c3 = {13,105,172}
  35. local m1_MOUSE_selbox_surc3 = {13,105,172}
  36. local m1_MOUSE_selbox_lt = {0.006}
  37. local m1_MOUSE_selbox_tr = {0}
  38. local m2_MOUSE_selbox_c3 = {170,0,0}
  39. local m2_MOUSE_selbox_surc3 = {170,0,0}
  40. local m2_MOUSE_selbox_lt = {0.06}
  41. local m2_MOUSE_selbox_tr = {0}
  42. local m3_MOUSE_selbox_c3 = {170,0,0}
  43. local m3_MOUSE_selbox_surc3 = {170,0,0}
  44. local m3_MOUSE_selbox_lt = {0.06}
  45. local m3_MOUSE_selbox_tr = {0}
  46. local m4_MOUSE_selbox_c3 = {13,105,172}
  47. local m4_MOUSE_selbox_surc3 = {13,105,172}
  48. local m4_MOUSE_selbox_lt = {0.006}
  49. local m4_MOUSE_selbox_tr = {0}
  50. local mall_MOUSE_selbox_st = {0.8}
  51. local ui_constaktiv_posud2 = {0,0,0.739,0}
  52. local selbox_vars_a = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
  53. local selbox_vars_n = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}
  54. local FOE = Instance.new("ScreenGui")
  55. local Scripteria = Instance.new("Frame")
  56. local TPM2_title = Instance.new("TextLabel")
  57. local TPM2_author = Instance.new("TextLabel")
  58. local TPM2_status = Instance.new("TextButton")
  59. local TPM2_label_tgh = Instance.new("TextLabel")
  60. local TPM2_string_tgh = Instance.new("TextBox")
  61. local TPM2_string_tkch = Instance.new("TextBox")
  62. local TPM2_label_xoysz = Instance.new("TextLabel")
  63. local TPM2_string_x = Instance.new("TextBox")
  64. local TPM2_string_y = Instance.new("TextBox")
  65. local TPM2_string_z = Instance.new("TextBox")
  66. local TPM2_customdecalidtoggle = Instance.new("TextButton")
  67. local TPM2_customdecalid = Instance.new("TextBox")
  68. local TPM2_modetoggle = Instance.new("TextButton")
  69. local TPM2_minimise = Instance.new("TextButton")
  70. local TPM2_exit = Instance.new("TextButton")
  71. local TPM2_currentmousedecalid = Instance.new("TextButton")
  72. local TPM2_string_currentmousedecalid = Instance.new("TextBox")
  73. local TPM2_help = Instance.new("TextButton")
  74. local TPM2_onclick = Instance.new("TextButton")
  75. local TPM2_onclick_2 = Instance.new("TextButton")
  76. local Braindead = Instance.new("Frame")
  77. local BD2_title = Instance.new("TextLabel")
  78. local _1 = Instance.new("TextLabel")
  79. local _2 = Instance.new("TextLabel")
  80. local _3 = Instance.new("TextLabel")
  81. local BD2_min = Instance.new("TextButton")
  82. local GUI = Instance.new("TextButton")
  83. local const_ison = Instance.new("TextLabel")
  84. local const_mtobj = Instance.new("TextLabel")
  85. local const_mousemode = Instance.new("TextLabel")
  86. local cores = {const_ison, const_mtobj, const_mousemode}
  87. local TestMouseIconDecalID1 = 4834472861
  88. local _mode = 1
  89. TPM2_exit.MouseButton1Down:Connect(function()
  90.     _mode = -5
  91.     script.Disabled = true
  92.     FOE:Destroy()
  93. end)
  94. FOE.Name = "=== [[ F.O.E ]] ==="
  95.  
  96. if debugmode == false then
  97.     FOE.Parent = game.CoreGui
  98. elseif debugmode then
  99.     FOE.Parent = game.Players.LocalPlayer.PlayerGui
  100. end
  101. FOE.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  102. FOE.ResetOnSpawn = true
  103.  
  104. Scripteria.Name = " Scripteria.     "
  105. Scripteria.Parent = FOE
  106. Scripteria.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  107. Scripteria.BackgroundTransparency = 0.200
  108. Scripteria.BorderColor3 = Color3.fromRGB(0, 0, 0)
  109. Scripteria.Position = UDim2.new(0.0121858353, 0, 0.0786240771, 0)
  110. Scripteria.Size = UDim2.new(0, 298, 0, 385)
  111.  
  112. TPM2_title.Name = "TPM2_title"
  113. TPM2_title.Parent = Scripteria
  114. TPM2_title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  115. TPM2_title.BackgroundTransparency = 1.000
  116. TPM2_title.Position = UDim2.new(0.111,0,0,0)
  117. TPM2_title.Size = UDim2.new(0, 232, 0, 39)
  118. TPM2_title.Font = Enum.Font.ArialBold
  119. TPM2_title.Text = "Mouse TP"
  120. TPM2_title.TextColor3 = Color3.fromRGB(170, 0, 0)
  121. TPM2_title.TextScaled = true
  122. TPM2_title.TextSize = 14.000
  123. TPM2_title.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
  124. TPM2_title.TextStrokeTransparency = 0.500
  125. TPM2_title.TextWrapped = true
  126.  
  127. TPM2_author.Name = "TPM2_author"
  128. TPM2_author.Parent = Scripteria
  129. TPM2_author.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  130. TPM2_author.BackgroundTransparency = 1.000
  131. TPM2_author.Position = UDim2.new(0.164429531, 0, 0.101298705, 0)
  132. TPM2_author.Size = UDim2.new(0, 200, 0, 32)
  133. TPM2_author.Font = Enum.Font.Bodoni
  134. TPM2_author.Text = "by: Scripteria"
  135. TPM2_author.TextColor3 = Color3.fromRGB(170, 0, 0)
  136. TPM2_author.TextScaled = true
  137. TPM2_author.TextSize = 14.000
  138. TPM2_author.TextWrapped = true
  139.  
  140. TPM2_status.Name = "TPM2_status"
  141. TPM2_status.Parent = Scripteria
  142. TPM2_status.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  143. TPM2_status.BackgroundTransparency = 0.030
  144. TPM2_status.BorderColor3 = Color3.fromRGB(0, 0, 0)
  145. TPM2_status.Position = UDim2.new(0.164429531, 0, 0.218181819, 0)
  146. TPM2_status.Size = UDim2.new(0, 200, 0, 28)
  147. TPM2_status.Font = Enum.Font.SourceSansBold
  148. TPM2_status.Text = "Enabled"
  149. TPM2_status.TextColor3 = Color3.fromRGB(0, 0, 0)
  150. TPM2_status.TextScaled = true
  151. TPM2_status.TextSize = 14.000
  152. TPM2_status.TextWrapped = true
  153. TPM2_status.TextXAlignment = Enum.TextXAlignment.Left
  154.  
  155. TPM2_label_tgh.Name = "TPM2_label_tgh"
  156. TPM2_label_tgh.Parent = Scripteria
  157. TPM2_label_tgh.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  158. TPM2_label_tgh.BackgroundTransparency = 1.000
  159. TPM2_label_tgh.Position = UDim2.new(0.0234899335, 0, 0.319480509, 0)
  160. TPM2_label_tgh.Size = UDim2.new(0, 194, 0, 26)
  161. TPM2_label_tgh.Font = Enum.Font.Highway
  162. TPM2_label_tgh.Text = "Toggle GUI Hotkey:"
  163. TPM2_label_tgh.TextColor3 = Color3.fromRGB(222, 222, 222)
  164. TPM2_label_tgh.TextScaled = true
  165. TPM2_label_tgh.TextSize = 14.000
  166. TPM2_label_tgh.TextWrapped = true
  167.  
  168. TPM2_string_tgh.Name = "TPM2_string_tgh"
  169. TPM2_string_tgh.Parent = Scripteria
  170. TPM2_string_tgh.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  171. TPM2_string_tgh.BackgroundTransparency = 1.000
  172. TPM2_string_tgh.Position = UDim2.new(0.674496651, 0, 0.319480509, 0)
  173. TPM2_string_tgh.Size = UDim2.new(0, 88, 0, 26)
  174. TPM2_string_tgh.Font = Enum.Font.SourceSansSemibold
  175. TPM2_string_tgh.PlaceholderColor3 = Color3.fromRGB(255, 0, 0)
  176. TPM2_string_tgh.PlaceholderText = "(A-Z), not case-sensitive"
  177. TPM2_string_tgh.Text = "Q"
  178. TPM2_string_tgh.TextColor3 = Color3.fromRGB(0, 255, 0)
  179. TPM2_string_tgh.TextScaled = true
  180. TPM2_string_tgh.TextSize = 14.000
  181. TPM2_string_tgh.TextWrapped = true
  182.  
  183. TPM2_string_tkch.Name = "TPM2_string_tkch"
  184. TPM2_string_tkch.Parent = Scripteria
  185. TPM2_string_tkch.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  186. TPM2_string_tkch.BackgroundTransparency = 1.000
  187. TPM2_string_tkch.Position = UDim2.new(0.674496651, 0, 0.431168824, 0)
  188. TPM2_string_tkch.Size = UDim2.new(0, 88, 0, 26)
  189. TPM2_string_tkch.Font = Enum.Font.SourceSansSemibold
  190. TPM2_string_tkch.PlaceholderColor3 = Color3.fromRGB(255, 0, 0)
  191. TPM2_string_tkch.PlaceholderText = "(A-Z), not case-sensitive"
  192. TPM2_string_tkch.Text = "E"
  193. TPM2_string_tkch.TextColor3 = Color3.fromRGB(0, 255, 0)
  194. TPM2_string_tkch.TextScaled = true
  195. TPM2_string_tkch.TextSize = 14.000
  196. TPM2_string_tkch.TextWrapped = true
  197.  
  198. TPM2_label_xoysz.Name = "TPM2_label_xoysz"
  199. TPM2_label_xoysz.Parent = Scripteria
  200. TPM2_label_xoysz.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  201. TPM2_label_xoysz.BackgroundTransparency = 1.000
  202. TPM2_label_xoysz.Position = UDim2.new(0.0234899335, 0, 0.529870152, 0)
  203. TPM2_label_xoysz.Size = UDim2.new(0, 283, 0, 27)
  204. TPM2_label_xoysz.Font = Enum.Font.SourceSansLight
  205. TPM2_label_xoysz.Text = "X,Y,Z off-set(def/blank=0)"
  206. TPM2_label_xoysz.TextColor3 = Color3.fromRGB(222, 222, 222)
  207. TPM2_label_xoysz.TextScaled = true
  208. TPM2_label_xoysz.TextSize = 14.000
  209. TPM2_label_xoysz.TextWrapped = true
  210.  
  211. TPM2_string_x.Name = "TPM2_string_x"
  212. TPM2_string_x.Parent = Scripteria
  213. TPM2_string_x.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  214. TPM2_string_x.BackgroundTransparency = 1.000
  215. TPM2_string_x.Position = UDim2.new(0.0234899335, 0, 0.625974, 0)
  216. TPM2_string_x.Size = UDim2.new(0, 85, 0, 35)
  217. TPM2_string_x.ClearTextOnFocus = false
  218. TPM2_string_x.Font = Enum.Font.SourceSans
  219. TPM2_string_x.PlaceholderColor3 = Color3.fromRGB(255, 128, 0)
  220. TPM2_string_x.PlaceholderText = "X(0-9, dir:left-right)"
  221. TPM2_string_x.Text = ""
  222. TPM2_string_x.TextColor3 = Color3.fromRGB(0, 255, 0)
  223. TPM2_string_x.TextScaled = true
  224. TPM2_string_x.TextSize = 14.000
  225. TPM2_string_x.TextWrapped = true
  226.  
  227. TPM2_string_y.Name = "TPM2_string_y"
  228. TPM2_string_y.Parent = Scripteria
  229. TPM2_string_y.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  230. TPM2_string_y.BackgroundTransparency = 1.000
  231. TPM2_string_y.Position = UDim2.new(0.338926166, 0, 0.625974, 0)
  232. TPM2_string_y.Size = UDim2.new(0, 85, 0, 35)
  233. TPM2_string_y.ClearTextOnFocus = false
  234. TPM2_string_y.Font = Enum.Font.SourceSans
  235. TPM2_string_y.PlaceholderColor3 = Color3.fromRGB(255, 128, 0)
  236. TPM2_string_y.PlaceholderText = "Y(0-9, dir:up/down)"
  237. TPM2_string_y.Text = ""
  238. TPM2_string_y.TextColor3 = Color3.fromRGB(0, 255, 0)
  239. TPM2_string_y.TextScaled = true
  240. TPM2_string_y.TextSize = 14.000
  241. TPM2_string_y.TextWrapped = true
  242.  
  243. TPM2_string_z.Name = "TPM2_string_z"
  244. TPM2_string_z.Parent = Scripteria
  245. TPM2_string_z.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  246. TPM2_string_z.BackgroundTransparency = 1.000
  247. TPM2_string_z.Position = UDim2.new(0.694630861, 0, 0.623376608, 0)
  248. TPM2_string_z.Size = UDim2.new(0, 83, 0, 35)
  249. TPM2_string_z.ClearTextOnFocus = false
  250. TPM2_string_z.Font = Enum.Font.SourceSans
  251. TPM2_string_z.PlaceholderColor3 = Color3.fromRGB(255, 128, 0)
  252. TPM2_string_z.PlaceholderText = "Z(0-9, dir:front/back)"
  253. TPM2_string_z.Text = ""
  254. TPM2_string_z.TextColor3 = Color3.fromRGB(0, 255, 0)
  255. TPM2_string_z.TextScaled = true
  256. TPM2_string_z.TextSize = 14.000
  257. TPM2_string_z.TextWrapped = true
  258.  
  259. TPM2_customdecalidtoggle.Name = "TPM2_customdecalidtoggle"
  260. TPM2_customdecalidtoggle.Parent = Scripteria
  261. TPM2_customdecalidtoggle.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
  262. TPM2_customdecalidtoggle.BackgroundTransparency = 0.030
  263. TPM2_customdecalidtoggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
  264. TPM2_customdecalidtoggle.Position = UDim2.new(0.0234899335, 0, 0.737662315, 0)
  265. TPM2_customdecalidtoggle.Size = UDim2.new(0, 135, 0, 32)
  266. TPM2_customdecalidtoggle.Font = Enum.Font.SourceSansBold
  267. TPM2_customdecalidtoggle.Text = "Mouse Decal ID(when active)"
  268. TPM2_customdecalidtoggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  269. TPM2_customdecalidtoggle.TextScaled = true
  270. TPM2_customdecalidtoggle.TextSize = 14.000
  271. TPM2_customdecalidtoggle.TextWrapped = true
  272. TPM2_customdecalidtoggle.TextXAlignment = Enum.TextXAlignment.Left
  273.  
  274. TPM2_customdecalid.Name = "TPM2_customdecalid"
  275. TPM2_customdecalid.Parent = Scripteria
  276. TPM2_customdecalid.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  277. TPM2_customdecalid.BackgroundTransparency = 1.000
  278. TPM2_customdecalid.Position = UDim2.new(0.476510078, 0, 0.737662315, 0)
  279. TPM2_customdecalid.Size = UDim2.new(0, 148, 0, 32)
  280. TPM2_customdecalid.ClearTextOnFocus = false
  281. TPM2_customdecalid.Font = Enum.Font.Code
  282. TPM2_customdecalid.PlaceholderColor3 = Color3.fromRGB(222, 222, 222)
  283. TPM2_customdecalid.PlaceholderText = "ID/URL(library)"
  284. TPM2_customdecalid.Text = "6337569733"
  285. TPM2_customdecalid.TextColor3 = Color3.fromRGB(0, 255, 0)
  286. TPM2_customdecalid.TextScaled = true
  287. TPM2_customdecalid.TextSize = 14.000
  288. TPM2_customdecalid.TextWrapped = true
  289.  
  290. TPM2_modetoggle.Name = "TPM2_modetoggle"
  291. TPM2_modetoggle.Parent = Scripteria
  292. TPM2_modetoggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  293. TPM2_modetoggle.BackgroundTransparency = 1.000
  294. TPM2_modetoggle.Position = UDim2.new(0.0234898925, 0, 0.433766216, 0)
  295. TPM2_modetoggle.Size = UDim2.new(0, 194, 0, 26)
  296. TPM2_modetoggle.Font = Enum.Font.SourceSansBold
  297. TPM2_modetoggle.Text = "Toggle TP Hotkey"
  298. TPM2_modetoggle.TextColor3 = Color3.fromRGB(255, 128, 0)
  299. TPM2_modetoggle.TextScaled = true
  300. TPM2_modetoggle.TextSize = 14.000
  301. TPM2_modetoggle.TextWrapped = true
  302.  
  303. TPM2_minimise.Name = "TPM2_minimise"
  304. TPM2_minimise.Parent = Scripteria
  305. TPM2_minimise.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  306. TPM2_minimise.BackgroundTransparency = 0.100
  307. TPM2_minimise.BorderColor3 = Color3.fromRGB(0, 0, 255)
  308. TPM2_minimise.Size = UDim2.new(0, 33, 0, 33)
  309. TPM2_minimise.Font = Enum.Font.LuckiestGuy
  310. TPM2_minimise.Text = "-"
  311. TPM2_minimise.TextColor3 = Color3.fromRGB(0, 0, 0)
  312. TPM2_minimise.TextScaled = true
  313. TPM2_minimise.TextSize = 14.000
  314. TPM2_minimise.TextWrapped = true
  315.  
  316. TPM2_exit.Name = "TPM2_exit"
  317. TPM2_exit.Parent = Scripteria
  318. TPM2_exit.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  319. TPM2_exit.BackgroundTransparency = 0.100
  320. TPM2_exit.BorderColor3 = Color3.fromRGB(170, 0, 0)
  321. TPM2_exit.Position = UDim2.new(0.889261723, 0, 0, 0)
  322. TPM2_exit.Size = UDim2.new(0, 33, 0, 33)
  323. TPM2_exit.Font = Enum.Font.GothamBold
  324. TPM2_exit.Text = "X"
  325. TPM2_exit.TextColor3 = Color3.fromRGB(0, 0, 0)
  326. TPM2_exit.TextScaled = true
  327. TPM2_exit.TextSize = 14.000
  328. TPM2_exit.TextWrapped = true
  329.  
  330. TPM2_currentmousedecalid.Name = "TPM2_currentmousedecalid"
  331. TPM2_currentmousedecalid.Parent = Scripteria
  332. TPM2_currentmousedecalid.BackgroundColor3 = Color3.fromRGB(105, 108, 105)
  333. TPM2_currentmousedecalid.BorderColor3 = Color3.fromRGB(105, 108, 105)
  334. TPM2_currentmousedecalid.Position = UDim2.new(0.0201342274, 0, 0.849350691, 0)
  335. TPM2_currentmousedecalid.Size = UDim2.new(0, 136, 0, 30)
  336. TPM2_currentmousedecalid.Font = Enum.Font.RobotoCondensed
  337. TPM2_currentmousedecalid.Text = "Get current Mouse Decal"
  338. TPM2_currentmousedecalid.TextColor3 = Color3.fromRGB(0, 0, 0)
  339. TPM2_currentmousedecalid.TextScaled = true
  340. TPM2_currentmousedecalid.TextSize = 14.000
  341. TPM2_currentmousedecalid.TextWrapped = true
  342.  
  343. TPM2_string_currentmousedecalid.Name = "TPM2_string_currentmousedecalid"
  344. TPM2_string_currentmousedecalid.Parent = Scripteria
  345. TPM2_string_currentmousedecalid.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  346. TPM2_string_currentmousedecalid.BackgroundTransparency = 1.000
  347. TPM2_string_currentmousedecalid.Position = UDim2.new(0.476510078, 0, 0.849350631, 0)
  348. TPM2_string_currentmousedecalid.Size = UDim2.new(0, 148, 0, 30)
  349. TPM2_string_currentmousedecalid.Font = Enum.Font.Code
  350. TPM2_string_currentmousedecalid.PlaceholderColor3 = Color3.fromRGB(170, 0, 0)
  351. TPM2_string_currentmousedecalid.PlaceholderText = "[blank]"
  352. TPM2_string_currentmousedecalid.Text = TestMouseIconDecalID1
  353. TPM2_string_currentmousedecalid.TextColor3 = Color3.fromRGB(222, 222, 222)
  354. TPM2_string_currentmousedecalid.TextScaled = true
  355. TPM2_string_currentmousedecalid.TextSize = 14.000
  356. TPM2_string_currentmousedecalid.TextWrapped = true
  357.  
  358. TPM2_help.Name = "TPM2_help"
  359. TPM2_help.Parent = Scripteria
  360. TPM2_help.BackgroundColor3 = Color3.fromRGB(100, 100, 255)
  361. TPM2_help.BackgroundTransparency = 0.190
  362. TPM2_help.BorderColor3 = Color3.fromRGB(100, 100, 255)
  363. TPM2_help.Position = UDim2.new(0, 0, 0.101298705, 0)
  364. TPM2_help.Size = UDim2.new(0, 33, 0, 33)
  365. TPM2_help.Font = Enum.Font.LuckiestGuy
  366. TPM2_help.Text = "?"
  367. TPM2_help.TextColor3 = Color3.fromRGB(0, 0, 0)
  368. TPM2_help.TextScaled = true
  369. TPM2_help.TextSize = 14.000
  370. TPM2_help.TextWrapped = true
  371.  
  372. TPM2_onclick.Name = "TPM2_onclick"
  373. TPM2_onclick.Parent = Scripteria
  374. TPM2_onclick.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  375. TPM2_onclick.BackgroundTransparency = 0.100
  376. TPM2_onclick.BorderColor3 = Color3.fromRGB(0, 255, 0)
  377. TPM2_onclick.Position = UDim2.new(0.0201342274, 0, 0.218181819, 0)
  378. TPM2_onclick.Size = UDim2.new(0, 33, 0, 28)
  379. TPM2_onclick.Font = Enum.Font.SourceSans
  380. TPM2_onclick.Text = "On- Click"
  381. TPM2_onclick.TextColor3 = Color3.fromRGB(0, 0, 0)
  382. TPM2_onclick.TextScaled = true
  383. TPM2_onclick.TextSize = 14.000
  384. TPM2_onclick.TextWrapped = true
  385.  
  386. TPM2_onclick_2.Name = "TPM2_onclick"
  387. TPM2_onclick_2.Parent = Scripteria
  388. TPM2_onclick_2.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  389. TPM2_onclick_2.BackgroundTransparency = 0.100
  390. TPM2_onclick_2.BorderColor3 = Color3.fromRGB(170, 0, 0)
  391. TPM2_onclick_2.Position = UDim2.new(0.862416089, 0, 0.218181819, 0)
  392. TPM2_onclick_2.Size = UDim2.new(0, 33, 0, 28)
  393. TPM2_onclick_2.Font = Enum.Font.SourceSans
  394. TPM2_onclick_2.Text = "On- Key"
  395. TPM2_onclick_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  396. TPM2_onclick_2.TextScaled = true
  397. TPM2_onclick_2.TextSize = 14.000
  398. TPM2_onclick_2.TextWrapped = true
  399.  
  400. Braindead.Name = "  Brain-dead"
  401. Braindead.Parent = FOE
  402. Braindead.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  403. Braindead.BackgroundTransparency = 0.300
  404. Braindead.BorderColor3 = Color3.fromRGB(0, 0, 0)
  405. Braindead.Position = UDim2.new(0.726580381, 0, 0.0786240771, 0)
  406. Braindead.Size = UDim2.new(0, 276, 0, 385)
  407.  
  408. BD2_title.Name = "BD2_title"
  409. BD2_title.Parent = Braindead
  410. BD2_title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  411. BD2_title.BackgroundTransparency = 0.900
  412. BD2_title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  413. BD2_title.Size = UDim2.new(0, 276, 0, 33)
  414. BD2_title.Font = Enum.Font.Roboto
  415. BD2_title.Text = "Help"
  416. BD2_title.TextColor3 = Color3.fromRGB(0, 0, 255)
  417. BD2_title.TextScaled = true
  418. BD2_title.TextSize = 14.000
  419. BD2_title.TextWrapped = true
  420.  
  421. _1.Name = "1"
  422. _1.Parent = Braindead
  423. _1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  424. _1.BackgroundTransparency = 1.000
  425. _1.Position = UDim2.new(0, 0, 0.101298705, 0)
  426. _1.Size = UDim2.new(0, 276, 0, 56)
  427. _1.Font = Enum.Font.SourceSans
  428. _1.Text = "CORE OBJECTS:: Modal is enabled whenever the GUI is present on-screen; \"-\": Minimise frame and make an open button; \"X\": De-activates GUI script and removes the GUI; \"?\": Help frame; \"Enabled\": Toggles the script."
  429. _1.TextColor3 = Color3.fromRGB(222, 222, 222)
  430. _1.TextScaled = true
  431. _1.TextSize = 14.000
  432. _1.TextWrapped = true
  433.  
  434. _2.Name = "2"
  435. _2.Parent = Braindead
  436. _2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  437. _2.BackgroundTransparency = 1.000
  438. _2.Position = UDim2.new(0, 0, 0.218181819, 0)
  439. _2.Size = UDim2.new(0, 276, 0, 232)
  440. _2.Font = Enum.Font.SourceSans
  441. _2.Text = "OTHER:: \"On-Click/On-Key\": Toggles whether to tp/del on said condition; \"Toggle GUI Hotkey\": Put a key(A-Z suggested) there and hit [Enter], not case-sensitive & ignore any string after the 1st letter present; \"Toggle [TP/DEL(1)/DEL(2)] Hotkey\": same as GUI toggle except it runs the function of the current mode. TP(teleport to mouse location+X/Y/Z off-set), Del(1)(Deletes object/mouse target), Del(2)(removes mouse target from current position as to bypass certain anti-cheats); \"X,Y,Z off-set(def/blank=0)\": Below textboxes are in-order of, \"X\", \"Y\", \"Z\" - CFrame position, alter these values if you experience issues or get stuck in the ground(set Y to 1.2 or 2 if stuck in ground); \"Mouse Decal ID(when active)\": If [green] then it will change your mouse decal ID to said ID in TextBox to the right of it, Textbox supports full URL from library and ID only; \"Get current Mouse Decal\": Click this to change the TextBox to the right of it to your current mouse decal ID(DO immediately when you see another ID) good if you accidentally change it in the case of an FPS game or a game with custom IDs, right click to change to roblox default)."
  442. _2.TextColor3 = Color3.fromRGB(222, 222, 222)
  443. _2.TextScaled = true
  444. _2.TextSize = 14.000
  445. _2.TextWrapped = true
  446.  
  447. _3.Name = "3"
  448. _3.Parent = Braindead
  449. _3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  450. _3.BackgroundTransparency = 1.000
  451. _3.Position = UDim2.new(0, 0, 0.79740262, 0)
  452. _3.Size = UDim2.new(0, 276, 0, 78)
  453. _3.Font = Enum.Font.SourceSans
  454. _3.Text = "The creator of this GUI is not responsible if your account gets banned (in-)/directly because of this GUI; YOU are responsible for your own account. Is the GUI not working or creating errors? Join(https://discord.gg/4Zhjt5SQ5k) and notify me."
  455. _3.TextColor3 = Color3.fromRGB(170, 0, 0)
  456. _3.TextScaled = true
  457. _3.TextSize = 14.000
  458. _3.TextWrapped = true
  459.  
  460. BD2_min.Name = "BD2_min"
  461. BD2_min.Parent = Braindead
  462. BD2_min.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  463. BD2_min.BorderColor3 = Color3.fromRGB(0, 0, 255)
  464. BD2_min.Size = UDim2.new(0, 35, 0, 33)
  465. BD2_min.Font = Enum.Font.SourceSans
  466. BD2_min.Text = "-"
  467. BD2_min.TextColor3 = Color3.fromRGB(0, 0, 0)
  468. BD2_min.TextScaled = true
  469. BD2_min.TextSize = 14.000
  470. BD2_min.TextWrapped = true
  471.  
  472. GUI.Name = "GUI.t"
  473. GUI.Parent = FOE
  474. GUI.BackgroundColor3 = Color3.fromRGB(0,0,0)
  475. GUI.BackgroundTransparency = 0.3
  476. GUI.BorderColor3 = Color3.fromRGB(0,0,0)
  477. GUI.Size = UDim2.new(0,127,0,35)
  478. GUI.Position = UDim2.new(0,0,0.849,0)
  479. GUI.Font = Enum.Font.SourceSans
  480. GUI.RichText = true
  481. GUI.Text = "Open GUI"
  482. GUI.TextColor3 = Color3.fromRGB(0,0,0)
  483. GUI.TextScaled = true
  484.  
  485. const_ison.Name = "Active/"
  486. const_ison.Parent = FOE
  487. const_ison.BackgroundColor3 = Color3.fromRGB(170,0,0)
  488. const_ison.BackgroundTransparency = 0.3
  489. const_ison.BorderColor3 = Color3.fromRGB(170,0,0)
  490. const_ison.Size = UDim2.new(0,50,0,30)
  491. const_ison.Position = UDim2.new(ui_constaktiv_posud2[1], ui_constaktiv_posud2[2], ui_constaktiv_posud2[3], ui_constaktiv_posud2[4])
  492. const_ison.Font = Enum.Font.SourceSans
  493. const_ison.RichText = true
  494. const_ison.Text = "Loading..."
  495. const_ison.TextColor3 = Color3.fromRGB(0,0,0)
  496. const_ison.TextScaled = true
  497.  
  498. const_mtobj.Name = "Obj/"
  499. const_mtobj.Parent = FOE
  500. const_mtobj.BackgroundColor3 = Color3.fromRGB(0,0,0)
  501. const_mtobj.BackgroundTransparency = 0.3
  502. const_mtobj.BorderColor3 = Color3.fromRGB(0,0,0)
  503. const_mtobj.Size = UDim2.new(0,165,0,45)
  504. const_mtobj.Position = UDim2.new(0,const_mtobj.AbsolutePosition.X,0,const_mtobj.AbsolutePosition.Y+175)
  505. const_mtobj.Font = Enum.Font.GothamSemibold
  506. const_mtobj.RichText = true
  507. const_mtobj.Text = "Syncing..."
  508. const_mtobj.TextColor3 = Color3.fromRGB(222,222,222)
  509. const_mtobj.TextScaled = true
  510.  
  511. const_mousemode.Name = "MM/"
  512. const_mousemode.Parent = FOE
  513. const_mousemode.BackgroundColor3 = Color3.fromRGB(0,0,0)
  514. const_mousemode.BackgroundTransparency = 1
  515. const_mousemode.BackgroundColor3 = Color3.fromRGB(0,0,0)
  516. const_mousemode.Size = UDim2.new(0,95,0,20)
  517. const_mousemode.Position = UDim2.new(0,0,0,0)
  518. const_mousemode.Font = Enum.Font.GothamBlack
  519. const_mousemode.RichText = true
  520. const_mousemode.Text = "Syncing..."
  521. const_mousemode.TextColor3 = Color3.fromRGB(0,0,0)
  522. const_mousemode.TextScaled = true
  523. const_mousemode.TextXAlignment = Enum.TextXAlignment.Left
  524.  
  525. GUI.Visible = false
  526. Scripteria.Active = true;Scripteria.Draggable = true
  527. Braindead.Visible = false;Braindead.Active = true;Braindead.Draggable = true
  528. local CDITBV = Instance.new("BoolValue", TPM2_customdecalidtoggle)
  529. CDITBV.Name = CDITBV.Parent.Name.."."
  530. CDITBV.Value = true
  531. local _ison = true
  532. local _isonclick = true
  533. local _isonkey = false
  534. local vars_isonclick = _isonclick
  535. local vars_isonkey = _isonkey
  536. local vars_ison_CK_text = ""
  537. local vars_ison_mode_text = ""
  538. local function updateScriptGuiStatus()
  539.     local _1 = "TP" local _2 = "DEL_1" local _3 = "DEL_2" local _4 = "AnkTog" local _4r = "UnAnchor" local _nbs = "Toggle " local _nbf = " Hotkey"
  540.     if TPM2_modetoggle.Text == _nbs.._1.._nbf then
  541.         _mode = 1
  542.     elseif TPM2_modetoggle.Text == _nbs.._2.._nbf then
  543.         _mode = 2
  544.     elseif TPM2_modetoggle.Text == _nbs.._3.._nbf then
  545.         _mode = 3
  546.     elseif TPM2_modetoggle.Text == _nbs.._4.._nbf or TPM2_modetoggle.Text == _nbs.._4r.._nbf then
  547.         _mode = 4
  548.     end;if _mode == 1 then vars_ison_mode_text = _1;end;if _mode == 2 then vars_ison_mode_text = _2;end;if _mode == 3 then vars_ison_mode_text = _3;end;if _mode == 4 then vars_ison_mode_text = _4;end
  549.     if _isonclick then
  550.         vars_isonclick = true
  551.         vars_isonkey = false
  552.         vars_ison_CK_text = "On-Click"
  553.     elseif _isonclick == false then
  554.         vars_isonclick = false
  555.         vars_isonkey = true
  556.         vars_ison_CK_text = "On-Key"
  557.     end
  558.     if _ison then
  559.         const_ison.Text = "Enabled:"..vars_ison_CK_text..":"..vars_ison_mode_text
  560.         const_ison.BackgroundColor3 = Color3.fromRGB(0,255,0)
  561.         const_ison.BorderColor3 = Color3.fromRGB(0,255,0)
  562.     elseif _ison == false then
  563.         const_ison.Text = "Disabled:"..vars_ison_CK_text..":"..vars_ison_mode_text
  564.         const_ison.BackgroundColor3 = Color3.fromRGB(170,0,0)
  565.         const_ison.BorderColor3 = Color3.fromRGB(170,0,0)
  566.     end
  567. end
  568. local function toggleGUIstatus()
  569.     if _ison then
  570.         _ison = false
  571.         TPM2_status.Text = "Disabled"
  572.         TPM2_status.BackgroundColor3 = Color3.fromRGB(170,0,0)
  573.         TPM2_status.TextXAlignment = Enum.TextXAlignment.Right
  574.     elseif _ison == false then
  575.         _ison = true
  576.         TPM2_status.Text = "Enabled"
  577.         TPM2_status.BackgroundColor3 = Color3.fromRGB(0,255,0)
  578.         TPM2_status.TextXAlignment = Enum.TextXAlignment.Left
  579.     end
  580.     updateScriptGuiStatus()
  581. end
  582. local CDITBVP = TPM2_customdecalidtoggle
  583.  
  584. local function toggleCMDIoA()
  585.     if CDITBV.Value then
  586.         CDITBV.Value = false
  587.         CDITBVP.BackgroundColor3 = Color3.fromRGB(170,0,0)
  588.         CDITBVP.BorderColor3 = Color3.fromRGB(170,0,0)
  589.     elseif CDITBV.Value == false then
  590.         CDITBV.Value = true
  591.         CDITBVP.BackgroundColor3 = Color3.fromRGB(0,255,0)
  592.         CDITBVP.BorderColor3 = Color3.fromRGB(0,255,0)
  593.     end
  594. end
  595. toggleGUIstatus()
  596. toggleCMDIoA()
  597. local _istping = true
  598. local _cmdie = true
  599. local _mode = 1
  600. local _modes = {"TP", "DEL1", "DEL2"}
  601. local UIS = game:GetService("UserInputService")
  602. local RS = game:GetService("RunService")
  603. local Player = game.Players.LocalPlayer
  604. TPM2_status.Modal = true
  605. local Mouse = Player:GetMouse()
  606. TPM2_minimise.MouseButton1Down:Connect(function()
  607.     Scripteria.Visible = false
  608.     Braindead.Visible = false
  609.     GUI.Visible = true
  610. end)
  611. local function updateMouseIcon()
  612.     if CDITBV.Value == true then
  613.         if _mode == 1 then
  614.             Mouse.Icon = m1_MOUSE_TP_DECALID
  615.         elseif _mode == 2 then
  616.             Mouse.Icon = m2_MOUSE_DEL1_DECALID
  617.         elseif _mode == 3 then
  618.             Mouse.Icon = m3_MOUSE_DEL2_DECALID
  619.         elseif _mode == 4 then
  620.             Mouse.Icon = m4_MOUSE_ANCHOR_DECALID
  621.         end
  622.     elseif CDITBV.Value == false then
  623.         return Mouse.Icon
  624.     end
  625. end
  626. GUI.MouseButton1Down:Connect(function()
  627.     Scripteria.Visible = true
  628.     GUI.Visible = false
  629. end)
  630.  
  631. TPM2_exit.MouseButton1Down:Connect(function()
  632.     _ison = false
  633.     _isonclick = false
  634.     _isonkey = false
  635.     CDITBV.Value = false
  636.     FOE:Destroy()
  637. end)
  638.  
  639. TPM2_help.MouseButton1Down:Connect(function()
  640.     if Braindead.Visible then
  641.         Braindead.Visible = false
  642.     elseif Braindead.Visible == false then
  643.         Braindead.Visible = true
  644.     end
  645. end)
  646. local custommouseid = ""
  647. local function FUNC_isonclickkey()
  648.     updateMouseIcon()
  649.     if _isonclick then
  650.         _isonclick = false
  651.         _isonkey = true
  652.         TPM2_onclick.BackgroundColor3 = Color3.fromRGB(170,0,0)
  653.         TPM2_onclick.BorderColor3 = Color3.fromRGB(170,0,0)
  654.         TPM2_onclick_2.BackgroundColor3 = Color3.fromRGB(0,255,0)
  655.         TPM2_onclick_2.BorderColor3 = Color3.fromRGB(0,255,0)
  656.     elseif _isonclick == false then
  657.         _isonclick = true
  658.         _isonkey = false
  659.         TPM2_onclick.BackgroundColor3 = Color3.fromRGB(0,255,0)
  660.         TPM2_onclick.BorderColor3 = Color3.fromRGB(0,255,0)
  661.         TPM2_onclick_2.BackgroundColor3 = Color3.fromRGB(170,0,0)
  662.         TPM2_onclick_2.BorderColor3 = Color3.fromRGB(170,0,0)
  663.     end
  664.     updateScriptGuiStatus()
  665. end
  666. local SELBOX = Instance.new("SelectionBox")SELBOX.Parent = FOE;SELBOX.Name = ""
  667. local function updModeInfo()
  668.     if _mode == 1 then
  669.         TPM2_modetoggle.Text = "Toggle TP Hotkey"
  670.         TPM2_title.Text = "Mouse-TP"
  671.         const_mousemode.Text = "TP"
  672.     elseif _mode == 2 then
  673.         TPM2_modetoggle.Text = "Toggle DEL1 Hotkey"
  674.         TPM2_title.Text = "Mouse-Del(1)"
  675.         const_mousemode.Text = "DEL_1"
  676.     elseif _mode == 3 then
  677.         TPM2_modetoggle.Text = "Toggle DEL2 Hotkey"
  678.         TPM2_title.Text = "Mouse-Del(2)"
  679.         const_mousemode.Text = "DEL_2"
  680.     elseif _mode == 4 then
  681.         TPM2_modetoggle.Text = "Toggle (UN)ANK Hotkey"
  682.         TPM2_title.Text = "Mouse-Ankor"
  683.     end
  684. end
  685. if debugmode then
  686.     wait(2)
  687. end
  688. local Character = nil
  689. for i, v in pairs(workspace:GetDescendants()) do
  690.     if v:IsA("Model") and v.Name == Player.Name and v:FindFirstChild("Humanoid") then
  691.         Character = v
  692.     end
  693. end
  694. local function FUNC_gameRS()
  695.     FOE.Name = SELBOX.Name.."."
  696.     for i, v in pairs(FOE:GetDescendants()) do
  697.         v.Name = SELBOX.Name..",./"
  698.     end
  699.     if _ison then
  700.         local rn1c3 = math.random(1,255)
  701.         local rn2c3 = math.random(1,255)
  702.         local rn3c3 = math.random(1,255)
  703.         const_mtobj.TextColor3 = Color3.fromRGB(rn1c3, rn2c3, rn3c3)
  704.         const_mousemode.TextColor3 = const_mtobj.TextColor3
  705.         const_mousemode.Position = UDim2.fromOffset(Mouse.X+18, Mouse.Y-5.66)
  706.         if _ison then
  707.             if const_mtobj.Visible then
  708.                 const_mousemode.Visible = true
  709.             elseif const_mtobj.Visible == false then
  710.                 if isHSe then
  711.                     local cinfo = {
  712.                         errors = 0;
  713.                         warnings = 0;
  714.                         title = "const_mousemode";
  715.                         titletype = "info-tab, left";
  716.                         gamename = game.Name;
  717.                         line = "~720"
  718.                     }
  719.                     return game.HttpService:JSONEncode(cinfo)
  720.                 elseif isHSe == false then
  721.                     return "Unable to retrieve online data."
  722.                 end
  723.             end
  724.             updModeInfo()
  725.             if _mode == 4 then
  726.                 if Mouse.Target then
  727.                     if Mouse.Target:IsA("Part") or Mouse.Target:IsA("MeshPart") or Mouse.Target:IsA("WedgePart") or Mouse.Target:IsA("BasePart") then
  728.                         if Mouse.Target.Anchored then
  729.                             const_mousemode.Text = "UN-\nANCHOR"
  730.                         elseif Mouse.Target.Anchored == false then
  731.                             const_mousemode.Text = "ANCHOR"
  732.                         end
  733.                     elseif Mouse.Target and Mouse.Target:IsA("Part") == nil and Mouse.Target:IsA("MeshPart") == nil and Mouse.Target:IsA("WedgePart") == nil and Mouse.Target:IsA("BasePart") == nil then
  734.                         const_mousemode.Text = "ANKHOR"
  735.                     end
  736.                 elseif Mouse.Target == nil then
  737.                     const_mousemode.Text = "ANKHOR\n(nil obj)"
  738.                 end
  739.             end
  740.         end
  741.         if Mouse.Target then
  742.             if Mouse.Target:IsA("Decal") == false or Mouse.Target:IsA("Decal") == nil then
  743.                 local _constvars_ank = nil
  744.                 local _constvars_col = nil
  745.                 local _constvars_cl3 = nil
  746.                 local _constvars_tra = nil
  747.                 local _constvars_typ = nil
  748.                 local _constvars_text_ank = ""
  749.                 local _constvars_text_col = ""
  750.                 if Mouse.Target.Anchored then
  751.                     _constvars_ank = true
  752.                     _constvars_text_ank = "true"
  753.                 elseif Mouse.Target.Anchored == false then
  754.                     _constvars_ank = false
  755.                     _constvars_text_ank = "false"
  756.                 end
  757.                 if Mouse.Target.CanCollide then
  758.                     _constvars_col = true
  759.                     _constvars_text_col = "true"
  760.                 elseif Mouse.Target.CanCollide == false then
  761.                     _constvars_col = false
  762.                     _constvars_text_col = "false"
  763.                 end
  764.                 _constvars_cl3 = Mouse.Target.Color or Mouse.Target.Color3
  765.                 _constvars_tra = Mouse.Target.Transparency
  766.                 _constvars_typ = Mouse.Target.ClassName
  767.                 const_mtobj.Text = "Anchored:".._constvars_text_ank..";CanCollide:".._constvars_text_col..";Opacity:".._constvars_tra..";Type:".._constvars_typ
  768.             elseif Mouse.Target:IsA("Decal") then
  769.                 const_mtobj.Text = ";Texture:"..Mouse.Target.Texture..";Opacity:"..Mouse.Target.Transparency..";Type:Decal"
  770.             end
  771.         elseif Mouse.Target == nil or Mouse.Target == false then
  772.             const_mtobj.Text = "NULL; No object!"
  773.         end
  774.     elseif _ison == false then
  775.         const_mtobj.Text = "Syncing.."
  776.         const_mousemode.Visible = false
  777.     end
  778.     if _ison then
  779.         if Mouse.Target then
  780.             if Mouse.Target:IsA("Decal") then
  781.                 Mouse.Target.Locked = false
  782.                 SELBOX.Adornee = Mouse.Target.Parent
  783.             elseif Mouse.Target:IsA("Decal") == nil or Mouse.Target:IsA("Decal") == false then
  784.                 Mouse.Target.Locked = false
  785.                 SELBOX.Adornee = Mouse.Target
  786.             end
  787.         elseif Mouse.Target == nil then
  788.             SELBOX.Adornee = nil
  789.         end
  790.         if _mode == 1 then
  791.             SELBOX.Color3 = Color3.fromRGB(13,105,172)
  792.             SELBOX.LineThickness = 0.1
  793.             SELBOX.SurfaceColor3 = Color3.fromRGB(13,105,172)
  794.             SELBOX.SurfaceTransparency = 0.8
  795.             SELBOX.Transparency = 0
  796.         elseif _mode == 2 then
  797.             SELBOX.Color3 = Color3.fromRGB(255,0,0)
  798.             SELBOX.LineThickness = 0.1
  799.             SELBOX.SurfaceColor3 = Color3.fromRGB(255,0,0)
  800.             SELBOX.SurfaceTransparency = 0.8
  801.             SELBOX.Transparency = 0
  802.         elseif _mode == 3 then
  803.             SELBOX.Color3 = Color3.fromRGB(255,0,0)
  804.             SELBOX.LineThickness = 0.1
  805.             SELBOX.SurfaceColor3 = Color3.fromRGB(255,0,0)
  806.             SELBOX.SurfaceTransparency = 0.8
  807.             SELBOX.Transparency = 0
  808.         elseif _mode == 4 then
  809.             SELBOX.Color3 = Color3.fromRGB(13,105,172)
  810.             SELBOX.LineThickness = 0.1
  811.             SELBOX.SurfaceColor3 = Color3.fromRGB(13,105,172)
  812.             SELBOX.SurfaceTransparency = 0.8
  813.             SELBOX.Transparency = 0
  814.         end
  815.     elseif _ison == false then
  816.         SELBOX.Adornee = nil
  817.     end
  818.     if CDITBV.Value == true then
  819.         if _mode == 1 then
  820.             Mouse.Icon = m1_MOUSE_TP_DECALID
  821.         elseif _mode == 2 then
  822.             Mouse.Icon = m2_MOUSE_DEL1_DECALID
  823.         elseif _mode == 3 then
  824.             Mouse.Icon = m3_MOUSE_DEL2_DECALID
  825.         elseif _mode == 4 and Mouse.Target then
  826.             if Mouse.Target and Mouse.Target:IsA("Decal") then
  827.                 if Mouse.Target.Parent.Anchored then
  828.                     Mouse.Icon = m4_MOUSE_UNANCHOR_DECALID
  829.                 elseif Mouse.Target.Parent.Anchored == false then
  830.                     Mouse.Icon = m4_MOUSE_ANCHOR_DECALID
  831.                 end
  832.             elseif Mouse.Target and Mouse.Target:IsA("Decal") == nil or Mouse.Target:IsA("Decal") == false then
  833.                 if Mouse.Target.Anchored then
  834.                     Mouse.Icon = m4_MOUSE_UNANCHOR_DECALID
  835.                 elseif Mouse.Target.Anchored == false then
  836.                     Mouse.Icon = m4_MOUSE_ANCHOR_DECALID
  837.                 end
  838.             end
  839.         end
  840.     end
  841.     for i, v in pairs(workspace:GetDescendants()) do
  842.         if v:IsA("SelectionBox") and v.Name == "=== [[ F.O.E ]] ===" then
  843.             if Mouse.Target:IsA("Decal") then
  844.                 if Mouse.Target.Parent:FindFirstChild("=== [[ F.O.E ]] ===") and Mouse.Target ~= v then
  845.                     Mouse.Target.Parent["=== [[ F.O.E ]] ==="]:Destroy()
  846.                 end
  847.             elseif Mouse.Target:IsA("Decal") == nil or Mouse.Target:IsA("Decal") == false then
  848.                 if Mouse.Target:FindFirstChild("=== [[ F.O.E ]] ===") and Mouse.Target ~= v then
  849.                     Mouse.Target["=== [[ F.O.E ]] ==="]:Destroy()
  850.                 end
  851.             end
  852.         end
  853.     end
  854. end
  855. TPM2_onclick.MouseButton1Down:Connect(FUNC_isonclickkey)
  856. TPM2_onclick_2.MouseButton1Down:Connect(FUNC_isonclickkey)
  857. TPM2_status.MouseButton1Down:Connect(toggleGUIstatus)
  858. TPM2_modetoggle.MouseButton1Down:Connect(function()
  859.     if _mode == 1 then
  860.         _mode = 2
  861.         TPM2_modetoggle.Text = "Toggle DEL_1 Hotkey"
  862.         TPM2_title.Text = "Mouse Delete(1)"
  863.     elseif _mode == 2 then
  864.         _mode = 3
  865.         TPM2_modetoggle.Text = "Toggle DEL_2 Hotkey"
  866.         TPM2_title.Text = "Mouse Delete(2)"
  867.     elseif _mode == 3 then
  868.         _mode = 4
  869.         TPM2_modetoggle.Text = "Toggle UnAnchor Hotkey"
  870.         TPM2_title.Text = "Mouse UnAnchor"
  871.     elseif _mode == 4 then
  872.         _mode = 1
  873.         TPM2_modetoggle.Text = "Toggle TP Hotkey"
  874.         TPM2_title.Text = "Mouse TP"
  875.     end
  876.     updateScriptGuiStatus()
  877. end)
  878. TPM2_modetoggle.MouseButton2Down:Connect(function()
  879.     if _mode == 1 then
  880.         _mode = 4
  881.         TPM2_modetoggle.Text = "Toggle UnAnchor Hotkey"
  882.         TPM2_title.Text = "Mouse UnAnchor"
  883.     elseif _mode == 2 then
  884.         _mode = 1
  885.         TPM2_modetoggle.Text = "Toggle TP Hotkey"
  886.         TPM2_title.Text = "Mouse TP"
  887.     elseif _mode == 3 then
  888.         _mode = 2
  889.         TPM2_modetoggle.Text = "Toggle DEL_1 Hotkey"
  890.         TPM2_title.Text = "Mouse Delete(1)"
  891.     elseif _mode == 4 then
  892.         _mode = 3
  893.         TPM2_modetoggle.Text = "Toggle DEL_2 Hotkey"
  894.         TPM2_title.Text = "Mouse Delete(2)"
  895.     end
  896. end)
  897. local posX=TPM2_string_x.Text;local posY=TPM2_string_y.Text;local posZ=TPM2_string_z.Text;local CMID=TPM2_customdecalid.Text;local ATTCMDI=TPM2_string_currentmousedecalid.Text
  898. local POSX=0;local POSY=0;local POSZ=0
  899.  
  900. TPM2_customdecalidtoggle.MouseButton1Down:Connect(function()
  901.     local CDITBVP = TPM2_customdecalidtoggle
  902.     local CDITBVV = CDITBV.Value
  903.     if CDITBV.Value == true then
  904.         CDITBV.Value = false
  905.         CDITBVP.BackgroundColor3 = Color3.fromRGB(170,0,0)
  906.         CDITBVP.BorderColor3 = Color3.fromRGB(170,0,0)
  907.     elseif CDITBV.Value == false then
  908.         CDITBV.Value = true
  909.         CDITBVP.BackgroundColor3 = Color3.fromRGB(0,255,0)
  910.         CDITBVP.BorderColor3 = Color3.fromRGB(0,255,0)
  911.     end
  912. end)
  913.  
  914. TPM2_customdecalidtoggle.MouseButton2Down:Connect(function()
  915.     Mouse.Icon = ""
  916. end)
  917.  
  918. TPM2_currentmousedecalid.MouseButton1Down:Connect(function()
  919.     TPM2_string_currentmousedecalid.Text = Mouse.Icon
  920.     if Mouse.Icon == "" then
  921.         TPM2_string_currentmousedecalid.Text = "Default"
  922.     end
  923. end)
  924.  
  925. BD2_min.MouseButton1Down:Connect(function()
  926.     Braindead.Visible = false
  927. end)
  928. UIS.InputBegan:Connect(function(Input, gameProcessed)
  929.     updateScriptGuiStatus()
  930.     local _inputvars_totogglecore = false
  931.     if const_ison.Visible then
  932.         _inputvars_totogglecore = true
  933.     elseif const_ison.Visible == false then
  934.         _inputvars_totogglecore = false
  935.     end
  936.     local X = TPM2_string_x.Text;local nX = 0
  937.     local Y = TPM2_string_y.Text;local nY = 0
  938.     local Z = TPM2_string_z.Text;local nZ = 0
  939.     local notNILTarget = true
  940.     local input = Input.KeyCode
  941.     local _tg = string.upper(string.sub(TPM2_string_tgh.Text,1,1))
  942.     local _tf = string.upper(string.sub(TPM2_string_tkch.Text,1,1))
  943.     if input == Enum.KeyCode.Insert then
  944.         for i, v in ipairs(cores) do
  945.             if _inputvars_totogglecore then
  946.                 v.Visible = false
  947.             elseif _inputvars_totogglecore == false then
  948.                 v.Visible = true
  949.             end
  950.         end
  951.     end
  952.     if X == "" or X == " " then
  953.         nX = 0
  954.     elseif tonumber(X) then
  955.         nX = X
  956.     end
  957.     if Y == "" or Y == " " then
  958.         nY = 0
  959.     elseif tonumber(Y) then
  960.         nY = Y
  961.     end
  962.     if Z == "" or Z == " " then
  963.         nZ = 0
  964.     elseif tonumber(Z) then
  965.         nZ = Z
  966.     end
  967.     if input == Enum.KeyCode[_tg] and UIS:GetFocusedTextBox() == nil then
  968.         if Scripteria.Visible then
  969.             Scripteria.Visible = false
  970.             Braindead.Visible = false
  971.         elseif Scripteria.Visible == false then
  972.             Scripteria.Visible = true
  973.         end
  974.     end
  975.     if _ison then
  976.         if UIS:GetFocusedTextBox() == nil or UIS:GetFocusedTextBox() == false then
  977.             if Input.UserInputType == Enum.UserInputType.Keyboard then
  978.                 if input == Enum.KeyCode[_tf] and Scripteria.Visible == false then
  979.                     if _isonclick then
  980.                         if _istping then
  981.                             _istping = false
  982.                             const_ison.Text = "Disabled"..":"..vars_ison_CK_text..":"..vars_ison_mode_text
  983.                             const_ison.BackgroundColor3 = Color3.fromRGB(170,0,0)
  984.                             const_ison.BorderColor3 = Color3.fromRGB(170,0,0)
  985.                         elseif _istping == false then
  986.                             _istping = true
  987.                             const_ison.Text = "Enabled"..":"..vars_ison_CK_text..":"..vars_ison_mode_text
  988.                             const_ison.BackgroundColor3 = Color3.fromRGB(0,255,0)
  989.                             const_ison.BorderColor3 = Color3.fromRGB(0,255,0)
  990.                         end
  991.                     end
  992.                     if _isonkey and Mouse.Target then
  993.                         if _mode == 1 and Player.Character:FindFirstChild("HumanoidRootPart") then
  994.                             Player.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(Mouse.Hit.X+nX, Mouse.Hit.Y+nY, Mouse.Hit.Z+nZ))
  995.                         end
  996.                         if _mode == 2 then
  997.                             Mouse.Target:Destroy()
  998.                         end
  999.                         if _mode == 3 then
  1000.                             if Mouse.Target ~= nil then
  1001.                                 if Mouse.Target:IsA("Texture") then
  1002.                                     Mouse.Target.Parent.CanCollide = false
  1003.                                     Mouse.Target.Transparency = 1
  1004.                                     Mouse.Target.Parent.Size = Vector3.new(0,0,0)
  1005.                                     notNILTarget = false
  1006.                                 elseif Mouse.Target == nil then
  1007.                                     notNILTarget = false
  1008.                                 elseif notNILTarget then
  1009.                                     Mouse.Target.CanCollide = false
  1010.                                     Mouse.Target.Transparency = 1
  1011.                                     Mouse.Target.Size = Vector3.new(0,0,0)
  1012.                                 end
  1013.                             elseif Mouse.Target == nil then
  1014.                                 return
  1015.                             end
  1016.                         end
  1017.                         if _mode == 4 then
  1018.                             if Mouse.Target:IsA("Texture") then
  1019.                                 if Mouse.Target.Parent.Anchored then
  1020.                                     Mouse.Target.Parent.Anchored = false
  1021.                                 elseif Mouse.Target.Parent.Anchored == false then
  1022.                                     Mouse.Target.Parent.Anchored = true
  1023.                                 end
  1024.                             elseif Mouse.Target:IsA("Texture") == nil or Mouse.Target:IsA("Texture") == false then
  1025.                                 if Mouse.Target.Anchored then
  1026.                                     Mouse.Target.Anchored = false
  1027.                                 elseif Mouse.Target.Anchored == false then
  1028.                                     Mouse.Target.Anchored = true
  1029.                                 end
  1030.                             end
  1031.                         end
  1032.                     end
  1033.                 end
  1034.             end
  1035.             if Input.UserInputType == Enum.UserInputType.MouseButton1 and Scripteria.Visible == false then
  1036.                 if _isonclick and Mouse.Target then
  1037.                     if _mode == 1 and _istping then
  1038.                         Player.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(Mouse.Hit.X+nX, Mouse.Hit.Y+nY, Mouse.Hit.Z+nZ))
  1039.                     end
  1040.                     if _mode == 2 then
  1041.                         Mouse.Target:Destroy()
  1042.                     end
  1043.                     if _mode == 3 then
  1044.                         if Mouse.Target ~= nil then
  1045.                             if Mouse.Target:IsA("Texture") then
  1046.                                 Mouse.Target.CanCollide = false
  1047.                                 Mouse.Target.Transparency = 1
  1048.                                 Mouse.Target.Parent.Size = Vector3.new(0,0,0)
  1049.                                 notNILTarget = false
  1050.                             elseif Mouse.Target == nil then
  1051.                                 notNILTarget = false
  1052.                             elseif notNILTarget then
  1053.                                 Mouse.Target.CanCollide = false
  1054.                                 Mouse.Target.Transparency = 1
  1055.                                 Mouse.Target.Size = Vector3.new(0,0,0)
  1056.                             end
  1057.                         elseif Mouse.Target == nil then
  1058.                             return
  1059.                         end
  1060.                     end
  1061.                     if _mode == 4 then
  1062.                         if Mouse.Target:IsA("Texture") then
  1063.                             if Mouse.Target.Parent.Anchored then
  1064.                                 Mouse.Target.Parent.Anchored = false
  1065.                             elseif Mouse.Target.Parent.Anchored == false then
  1066.                                 Mouse.Target.Parent.Anchored = true
  1067.                             end
  1068.                         elseif Mouse.Target:IsA("Texture") == nil or Mouse.Target:IsA("Texture") == false then
  1069.                             if Mouse.Target.Anchored then
  1070.                                 Mouse.Target.Anchored = false
  1071.                             elseif Mouse.Target.Anchored == false then
  1072.                                 Mouse.Target.Anchored = true
  1073.                             end
  1074.                         end
  1075.                     end
  1076.                 end
  1077.             end
  1078.         end
  1079.     end
  1080. end)
  1081. RS.RenderStepped:Connect(FUNC_gameRS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement