Advertisement
DiscordPastebins

New Method freeze script!

Jun 7th, 2024 (edited)
45
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.48 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local TextLabel_2 = Instance.new("TextLabel")
  10. local TextLabel_3 = Instance.new("TextLabel")
  11. local UICorner = Instance.new("UICorner")
  12. local TextButton = Instance.new("TextButton")
  13. local UICorner_2 = Instance.new("UICorner")
  14. local TextButton_2 = Instance.new("TextButton")
  15. local UICorner_3 = Instance.new("UICorner")
  16. local TextLabel_4 = Instance.new("TextLabel")
  17.  
  18. --Properties:
  19.  
  20. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  21. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22. ScreenGui.Name = "TouchGui"
  23.  
  24. Frame.Parent = ScreenGui
  25. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  26. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  27. Frame.BorderSizePixel = 0
  28. Frame.Position = UDim2.new(0.371674478, 0, 0.377192974, 0)
  29. Frame.Size = UDim2.new(0.255562723, 0, 0.244020239, 0)
  30.  
  31. TextLabel.Parent = Frame
  32. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  33. TextLabel.BackgroundTransparency = 1.000
  34. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  35. TextLabel.BorderSizePixel = 0
  36. TextLabel.Size = UDim2.new(1, 0, 0.225476801, 0)
  37. TextLabel.Font = Enum.Font.DenkOne
  38. TextLabel.Text = "Freeze Methods"
  39. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  40. TextLabel.TextScaled = true
  41. TextLabel.TextSize = 14.000
  42. TextLabel.TextWrapped = true
  43.  
  44. TextLabel_2.Parent = Frame
  45. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  46. TextLabel_2.BackgroundTransparency = 1.000
  47. TextLabel_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  48. TextLabel_2.BorderSizePixel = 0
  49. TextLabel_2.Position = UDim2.new(0, 0, 0.474476784, 0)
  50. TextLabel_2.Size = UDim2.new(1.00000012, 0, 0.0807586685, 0)
  51. TextLabel_2.Font = Enum.Font.DenkOne
  52. TextLabel_2.Text = "method 1 is with anim"
  53. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  54. TextLabel_2.TextScaled = true
  55. TextLabel_2.TextSize = 14.000
  56. TextLabel_2.TextWrapped = true
  57.  
  58. TextLabel_3.Parent = Frame
  59. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  60. TextLabel_3.BackgroundTransparency = 1.000
  61. TextLabel_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  62. TextLabel_3.BorderSizePixel = 0
  63. TextLabel_3.Position = UDim2.new(0, 0, 0.800963104, 0)
  64. TextLabel_3.Size = UDim2.new(1, 0, 0.0810000002, 0)
  65. TextLabel_3.Font = Enum.Font.DenkOne
  66. TextLabel_3.Text = "method 2 is wothout anim"
  67. TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0)
  68. TextLabel_3.TextScaled = true
  69. TextLabel_3.TextSize = 14.000
  70. TextLabel_3.TextWrapped = true
  71.  
  72. UICorner.CornerRadius = UDim.new(0, 10)
  73. UICorner.Parent = Frame
  74.  
  75. TextButton.Parent = Frame
  76. TextButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  77. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  78. TextButton.BorderSizePixel = 0
  79. TextButton.Position = UDim2.new(0.0200516358, 0, 0.225476801, 0)
  80. TextButton.Size = UDim2.new(0.957000017, 0, 0.248999998, 0)
  81. TextButton.Font = Enum.Font.Bodoni
  82. TextButton.Text = "Method 1"
  83. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  84. TextButton.TextScaled = true
  85. TextButton.TextSize = 14.000
  86. TextButton.TextWrapped = true
  87.  
  88. UICorner_2.CornerRadius = UDim.new(0, 15)
  89. UICorner_2.Parent = TextButton
  90.  
  91. TextButton_2.Parent = Frame
  92. TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 255, 17)
  93. TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  94. TextButton_2.BorderSizePixel = 0
  95. TextButton_2.Position = UDim2.new(0.0223343, 0, 0.555235505, 0)
  96. TextButton_2.Size = UDim2.new(0.95667696, 0, 0.248999968, 0)
  97. TextButton_2.Font = Enum.Font.Bodoni
  98. TextButton_2.Text = "Method 2"
  99. TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  100. TextButton_2.TextScaled = true
  101. TextButton_2.TextSize = 14.000
  102. TextButton_2.TextWrapped = true
  103.  
  104. UICorner_3.CornerRadius = UDim.new(0, 15)
  105. UICorner_3.Parent = TextButton_2
  106.  
  107. TextLabel_4.Parent = Frame
  108. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  109. TextLabel_4.BackgroundTransparency = 1.000
  110. TextLabel_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
  111. TextLabel_4.BorderSizePixel = 0
  112. TextLabel_4.Position = UDim2.new(0, 0, 0.474476784, 0)
  113. TextLabel_4.Size = UDim2.new(1.00000012, 0, 0.0807586685, 0)
  114. TextLabel_4.Font = Enum.Font.DenkOne
  115. TextLabel_4.Text = "method 1 is with anim"
  116. TextLabel_4.TextColor3 = Color3.fromRGB(0, 0, 0)
  117. TextLabel_4.TextScaled = true
  118. TextLabel_4.TextSize = 14.000
  119. TextLabel_4.TextWrapped = true
  120.  
  121. -- Scripts:
  122.  
  123. local function LVGI_fake_script() -- Frame.Drag Gui Script
  124. local script = Instance.new('LocalScript', Frame)
  125.  
  126. function dragify(Main)
  127. dragToggle = nil
  128. dragSpeed = 0.0000000000000001 -- You can edit this.
  129. dragInput = nil
  130. dragStart = nil
  131. dragPos = nil
  132.  
  133. function updateInput(input)
  134. Delta = input.Position - dragStart
  135. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  136. game:GetService("TweenService"):Create(Main, TweenInfo.new(.25), {Position = Position}):Play()
  137. end
  138.  
  139. Main.InputBegan:Connect(function(input)
  140. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  141. dragToggle = true
  142. dragStart = input.Position
  143. startPos = Main.Position
  144. input.Changed:Connect(function()
  145. if (input.UserInputState == Enum.UserInputState.End) then
  146. dragToggle = false
  147. end
  148. end)
  149. end
  150. end)
  151.  
  152. Main.InputChanged:Connect(function(input)
  153. if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  154. dragInput = input
  155. end
  156. end)
  157.  
  158. game:GetService("UserInputService").InputChanged:Connect(function(input)
  159. if (input == dragInput and dragToggle) then
  160. updateInput(input)
  161. end
  162. end)
  163. end
  164.  
  165. dragify(script.Parent)
  166. end
  167. coroutine.wrap(LVGI_fake_script)()
  168. local function SYVP_fake_script() -- TextButton.LocalScript
  169. local script = Instance.new('LocalScript', TextButton)
  170.  
  171. local player = game.Players.LocalPlayer
  172. local flyingEnabled = false
  173. local flyHeight = 10 -- Adjust this value to change the flying height
  174.  
  175. -- Function to toggle flying
  176. local function toggleFlying()
  177. flyingEnabled = not flyingEnabled
  178. local character = player.Character
  179. if character then
  180. local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
  181. if humanoidRootPart then
  182. local bodyPosition = humanoidRootPart:FindFirstChildOfClass("BodyPosition")
  183. if flyingEnabled then
  184. -- Enable flying
  185. if not bodyPosition then
  186. bodyPosition = Instance.new("BodyPosition")
  187. bodyPosition.Parent = humanoidRootPart
  188. bodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  189. end
  190. bodyPosition.Position = humanoidRootPart.Position + Vector3.new(0, flyHeight, 0)
  191. humanoidRootPart.Anchored = true -- Prevents gravity from pulling the character down
  192. else
  193. -- Disable flying
  194. if bodyPosition then
  195. bodyPosition:Destroy()
  196. end
  197. humanoidRootPart.Anchored = false
  198. end
  199. end
  200. end
  201. end
  202.  
  203. script.Parent.MouseButton1Click:Connect(toggleFlying)
  204.  
  205. end
  206. coroutine.wrap(SYVP_fake_script)()
  207. local function ATDYX_fake_script() -- TextButton_2.LocalScript
  208. local script = Instance.new('LocalScript', TextButton_2)
  209.  
  210. local player = game.Players.LocalPlayer
  211. local flyingEnabled = false
  212.  
  213. -- Function to toggle flying
  214. local function toggleFlying()
  215. flyingEnabled = not flyingEnabled
  216. if flyingEnabled then
  217. -- Enable flying
  218. local character = player.Character
  219. if character then
  220. local humanoid = character:FindFirstChildOfClass("Humanoid")
  221. if humanoid then
  222. humanoid.PlatformStand = true -- Prevents character from falling
  223. humanoid.Sit = true -- Sit the character (optional, for better flying experience)
  224. local bodyVelocity = Instance.new("BodyVelocity")
  225. bodyVelocity.Parent = character.HumanoidRootPart
  226. bodyVelocity.MaxForce = Vector3.new(400000, 400000, 400000) -- Adjust this for smoother flying
  227. bodyVelocity.Velocity = Vector3.new(0, 0, 0) -- Start flying with no initial velocity
  228. end
  229. end
  230. else
  231. -- Disable flying
  232. local character = player.Character
  233. if character then
  234. local humanoid = character:FindFirstChildOfClass("Humanoid")
  235. if humanoid then
  236. humanoid.PlatformStand = false
  237. humanoid.Sit = false
  238. local bodyVelocity = character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity")
  239. if bodyVelocity then
  240. bodyVelocity:Destroy()
  241. end
  242. end
  243. end
  244. end
  245. end
  246.  
  247. script.Parent.MouseButton1Click:Connect(toggleFlying)
  248.  
  249. end
  250. coroutine.wrap(ATDYX_fake_script)()
  251.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement