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 TextButton1 = Instance.new("TextButton")
- local TextBox1 = Instance.new("TextBox")
- local TextButton2 = Instance.new("TextButton")
- local TextBox2 = Instance.new("TextBox")
- local TextButton3 = Instance.new("TextButton")
- local TextBox3 = Instance.new("TextBox")
- local TextBox4 = Instance.new("TextLabel")
- local TextButton4 = Instance.new("TextButton")
- local TextBox5 = Instance.new("TextBox")
- local TextButton5 = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Frame.Position = UDim2.new(0.214480877, 0, 0.125, 0)
- Frame.Size = UDim2.new(0, 165, 0, 526)
- Frame.Active = true
- Frame.Draggable = true
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(218, 31, 31)
- TextLabel.Position = UDim2.new(0, 0, 0.999131179, 0)
- TextLabel.Size = UDim2.new(0, 165, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "A V.2"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextSize = 14.000
- TextLabel.Draggable = true
- TextButton1.Name = "TextButton1"
- TextButton1.Parent = Frame
- TextButton1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton1.Position = UDim2.new(0, 0, 0.110536719, 0)
- TextButton1.Size = UDim2.new(0, 165, 0, 50)
- TextButton1.Font = Enum.Font.SourceSans
- TextButton1.Text = "Set JumpPower"
- TextButton1.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton1.TextSize = 14.000
- TextButton1.MouseButton1Down:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = TextBox1.Text
- end)
- TextBox1.Name = "TextBox1"
- TextBox1.Parent = Frame
- TextBox1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox1.Position = UDim2.new(0, 0, 0.0131578948, 0)
- TextBox1.Size = UDim2.new(0, 165, 0, 50)
- TextBox1.Font = Enum.Font.SourceSans
- TextBox1.Text = "JumpPower here"
- TextBox1.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox1.TextSize = 14.000
- TextButton2.Name = "TextButton2"
- TextButton2.Parent = Frame
- TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton2.Position = UDim2.new(0, 0, 0.29288938, 0)
- TextButton2.Size = UDim2.new(0, 165, 0, 50)
- TextButton2.Font = Enum.Font.SourceSans
- TextButton2.Text = "Set WalkSpeed"
- TextButton2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton2.TextSize = 14.000
- TextButton2.MouseButton1Down:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = TextBox2.Text
- end)
- TextBox2.Name = "TextBox2"
- TextBox2.Parent = Frame
- TextBox2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox2.Position = UDim2.new(0, 0, 0.201904796, 0)
- TextBox2.Size = UDim2.new(0, 165, 0, 50)
- TextBox2.Font = Enum.Font.SourceSans
- TextBox2.Text = "-- WakSpeed here"
- TextBox2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox2.TextSize = 14.000
- TextButton3.Name = "TextButton3"
- TextButton3.Parent = Frame
- TextButton3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton3.Position = UDim2.new(0, 0, 0.479781723, 0)
- TextButton3.Size = UDim2.new(0, 165, 0, 50)
- TextButton3.Font = Enum.Font.SourceSans
- TextButton3.Text = "Set HipHeight"
- TextButton3.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton3.TextSize = 14.000
- TextButton3.MouseButton1Down:Connect(function()
- game.Players.LocalPlayer.Character.Humanoid.HipHeight = TextBox3.Text
- end)
- TextBox3.Name = "TextBox3"
- TextBox3.Parent = Frame
- TextBox3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox3.Position = UDim2.new(0, 0, 0.390164867, 0)
- TextBox3.Size = UDim2.new(0, 165, 0, 50)
- TextBox3.Font = Enum.Font.SourceSans
- TextBox3.Text = "-- HipHeight here"
- TextBox3.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox3.TextSize = 14.000
- TextBox4.Name = "TextBox4"
- TextBox4.Parent = Frame
- TextBox4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox4.Position = UDim2.new(0, 0, 0.575531528, 0)
- TextBox4.Size = UDim2.new(0, 165, 0, 50)
- TextBox4.Font = Enum.Font.SourceSans
- TextBox4.Text = "false"
- TextBox4.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox4.TextSize = 14.000
- TextButton4.Name = "TextButton4"
- TextButton4.Parent = Frame
- TextButton4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton4.Position = UDim2.new(0, 0, 0.667048135, 0)
- TextButton4.Size = UDim2.new(0, 165, 0, 50)
- TextButton4.Font = Enum.Font.SourceSans
- TextButton4.Text = "Toggle Noclip"
- TextButton4.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton4.TextSize = 14.000
- noclip = false
- game:GetService('RunService').Stepped:Connect (function()
- if noclip then
- TextBox4.Text = "true"
- TextBox4.BackgroundColor3 = Color3.new(0,255,0)
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- end
- end)
- TextButton4.MouseButton1Down:Connect (function()
- noclip = not noclip
- if TextBox4.Text == "true" then
- TextBox4.Text = "false"
- TextBox4.BackgroundColor3 = Color3.new(255,0,0)
- game.Players.LocalPlayer.Character.Head.CanCollide = true
- game.Players.LocalPlayer.Character.Torso.CanCollide = true
- end
- end)
- TextBox5.Name = "TextBox5"
- TextBox5.Parent = Frame
- TextBox5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox5.Position = UDim2.new(0, 0, 0.765164867, 0)
- TextBox5.Size = UDim2.new(0, 165, 0, 50)
- TextBox5.Font = Enum.Font.SourceSans
- TextBox5.Text = "-- Gravity here"
- TextBox5.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox5.TextSize = 14.000
- TextButton5.Name = "TextButton5"
- TextButton5.Parent = Frame
- TextButton5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton5.Position = UDim2.new(0, 0, 0.859781723, 0)
- TextButton5.Size = UDim2.new(0, 165, 0, 50)
- TextButton5.Font = Enum.Font.SourceSans
- TextButton5.Text = "Set Gravity"
- TextButton5.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton5.TextSize = 14.000
- TextButton5.MouseButton1Down:Connect(function()
- game.Workspace.Gravity = TextBox5.Text
- end)
- local StarterGui = game:GetService("StarterGui")
- StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "Hello, Thank you for using my GUI!";
- Color = Color3.fromRGB(255,0,0);
- Font = Enum.Font.SourceSansBold;TextSize = 20
- })
- local StarterGui = game:GetService("StarterGui")
- StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "Press V to toggle the gui on and off";
- Color = Color3.fromRGB(222,102,0);
- Font = Enum.Font.SourceSansBold;TextSize = 15
- })
- local toggle = true -- false is Off; true is On
- function onKeyPress(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- if toggle == false then
- toggle = true
- Frame.Visible = true -- INSERT Making GUI Visible
- else
- toggle = false
- Frame.Visible = false -- INSERT making GUI Invisible
- end
- end
- end
- game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.V)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement