Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextLabel_2 = Instance.new("TextLabel")
- local TextLabel_3 = Instance.new("TextLabel")
- local UICorner = Instance.new("UICorner")
- local TextButton = Instance.new("TextButton")
- local UICorner_2 = Instance.new("UICorner")
- local TextButton_2 = Instance.new("TextButton")
- local UICorner_3 = Instance.new("UICorner")
- local TextLabel_4 = Instance.new("TextLabel")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Name = "TouchGui"
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.371674478, 0, 0.377192974, 0)
- Frame.Size = UDim2.new(0.255562723, 0, 0.244020239, 0)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Size = UDim2.new(1, 0, 0.225476801, 0)
- TextLabel.Font = Enum.Font.DenkOne
- TextLabel.Text = "Freeze Methods"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_2.BorderSizePixel = 0
- TextLabel_2.Position = UDim2.new(0, 0, 0.474476784, 0)
- TextLabel_2.Size = UDim2.new(1.00000012, 0, 0.0807586685, 0)
- TextLabel_2.Font = Enum.Font.DenkOne
- TextLabel_2.Text = "method 1 is with anim"
- TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14.000
- TextLabel_2.TextWrapped = true
- TextLabel_3.Parent = Frame
- TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_3.BackgroundTransparency = 1.000
- TextLabel_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_3.BorderSizePixel = 0
- TextLabel_3.Position = UDim2.new(0, 0, 0.800963104, 0)
- TextLabel_3.Size = UDim2.new(1, 0, 0.0810000002, 0)
- TextLabel_3.Font = Enum.Font.DenkOne
- TextLabel_3.Text = "method 2 is wothout anim"
- TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 14.000
- TextLabel_3.TextWrapped = true
- UICorner.CornerRadius = UDim.new(0, 10)
- UICorner.Parent = Frame
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.BorderSizePixel = 0
- TextButton.Position = UDim2.new(0.0200516358, 0, 0.225476801, 0)
- TextButton.Size = UDim2.new(0.957000017, 0, 0.248999998, 0)
- TextButton.Font = Enum.Font.Bodoni
- TextButton.Text = "Method 1"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextWrapped = true
- UICorner_2.CornerRadius = UDim.new(0, 15)
- UICorner_2.Parent = TextButton
- TextButton_2.Parent = Frame
- TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 255, 17)
- TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.BorderSizePixel = 0
- TextButton_2.Position = UDim2.new(0.0223343, 0, 0.555235505, 0)
- TextButton_2.Size = UDim2.new(0.95667696, 0, 0.248999968, 0)
- TextButton_2.Font = Enum.Font.Bodoni
- TextButton_2.Text = "Method 2"
- TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton_2.TextScaled = true
- TextButton_2.TextSize = 14.000
- TextButton_2.TextWrapped = true
- UICorner_3.CornerRadius = UDim.new(0, 15)
- UICorner_3.Parent = TextButton_2
- TextLabel_4.Parent = Frame
- TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_4.BackgroundTransparency = 1.000
- TextLabel_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_4.BorderSizePixel = 0
- TextLabel_4.Position = UDim2.new(0, 0, 0.474476784, 0)
- TextLabel_4.Size = UDim2.new(1.00000012, 0, 0.0807586685, 0)
- TextLabel_4.Font = Enum.Font.DenkOne
- TextLabel_4.Text = "method 1 is with anim"
- TextLabel_4.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel_4.TextScaled = true
- TextLabel_4.TextSize = 14.000
- TextLabel_4.TextWrapped = true
- -- Scripts:
- local function LVGI_fake_script() -- Frame.Drag Gui Script
- local script = Instance.new('LocalScript', Frame)
- function dragify(Main)
- dragToggle = nil
- dragSpeed = 0.0000000000000001 -- You can edit this.
- dragInput = nil
- dragStart = nil
- dragPos = nil
- function updateInput(input)
- Delta = input.Position - dragStart
- Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Main, TweenInfo.new(.25), {Position = Position}):Play()
- end
- Main.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
- dragToggle = true
- dragStart = input.Position
- startPos = Main.Position
- input.Changed:Connect(function()
- if (input.UserInputState == Enum.UserInputState.End) then
- dragToggle = false
- end
- end)
- end
- end)
- Main.InputChanged:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if (input == dragInput and dragToggle) then
- updateInput(input)
- end
- end)
- end
- dragify(script.Parent)
- end
- coroutine.wrap(LVGI_fake_script)()
- local function SYVP_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- local player = game.Players.LocalPlayer
- local flyingEnabled = false
- local flyHeight = 10 -- Adjust this value to change the flying height
- -- Function to toggle flying
- local function toggleFlying()
- flyingEnabled = not flyingEnabled
- local character = player.Character
- if character then
- local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
- if humanoidRootPart then
- local bodyPosition = humanoidRootPart:FindFirstChildOfClass("BodyPosition")
- if flyingEnabled then
- -- Enable flying
- if not bodyPosition then
- bodyPosition = Instance.new("BodyPosition")
- bodyPosition.Parent = humanoidRootPart
- bodyPosition.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- end
- bodyPosition.Position = humanoidRootPart.Position + Vector3.new(0, flyHeight, 0)
- humanoidRootPart.Anchored = true -- Prevents gravity from pulling the character down
- else
- -- Disable flying
- if bodyPosition then
- bodyPosition:Destroy()
- end
- humanoidRootPart.Anchored = false
- end
- end
- end
- end
- script.Parent.MouseButton1Click:Connect(toggleFlying)
- end
- coroutine.wrap(SYVP_fake_script)()
- local function ATDYX_fake_script() -- TextButton_2.LocalScript
- local script = Instance.new('LocalScript', TextButton_2)
- local player = game.Players.LocalPlayer
- local flyingEnabled = false
- -- Function to toggle flying
- local function toggleFlying()
- flyingEnabled = not flyingEnabled
- if flyingEnabled then
- -- Enable flying
- local character = player.Character
- if character then
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.PlatformStand = true -- Prevents character from falling
- humanoid.Sit = true -- Sit the character (optional, for better flying experience)
- local bodyVelocity = Instance.new("BodyVelocity")
- bodyVelocity.Parent = character.HumanoidRootPart
- bodyVelocity.MaxForce = Vector3.new(400000, 400000, 400000) -- Adjust this for smoother flying
- bodyVelocity.Velocity = Vector3.new(0, 0, 0) -- Start flying with no initial velocity
- end
- end
- else
- -- Disable flying
- local character = player.Character
- if character then
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- humanoid.PlatformStand = false
- humanoid.Sit = false
- local bodyVelocity = character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity")
- if bodyVelocity then
- bodyVelocity:Destroy()
- end
- end
- end
- end
- end
- script.Parent.MouseButton1Click:Connect(toggleFlying)
- end
- coroutine.wrap(ATDYX_fake_script)()
Advertisement
Advertisement