Advertisement
jamkles

Fake macro and X-ray

May 1st, 2023 (edited)
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local jamklesui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local xray = Instance.new("TextButton")
  10. local macro = Instance.new("TextButton")
  11. local PlayerName = Instance.new("ImageLabel")
  12. local BackPack = Instance.new("ImageButton")
  13. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  14. local UICorner = Instance.new("UICorner")
  15.  
  16. --Properties:
  17.  
  18. jamklesui.Name = "jamklesui"
  19. jamklesui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20.  
  21. Frame.Parent = jamklesui
  22. Frame.BackgroundColor3 = Color3.fromRGB(253, 128, 8)
  23. Frame.Position = UDim2.new(0.62472415, 0, 0.486718476, 0)
  24. Frame.Size = UDim2.new(0, 199, 0, 216)
  25.  
  26. TextLabel.Parent = Frame
  27. TextLabel.BackgroundColor3 = Color3.fromRGB(252, 1, 7)
  28. TextLabel.Position = UDim2.new(-0.0046505034, 0, -0.00528054219, 0)
  29. TextLabel.Size = UDim2.new(0, 200, 0, 42)
  30. TextLabel.Font = Enum.Font.SourceSans
  31. TextLabel.Text = "made by jamkles"
  32. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  33. TextLabel.TextSize = 14.000
  34.  
  35. xray.Name = "xray"
  36. xray.Parent = Frame
  37. xray.BackgroundColor3 = Color3.fromRGB(253, 128, 8)
  38. xray.Position = UDim2.new(0, 0, 0.421296299, 0)
  39. xray.Size = UDim2.new(0, 199, 0, 50)
  40. xray.Font = Enum.Font.SourceSans
  41. xray.Text = "XRay Vision:Off"
  42. xray.TextColor3 = Color3.fromRGB(0, 0, 0)
  43. xray.TextSize = 14.000
  44.  
  45. macro.Name = "macro"
  46. macro.Parent = Frame
  47. macro.BackgroundColor3 = Color3.fromRGB(253, 128, 8)
  48. macro.Position = UDim2.new(0, 0, 0.189814821, 0)
  49. macro.Size = UDim2.new(0, 199, 0, 50)
  50. macro.Font = Enum.Font.SourceSans
  51. macro.Text = "Macro:off"
  52. macro.TextColor3 = Color3.fromRGB(0, 0, 0)
  53. macro.TextSize = 14.000
  54.  
  55. PlayerName.Name = "PlayerName"
  56. PlayerName.Parent = Frame
  57. PlayerName.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  58. PlayerName.BorderSizePixel = 0
  59. PlayerName.Position = UDim2.new(0, 0, 0.837236404, 0)
  60. PlayerName.Size = UDim2.new(0, 199, 0, 35)
  61. PlayerName.SizeConstraint = Enum.SizeConstraint.RelativeXX
  62. PlayerName.Image = "rbxassetid://4508753002"
  63. PlayerName.ScaleType = Enum.ScaleType.Fit
  64.  
  65. BackPack.Name = "BackPack"
  66. BackPack.Parent = jamklesui
  67. BackPack.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. BackPack.BackgroundTransparency = 1.000
  69. BackPack.Position = UDim2.new(0.219311029, 0, 0.0140118301, 0)
  70. BackPack.Size = UDim2.new(0.0384769924, 0, 0.0817522407, 0)
  71. BackPack.Image = "http://www.roblox.com/asset/?id=9696895580"
  72. BackPack.ImageTransparency = 0.500
  73.  
  74. UIAspectRatioConstraint.Parent = BackPack
  75. UIAspectRatioConstraint.AspectRatio = 1.019
  76.  
  77. UICorner.CornerRadius = UDim.new(0.5, 0)
  78. UICorner.Parent = BackPack
  79.  
  80. -- Scripts:
  81.  
  82. local function RVNHYE_fake_script() -- Frame.Drag
  83. local script = Instance.new('LocalScript', Frame)
  84.  
  85. local UIS = game:GetService('UserInputService')
  86. local frame = script.Parent
  87. local dragToggle = nil
  88. local dragSpeed = 0.25
  89. local dragStart = nil
  90. local startPos = nil
  91.  
  92. local function updateInput(input)
  93. local delta = input.Position - dragStart
  94. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  95. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  96. game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  97. end
  98.  
  99. frame.InputBegan:Connect(function(input)
  100. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  101. dragToggle = true
  102. dragStart = input.Position
  103. startPos = frame.Position
  104. input.Changed:Connect(function()
  105. if input.UserInputState == Enum.UserInputState.End then
  106. dragToggle = false
  107. end
  108. end)
  109. end
  110. end)
  111.  
  112. UIS.InputChanged:Connect(function(input)
  113. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  114. if dragToggle then
  115. updateInput(input)
  116. end
  117. end
  118. end)
  119. end
  120. coroutine.wrap(RVNHYE_fake_script)()
  121. local function FMVJWD_fake_script() -- xray.LocalScript
  122. local script = Instance.new('LocalScript', xray)
  123.  
  124. script.Parent.MouseButton1Click:Connect(function()
  125. if script.Parent.Text == "XRay Vision:Off" then
  126. script.Parent.BackgroundColor3 = Color3.fromRGB(253, 128, 8)
  127. script.Parent.Text = "XRay Vision:On"
  128. for i, descendant in pairs(workspace:GetDescendants()) do
  129. if descendant:IsA("BasePart") then
  130. if not descendant:FindFirstChild("OriginalTransparency") then
  131. local originalTransparency = Instance.new("NumberValue")
  132. originalTransparency.Name = "OriginalTransparency"
  133. originalTransparency.Value = descendant.Transparency
  134. originalTransparency.Parent = descendant
  135. end
  136. descendant.Transparency = 0.5
  137. end
  138. end
  139. else
  140. script.Parent.BackgroundColor3 = Color3.fromRGB(253, 128, 8)
  141. script.Parent.Text = "XRay Vision:Off"
  142. for i, descendant in pairs(workspace:GetDescendants()) do
  143. if descendant:IsA("BasePart") then
  144. descendant.Transparency = descendant.OriginalTransparency.Value
  145. end
  146. end
  147. end
  148. end)
  149.  
  150. end
  151. coroutine.wrap(FMVJWD_fake_script)()
  152. local function ICNDH_fake_script() -- macro.LocalScript
  153. local script = Instance.new('LocalScript', macro)
  154.  
  155. print("james is a Qt")
  156.  
  157. -- helped by mabi/shogun
  158. local button = script.Parent
  159. local plr = game.Players.LocalPlayer
  160. local sprinting = false
  161.  
  162. local function sprint()
  163. local plr = plr
  164. if sprinting then
  165. sprinting = false
  166. button.Text = "macro off"
  167. plr.Character.Humanoid.WalkSpeed = 16
  168. else
  169. sprinting = true
  170. button.Text = "macro on"
  171. plr.Character.Humanoid.WalkSpeed = 160
  172. end
  173. end
  174.  
  175. button.MouseButton1Click:Connect(sprint)
  176.  
  177. end
  178. coroutine.wrap(ICNDH_fake_script)()
  179. local function RQJF_fake_script() -- Frame.PlayerImage
  180. local script = Instance.new('LocalScript', Frame)
  181.  
  182. local frame = script.Parent
  183. local player = game.Players.LocalPlayer
  184. local userId = player.UserId
  185. local thumType = Enum.ThumbnailType.HeadShot
  186. local thumSize = Enum.ThumbnailSize.Size420x420
  187. local content = game.Players:GetUserThumbnailAsync(userId, thumType, thumSize)
  188. frame.PlayerName.Image = content
  189.  
  190. end
  191. coroutine.wrap(RQJF_fake_script)()
  192. local function FSSTHAR_fake_script() -- BackPack.OPEN/CLOSE SCRIPT
  193. local script = Instance.new('LocalScript', BackPack)
  194.  
  195. script.Parent.MouseButton1Click:Connect(function()
  196. script.Parent.Parent.Frame.Visible = not script.Parent.Parent.Frame.Visible
  197. end)
  198.  
  199. end
  200. coroutine.wrap(FSSTHAR_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement