Advertisement
vvexx_dev

Scriptec ESP W/ Preview

Feb 2nd, 2023
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.79 KB | Gaming | 0 0
  1. local UIS = game:GetService("UserInputService")
  2. local MenuEnabled = true
  3.  
  4. local State1 = false
  5. local State2 = false
  6. local State3 = false
  7. local State4 = false
  8. local State5 = false
  9.  
  10. dwSkeleton    = {}
  11. dwBody        = {}
  12. dwBox         = {}
  13. dwName        = nil
  14. dwDistance    = nil
  15.  
  16.  
  17. function dragify(Frame)
  18.    dragToggle = nil
  19.    local dragSpeed = 0
  20.    dragInput = nil
  21.    dragStart = nil
  22.    local dragPos = nil
  23.    function updateInput(input)
  24.        local Delta = input.Position - dragStart
  25.        local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  26.        game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.1), {Position = Position}):Play()
  27.    end
  28.    Frame.InputBegan:Connect(function(input)
  29.        if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  30.            dragToggle = true
  31.            dragStart = input.Position
  32.            startPos = Frame.Position
  33.            input.Changed:Connect(function()
  34.                if (input.UserInputState == Enum.UserInputState.End) then
  35.                    dragToggle = false
  36.                end
  37.            end)
  38.        end
  39.    end)
  40.    Frame.InputChanged:Connect(function(input)
  41.        if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  42.            dragInput = input
  43.        end
  44.    end)
  45.    UIS.InputChanged:Connect(function(input)
  46.        if (input == dragInput and dragToggle) then
  47.            updateInput(input)
  48.        end
  49.    end)
  50. end
  51.  
  52. local ScreenGui = Instance.new("ScreenGui")
  53. local Frame = Instance.new("Frame")
  54. local ImageLabel = Instance.new("ImageLabel")
  55. local Box = Instance.new("Folder")
  56. local Frame_2 = Instance.new("Frame")
  57. local Frame_3 = Instance.new("Frame")
  58. local Frame_4 = Instance.new("Frame")
  59. local Frame_5 = Instance.new("Frame")
  60. local Skeleton = Instance.new("Folder")
  61. local Frame_6 = Instance.new("Frame")
  62. local Frame_7 = Instance.new("Frame")
  63. local Frame_8 = Instance.new("Frame")
  64. local Frame_9 = Instance.new("Frame")
  65. local Frame_10 = Instance.new("Frame")
  66. local Frame_11 = Instance.new("Frame")
  67. local Frame_12 = Instance.new("Frame")
  68. local Frame_13 = Instance.new("Frame")
  69. local Frame_14 = Instance.new("Frame")
  70. local Frame_15 = Instance.new("Frame")
  71. local Body = Instance.new("Folder")
  72. local TextBox_2 = Instance.new("TextBox")
  73. local TextBox_3 = Instance.new("TextBox")
  74. local UICorner = Instance.new("UICorner")
  75. local UICorner_2 = Instance.new("UICorner")
  76. local Frame_16 = Instance.new("Frame")
  77. local UICorner_3 = Instance.new("UICorner")
  78. local Toggle1 = Instance.new("TextButton")
  79. local UICorner_4 = Instance.new("UICorner")
  80. local Frame_17 = Instance.new("Frame")
  81. local UICorner_5 = Instance.new("UICorner")
  82. local Toggle2 = Instance.new("TextButton")
  83. local UICorner_6 = Instance.new("UICorner")
  84. local Frame_18 = Instance.new("Frame")
  85. local UICorner_7 = Instance.new("UICorner")
  86. local Toggle3 = Instance.new("TextButton")
  87. local UICorner_8 = Instance.new("UICorner")
  88. local Frame_19 = Instance.new("Frame")
  89. local UICorner_9 = Instance.new("UICorner")
  90. local Toggle4 = Instance.new("TextButton")
  91. local UICorner_10 = Instance.new("UICorner")
  92. local Frame_20 = Instance.new("Frame")
  93. local UICorner_11 = Instance.new("UICorner")
  94. local TextLabel = Instance.new("TextLabel")
  95. local TextLabel_2 = Instance.new("TextLabel")
  96. local TextLabel_3 = Instance.new("TextLabel")
  97. local TextLabel_4 = Instance.new("TextLabel")
  98. local Toggle5 = Instance.new("TextButton")
  99. local UICorner_12 = Instance.new("UICorner")
  100. local Frame_21 = Instance.new("Frame")
  101. local UICorner_13 = Instance.new("UICorner")
  102. local TextLabel_5 = Instance.new("TextLabel")
  103. local TextLabel_6 = Instance.new("TextLabel")
  104.  
  105. --Properties:
  106.  
  107. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  108. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  109.  
  110. Frame.Parent = ScreenGui
  111. Frame.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
  112. Frame.Position = UDim2.new(0.481898636, 0, 0.302469134, 0)
  113. Frame.Size = UDim2.new(0, 461, 0, 275)
  114.  
  115. ImageLabel.Parent = Frame
  116. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  117. ImageLabel.BackgroundTransparency = 1.000
  118. ImageLabel.BorderSizePixel = 0
  119. ImageLabel.Position = UDim2.new(0.466636717, 0, 0.0324022062, 0)
  120. ImageLabel.Size = UDim2.new(0, 238, 0, 257)
  121. ImageLabel.Image = "rbxassetid://12194422580"
  122.  
  123. Box.Name = "Box"
  124. Box.Parent = ImageLabel
  125.  
  126. Frame_2.Parent = Box
  127. Frame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  128. Frame_2.Position = UDim2.new(0.165382713, 0, 0.138771385, 0)
  129. Frame_2.Size = UDim2.new(0, 1, 0, 182)
  130. Frame_2.Visible = false
  131. table.insert(dwBox, Frame_2)
  132.  
  133. Frame_3.Parent = Box
  134. Frame_3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  135. Frame_3.Position = UDim2.new(0.841853321, 0, 0.138771385, 0)
  136. Frame_3.Size = UDim2.new(0, 1, 0, 182)
  137. Frame_3.Visible = false
  138. table.insert(dwBox, Frame_3)
  139.  
  140. Frame_4.Parent = Box
  141. Frame_4.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  142. Frame_4.Position = UDim2.new(0.501517177, 0, 0.54344064, 0)
  143. Frame_4.Rotation = 90.000
  144. Frame_4.Size = UDim2.new(0, 1, 0, 160)
  145. Frame_4.Visible = false
  146. table.insert(dwBox, Frame_4)
  147.  
  148. Frame_5.Parent = Box
  149. Frame_5.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  150. Frame_5.Position = UDim2.new(0.501517177, 0, -0.17251265, 0)
  151. Frame_5.Rotation = 90.000
  152. Frame_5.Size = UDim2.new(0, 1, 0, 160)
  153. Frame_5.Visible = false
  154. table.insert(dwBox, Frame_5)
  155.  
  156. Skeleton.Name = "Skeleton"
  157. Skeleton.Parent = ImageLabel
  158.  
  159. Frame_6.Parent = Skeleton
  160. Frame_6.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  161. Frame_6.Position = UDim2.new(0.289999992, 0, 0.354999989, 0)
  162. Frame_6.Size = UDim2.new(0, 0, 0, 43)
  163. Frame_6.Visible = false
  164. table.insert(dwSkeleton, Frame_6)
  165.  
  166. Frame_7.Parent = Skeleton
  167. Frame_7.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  168. Frame_7.Position = UDim2.new(0.504626632, 0, 0.363791853, 0)
  169. Frame_7.Size = UDim2.new(0, 0, 0, 43)
  170. Frame_7.Visible = false
  171. table.insert(dwSkeleton, Frame_7)
  172.  
  173. Frame_8.Parent = Skeleton
  174. Frame_8.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  175. Frame_8.Position = UDim2.new(0.435000002, 0, 0.601000011, 0)
  176. Frame_8.Size = UDim2.new(0, 0, 0, 43)
  177. Frame_8.Visible = false
  178. table.insert(dwSkeleton, Frame_8)
  179.  
  180. Frame_9.Parent = Skeleton
  181. Frame_9.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  182. Frame_9.Position = UDim2.new(0.574999988, 0, 0.601000011, 0)
  183. Frame_9.Size = UDim2.new(0, 0, 0, 42)
  184. Frame_9.Visible = false
  185. table.insert(dwSkeleton, Frame_9)
  186.  
  187. Frame_10.Parent = Skeleton
  188. Frame_10.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  189. Frame_10.Position = UDim2.new(0.467739344, 0, 0.530568421, 0)
  190. Frame_10.Rotation = 45.000
  191. Frame_10.Size = UDim2.new(0, 0, 0, 21)
  192. Frame_10.Visible = false
  193. table.insert(dwSkeleton, Frame_10)
  194.  
  195. Frame_11.Parent = Skeleton
  196. Frame_11.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  197. Frame_11.Position = UDim2.new(0.540000021, 0, 0.531000018, 0)
  198. Frame_11.Rotation = -45.000
  199. Frame_11.Size = UDim2.new(0, 0, 0, 21)
  200. Frame_11.Visible = false
  201. table.insert(dwSkeleton, Frame_11)
  202.  
  203. Frame_12.Parent = Skeleton
  204. Frame_12.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  205. Frame_12.Position = UDim2.new(0.400578082, 0, 0.253633499, 0)
  206. Frame_12.Rotation = 90.000
  207. Frame_12.Size = UDim2.new(0, 0, 0, 52)
  208. Frame_12.Visible = false
  209. table.insert(dwSkeleton, Frame_12)
  210.  
  211. Frame_13.Parent = Skeleton
  212. Frame_13.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  213. Frame_13.Position = UDim2.new(0.611000001, 0, 0.246999994, 0)
  214. Frame_13.Rotation = 90.000
  215. Frame_13.Size = UDim2.new(0, 0, 0, 54)
  216. Frame_13.Visible = false
  217. table.insert(dwSkeleton, Frame_13)
  218.  
  219. Frame_14.Parent = Skeleton
  220. Frame_14.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  221. Frame_14.Position = UDim2.new(0.504626632, 0, 0.243829742, 0)
  222. Frame_14.Size = UDim2.new(0, 0, 0, 43)
  223. Frame_14.Visible = false
  224. table.insert(dwSkeleton, Frame_14)
  225.  
  226. Frame_15.Parent = Skeleton
  227. Frame_15.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  228. Frame_15.Position = UDim2.new(0.726974785, 0, 0.354999989, 0)
  229. Frame_15.Size = UDim2.new(0, 0, 0, 43)
  230. Frame_15.Visible = false
  231. table.insert(dwSkeleton, Frame_15)
  232.  
  233. Body.Name = "Body"
  234. Body.Parent = ImageLabel
  235.  
  236. TextBox_2.Parent = ImageLabel
  237. TextBox_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  238. TextBox_2.BackgroundTransparency = 1.000
  239. TextBox_2.Position = UDim2.new(0.169584394, 0, 0.846942604, 0)
  240. TextBox_2.Size = UDim2.new(0, 160, 0, 28)
  241. TextBox_2.Visible = false
  242. TextBox_2.Font = Enum.Font.SourceSans
  243. TextBox_2.Text = "[300m]"
  244. TextBox_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  245. TextBox_2.TextSize = 14.000
  246. dwDistance = TextBox_2
  247.  
  248. TextBox_3.Parent = ImageLabel
  249. TextBox_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  250. TextBox_3.BackgroundTransparency = 1.000
  251. TextBox_3.Position = UDim2.new(0.169584394, 0, 0.0492772199, 0)
  252. TextBox_3.Size = UDim2.new(0, 160, 0, 17)
  253. TextBox_3.Visible = false
  254. TextBox_3.Font = Enum.Font.SourceSans
  255. TextBox_3.Text = "Player Name"
  256. TextBox_3.TextColor3 = Color3.fromRGB(0, 0, 0)
  257. TextBox_3.TextSize = 14.000
  258. dwName = TextBox_3
  259.  
  260. UICorner.Parent = ImageLabel
  261.  
  262. UICorner_2.CornerRadius = UDim.new(0, 5)
  263. UICorner_2.Parent = Frame
  264.  
  265. Frame_16.Parent = Frame
  266. Frame_16.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
  267. Frame_16.BorderColor3 = Color3.fromRGB(226, 226, 226)
  268. Frame_16.Size = UDim2.new(0, 208, 0, 275)
  269.  
  270. UICorner_3.CornerRadius = UDim.new(0, 5)
  271. UICorner_3.Parent = Frame_16
  272.  
  273. Toggle1.Name = "Toggle1"
  274. Toggle1.Parent = Frame_16
  275. Toggle1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  276. Toggle1.Position = UDim2.new(0.0612244233, 0, 0.0731770396, 0)
  277. Toggle1.Size = UDim2.new(0, 39, 0, 17)
  278. Toggle1.Font = Enum.Font.SourceSans
  279. Toggle1.Text = ""
  280. Toggle1.TextColor3 = Color3.fromRGB(0, 0, 0)
  281. Toggle1.TextSize = 14.000
  282.  
  283. UICorner_4.CornerRadius = UDim.new(2, 8)
  284. UICorner_4.Parent = Toggle1
  285.  
  286. Frame_17.Parent = Toggle1
  287. Frame_17.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
  288. Frame_17.Position = UDim2.new(0, 3, 0.104313716, 0)
  289. Frame_17.Size = UDim2.new(0, 17, 0, 13)
  290.  
  291. UICorner_5.CornerRadius = UDim.new(2, 8)
  292. UICorner_5.Parent = Frame_17
  293.  
  294. Toggle2.Name = "Toggle2"
  295. Toggle2.Parent = Frame_16
  296. Toggle2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  297. Toggle2.Position = UDim2.new(0.0610000007, 0, 0.165000007, 0)
  298. Toggle2.Size = UDim2.new(0, 39, 0, 17)
  299. Toggle2.Font = Enum.Font.SourceSans
  300. Toggle2.Text = ""
  301. Toggle2.TextColor3 = Color3.fromRGB(0, 0, 0)
  302. Toggle2.TextSize = 14.000
  303.  
  304. UICorner_6.CornerRadius = UDim.new(2, 8)
  305. UICorner_6.Parent = Toggle2
  306.  
  307. Frame_18.Parent = Toggle2
  308. Frame_18.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
  309. Frame_18.Position = UDim2.new(0, 3, 0.104313716, 0)
  310. Frame_18.Size = UDim2.new(0, 17, 0, 13)
  311.  
  312. UICorner_7.CornerRadius = UDim.new(2, 8)
  313. UICorner_7.Parent = Frame_18
  314.  
  315. Toggle3.Name = "Toggle3"
  316. Toggle3.Parent = Frame_16
  317. Toggle3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  318. Toggle3.Position = UDim2.new(0.0610000007, 0, 0.254999995, 0)
  319. Toggle3.Size = UDim2.new(0, 39, 0, 17)
  320. Toggle3.Font = Enum.Font.SourceSans
  321. Toggle3.Text = ""
  322. Toggle3.TextColor3 = Color3.fromRGB(0, 0, 0)
  323. Toggle3.TextSize = 14.000
  324.  
  325. UICorner_8.CornerRadius = UDim.new(2, 8)
  326. UICorner_8.Parent = Toggle3
  327.  
  328. Frame_19.Parent = Toggle3
  329. Frame_19.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
  330. Frame_19.Position = UDim2.new(0, 3, 0.104313716, 0)
  331. Frame_19.Size = UDim2.new(0, 17, 0, 13)
  332.  
  333. UICorner_9.CornerRadius = UDim.new(2, 8)
  334. UICorner_9.Parent = Frame_19
  335.  
  336. Toggle4.Name = "Toggle4"
  337. Toggle4.Parent = Frame_16
  338. Toggle4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  339. Toggle4.Position = UDim2.new(0.0610000007, 0, 0.345999986, 0)
  340. Toggle4.Size = UDim2.new(0, 39, 0, 17)
  341. Toggle4.Font = Enum.Font.SourceSans
  342. Toggle4.Text = ""
  343. Toggle4.TextColor3 = Color3.fromRGB(0, 0, 0)
  344. Toggle4.TextSize = 14.000
  345.  
  346. UICorner_10.CornerRadius = UDim.new(2, 8)
  347. UICorner_10.Parent = Toggle4
  348.  
  349. Frame_20.Parent = Toggle4
  350. Frame_20.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
  351. Frame_20.Position = UDim2.new(0, 3, 0.104313716, 0)
  352. Frame_20.Size = UDim2.new(0, 17, 0, 13)
  353.  
  354. UICorner_11.CornerRadius = UDim.new(2, 8)
  355. UICorner_11.Parent = Frame_20
  356.  
  357. TextLabel.Parent = Frame_16
  358. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  359. TextLabel.BackgroundTransparency = 1.000
  360. TextLabel.Position = UDim2.new(0.307692319, 0, 0.0731770471, 0)
  361. TextLabel.Size = UDim2.new(0, 138, 0, 16)
  362. TextLabel.Font = Enum.Font.SourceSans
  363. TextLabel.Text = "Enabled"
  364. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  365. TextLabel.TextSize = 16.000
  366. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  367.  
  368. TextLabel_2.Parent = Frame_16
  369. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  370. TextLabel_2.BackgroundTransparency = 1.000
  371. TextLabel_2.Position = UDim2.new(0.307692319, 0, 0.164086133, 0)
  372. TextLabel_2.Size = UDim2.new(0, 138, 0, 16)
  373. TextLabel_2.Font = Enum.Font.SourceSans
  374. TextLabel_2.Text = "Boxes"
  375. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  376. TextLabel_2.TextSize = 16.000
  377. TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left
  378.  
  379. TextLabel_3.Parent = Frame_16
  380. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  381. TextLabel_3.BackgroundTransparency = 1.000
  382. TextLabel_3.Position = UDim2.new(0.307692319, 0, 0.254995227, 0)
  383. TextLabel_3.Size = UDim2.new(0, 138, 0, 17)
  384. TextLabel_3.Font = Enum.Font.SourceSans
  385. TextLabel_3.Text = "Skeleton"
  386. TextLabel_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  387. TextLabel_3.TextSize = 16.000
  388. TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
  389.  
  390. TextLabel_4.Parent = Frame_16
  391. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  392. TextLabel_4.BackgroundTransparency = 1.000
  393. TextLabel_4.Position = UDim2.new(0.307692319, 0, 0.34590432, 0)
  394. TextLabel_4.Size = UDim2.new(0, 138, 0, 17)
  395. TextLabel_4.Font = Enum.Font.SourceSans
  396. TextLabel_4.Text = "Name"
  397. TextLabel_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  398. TextLabel_4.TextSize = 16.000
  399. TextLabel_4.TextXAlignment = Enum.TextXAlignment.Left
  400.  
  401. Toggle5.Name = "Toggle5"
  402. Toggle5.Parent = Frame_16
  403. Toggle5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  404. Toggle5.Position = UDim2.new(0.0610000007, 0, 0.437000006, 0)
  405. Toggle5.Size = UDim2.new(0, 39, 0, 17)
  406. Toggle5.Font = Enum.Font.SourceSans
  407. Toggle5.Text = ""
  408. Toggle5.TextColor3 = Color3.fromRGB(0, 0, 0)
  409. Toggle5.TextSize = 14.000
  410.  
  411. UICorner_12.CornerRadius = UDim.new(2, 8)
  412. UICorner_12.Parent = Toggle5
  413.  
  414. Frame_21.Parent = Toggle5
  415. Frame_21.BackgroundColor3 = Color3.fromRGB(93, 93, 93)
  416. Frame_21.Position = UDim2.new(0, 3, 0.104313716, 0)
  417. Frame_21.Size = UDim2.new(0, 17, 0, 13)
  418.  
  419. UICorner_13.CornerRadius = UDim.new(2, 8)
  420. UICorner_13.Parent = Frame_21
  421.  
  422. TextLabel_5.Parent = Frame_16
  423. TextLabel_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  424. TextLabel_5.BackgroundTransparency = 1.000
  425. TextLabel_5.Position = UDim2.new(0.0721153915, 0, 0.902267933, 0)
  426. TextLabel_5.Size = UDim2.new(0, 138, 0, 17)
  427. TextLabel_5.Font = Enum.Font.SourceSans
  428. TextLabel_5.Text = "Created by Scriptec"
  429. TextLabel_5.TextColor3 = Color3.fromRGB(255, 255, 255)
  430. TextLabel_5.TextSize = 16.000
  431. TextLabel_5.TextXAlignment = Enum.TextXAlignment.Left
  432.  
  433. TextLabel_6.Parent = Frame_16
  434. TextLabel_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  435. TextLabel_6.BackgroundTransparency = 1.000
  436. TextLabel_6.Position = UDim2.new(0.307692319, 0, 0.436813414, 0)
  437. TextLabel_6.Size = UDim2.new(0, 138, 0, 17)
  438. TextLabel_6.Font = Enum.Font.SourceSans
  439. TextLabel_6.Text = "Distance"
  440. TextLabel_6.TextColor3 = Color3.fromRGB(255, 255, 255)
  441. TextLabel_6.TextSize = 16.000
  442. TextLabel_6.TextXAlignment = Enum.TextXAlignment.Left
  443.  
  444. -- Scripts:
  445.  
  446. local function Toggle1_() -- Toggle1.LocalScript
  447. local Frame = Toggle1
  448. local ToggleFrame = Frame.Frame
  449. local ToggleBtn = Frame
  450.  
  451. function UpdateScreen1()
  452. if State1 == true then
  453. ToggleBtn.BackgroundColor3 = Color3.fromRGB(142, 28, 255)
  454. ToggleFrame:TweenPosition(UDim2.new(0.41, 3,0.104, 0), "In", "Linear", 0.2, false)
  455. else
  456. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  457. ToggleFrame:TweenPosition(UDim2.new(0, 3,0.104, 0), "Out", "Linear", 0.2, false)
  458. end
  459. end
  460. UpdateScreen1()
  461.  
  462. ToggleBtn.MouseButton1Click:Connect(function()
  463. State1 = not State1
  464.    UpdateScreen1()
  465. end)
  466. end
  467. Toggle1_()
  468. local function Toggle2_() -- Toggle2.LocalScript
  469. local Frame = Toggle2
  470. local ToggleFrame = Frame.Frame
  471. local ToggleBtn = Frame
  472.  
  473. function UpdateScreen2()
  474. if State2 == true then
  475. ToggleBtn.BackgroundColor3 = Color3.fromRGB(142, 28, 255)
  476. ToggleFrame:TweenPosition(UDim2.new(0.436, 3,0.104, 0), "In", "Linear", 0.2, false)
  477. else
  478. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  479. ToggleFrame:TweenPosition(UDim2.new(0, 3,0.104, 0), "Out", "Linear", 0.2, false)
  480. end
  481. end
  482. UpdateScreen2()
  483.  
  484. ToggleBtn.MouseButton1Click:Connect(function()
  485. State2 = not State2
  486.  
  487.        for i,v in pairs(dwBox) do
  488.            v.Visible = State2
  489.        end
  490.    UpdateScreen2()
  491. end)
  492. end
  493. Toggle2_()
  494. local function Toggle3_() -- Toggle3.LocalScript
  495. local Frame = Toggle3
  496. local ToggleFrame = Frame.Frame
  497. local ToggleBtn = Frame
  498.  
  499. function UpdateScreen3()
  500. if State3 == true then
  501. ToggleBtn.BackgroundColor3 = Color3.fromRGB(142, 28, 255)
  502. ToggleFrame:TweenPosition(UDim2.new(0.436, 3,0.104, 0), "In", "Linear", 0.2, false)
  503. else
  504. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  505. ToggleFrame:TweenPosition(UDim2.new(0, 3,0.104, 0), "Out", "Linear", 0.2, false)
  506. end
  507. end
  508. UpdateScreen3()
  509.  
  510. ToggleBtn.MouseButton1Click:Connect(function()
  511. State3 = not State3
  512.  
  513.        for i,v in pairs(dwSkeleton) do
  514.            v.Visible = State3
  515.        end
  516.    UpdateScreen3()
  517. end)
  518. end
  519. Toggle3_()
  520. local function Toggle4_() -- Toggle4.LocalScript
  521. local Frame = Toggle4
  522. local ToggleFrame = Frame.Frame
  523. local ToggleBtn = Frame
  524.  
  525. function UpdateScreen4()
  526. if State4 == true then
  527. ToggleBtn.BackgroundColor3 = Color3.fromRGB(142, 28, 255)
  528. ToggleFrame:TweenPosition(UDim2.new(0.436, 3,0.104, 0), "In", "Linear", 0.2, false)
  529. else
  530. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  531. ToggleFrame:TweenPosition(UDim2.new(0, 3,0.104, 0), "Out", "Linear", 0.2, false)
  532. end
  533. end
  534. UpdateScreen4()
  535.  
  536. ToggleBtn.MouseButton1Click:Connect(function()
  537. State4 = not State4
  538.  
  539.        dwName.Visible = State4
  540.    UpdateScreen4()
  541. end)
  542. end
  543. Toggle4_()
  544. local function Toggle5_() -- Toggle5.LocalScript
  545. local Frame = Toggle5
  546. local ToggleFrame = Frame.Frame
  547. local ToggleBtn = Frame
  548.  
  549. function UpdateScreen5()
  550. if State5 == true then
  551. ToggleBtn.BackgroundColor3 = Color3.fromRGB(142, 28, 255)
  552. ToggleFrame:TweenPosition(UDim2.new(0.436, 3,0.104, 0), "In", "Linear", 0.2, false)
  553. else
  554. ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  555. ToggleFrame:TweenPosition(UDim2.new(0, 3,0.104, 0), "Out", "Linear", 0.2, false)
  556. end
  557. end
  558. UpdateScreen5()
  559.  
  560. ToggleBtn.MouseButton1Click:Connect(function()
  561. State5 = not State5
  562.  
  563.        dwDistance.Visible = State5
  564.    UpdateScreen5()
  565. end)
  566. end
  567. Toggle5_()
  568.  
  569.  
  570. -- If Right shift is pressed, show menu
  571. game:GetService("UserInputService").InputBegan:Connect(function(input)
  572.    if input.KeyCode == Enum.KeyCode.RightShift then
  573.        MenuEnabled = not MenuEnabled
  574.        Frame.Visible = MenuEnabled
  575.    end
  576.  
  577.    if input.KeyCode == Enum.KeyCode.Delete then
  578.        ScreenGui:Destroy()
  579.    end
  580. end)
  581.  
  582. dragify(Frame)
Tags: esp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement