Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NOCLIPGUI = Instance.new("ScreenGui", game.CoreGui)
- local MainGUI = Instance.new("Frame", NOCLIPGUI)
- local ONGUI = Instance.new("Frame", MainGUI)
- local ONTEXT = Instance.new("TextLabel", ONGUI)
- local OFFGUI = Instance.new("Frame", MainGUI)
- local OFFTEXT = Instance.new("TextLabel", OFFGUI)
- local NOCLIPTOGGLE = Instance.new("TextButton", MainGUI)
- NOCLIPGUI.Name = "NOCLIPGUI"
- NOCLIPGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- MainGUI.Name = "MainGUI"
- MainGUI.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- MainGUI.BorderColor3 = Color3.fromRGB(0, 0, 0)
- MainGUI.BorderSizePixel = 2
- MainGUI.Position = UDim2.new(.690335274, 0, .306801736, 0)
- MainGUI.Size = UDim2.new(0, 20, 0, 40)
- MainGUI.Draggable = true
- MainGUI.Active = true
- ONGUI.Name = "ONGUI"
- ONGUI.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ONGUI.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ONGUI.BorderSizePixel = 0
- ONGUI.Size = UDim2.new(0, 20, 0, 20)
- ONGUI.Visible = false
- ONTEXT.Name = "ONTEXT"
- ONTEXT.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
- ONTEXT.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ONTEXT.BorderSizePixel = 0
- ONTEXT.Size = UDim2.new(0, 20, 0, 20)
- ONTEXT.Font = Enum.Font.Cartoon
- ONTEXT.Text = "ON"
- ONTEXT.TextColor3 = Color3.fromRGB(0, 0, 0)
- ONTEXT.TextScaled = true
- ONTEXT.TextSize = 14
- ONTEXT.TextWrapped = true
- OFFGUI.Name = "OFFGUI"
- OFFGUI.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- OFFGUI.BorderColor3 = Color3.fromRGB(0, 0, 0)
- OFFGUI.BorderSizePixel = 0
- OFFGUI.Position = UDim2.new(0, 0, .5, 0)
- OFFGUI.Size = UDim2.new(0, 20, 0, 20)
- OFFGUI.Visible = true
- OFFTEXT.Name = "OFFTEXT"
- OFFTEXT.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- OFFTEXT.BorderColor3 = Color3.fromRGB(0, 0, 0)
- OFFTEXT.BorderSizePixel = 0
- OFFTEXT.Size = UDim2.new(0, 20, 0, 20)
- OFFTEXT.Font = Enum.Font.Cartoon
- OFFTEXT.Text = "OFF"
- OFFTEXT.TextColor3 = Color3.fromRGB(0, 0, 0)
- OFFTEXT.TextScaled = true
- OFFTEXT.TextSize = 14
- OFFTEXT.TextWrapped = true
- NOCLIPTOGGLE.Name = "NOCLIPTOGGLE"
- NOCLIPTOGGLE.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- NOCLIPTOGGLE.BackgroundTransparency = 1
- NOCLIPTOGGLE.BorderColor3 = Color3.fromRGB(0, 0, 0)
- NOCLIPTOGGLE.BorderSizePixel = 0
- NOCLIPTOGGLE.Size = UDim2.new(0, 20, 0, 40)
- NOCLIPTOGGLE.Font = Enum.Font.Cartoon
- NOCLIPTOGGLE.Text = ""
- NOCLIPTOGGLE.TextColor3 = Color3.fromRGB(0, 0, 0)
- NOCLIPTOGGLE.TextScaled = true
- NOCLIPTOGGLE.TextSize = 14
- NOCLIPTOGGLE.TextWrapped = true
- ME = game:GetService("Players").LocalPlayer
- game:GetService("RunService").Stepped:connect(function()
- if noclip then
- ME.Character.Humanoid:ChangeState(11)
- end
- end)
- noclip = false
- NOCLIPTOGGLE.MouseButton1Click:connect(function()
- if noclip == false then
- noclip = true
- ONGUI.Visible = true
- OFFGUI.Visible = false
- elseif noclip == true then
- noclip = false
- ONGUI.Visible = false
- OFFGUI.Visible = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement