0% found this document useful (0 votes)
51 views7 pages

L0kiDD GUI Creation Script

sucking

Uploaded by

andziaszpompon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views7 pages

L0kiDD GUI Creation Script

sucking

Uploaded by

andziaszpompon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- Tworzymy ScreenGui

local screenGui = [Link]("ScreenGui")


[Link] = "L0kiDD_GUI"
[Link] = [Link]:WaitForChild("PlayerGui")

-- Ramka główna
local frame = [Link]("Frame")
[Link] = [Link](0, 250, 0, 470)
[Link] = [Link](0.5, -125, 0.5, -235)
frame.BackgroundColor3 = [Link](30, 30, 30)
[Link] = 0
[Link] = screenGui
[Link] = true

-- Tytuł
local title = [Link]("TextLabel")
[Link] = [Link](1, 0, 0, 50)
[Link] = [Link](0, 0, 0, 0)
[Link] = 1
[Link] = "L0kiDD GuI"
title.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = 28
[Link] = frame

-- Funkcja do przesuwania ramki


local dragging = false
local dragInput, mousePos, framePos

[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 then
dragging = true
mousePos = [Link]
framePos = [Link]

[Link]:Connect(function()
if [Link] == [Link] then
dragging = false
end
end)
end
end)

[Link]:Connect(function(input)
if [Link] == [Link] then
dragInput = input
end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
if input == dragInput and dragging then
local delta = [Link] - mousePos
[Link] = [Link]([Link], [Link] + delta.X,
[Link], [Link] + delta.Y)
end
end)

-- Zmienne globalne
local flyConnection = nil
local teleportConnection = nil

-- Funkcja do tworzenia przycisków


local function createButton(name, positionY)
local button = [Link]("TextButton")
[Link] = [Link](0, 200, 0, 35)
[Link] = [Link](0.5, -100, 0, positionY)
button.BackgroundColor3 = [Link](50, 50, 50)
button.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = 20
[Link] = name
[Link] = frame

local active = false


button.MouseButton1Click:Connect(function()
active = not active
button.BackgroundColor3 = active and [Link](0, 255, 0) or
[Link](50, 50, 50)

if name == "Invisible" then


local character = [Link]
if character then
if active then
[Link] = nil
else
[Link] = [Link]
end
end
end

if name == "Chaos" then


local lighting = game:GetService("Lighting")
local player = [Link]
if active then
button:SetAttribute("OriginalAmbient", [Link])
button:SetAttribute("OriginalOutdoorAmbient",
[Link])
button:SetAttribute("OriginalBrightness", [Link])
button:SetAttribute("OriginalFogColor", [Link])

[Link] = [Link](150, 50, 50)


[Link] = [Link](200, 50, 50)
[Link] = 0.5
[Link] = [Link](150, 0, 0)

local chaosSound = [Link]("Sound")


[Link] = "rbxassetid://1358993883"
[Link] = 1
[Link] = true
[Link] = [Link]
chaosSound:Play()

button:SetAttribute("ChaosSound", chaosSound)
else
[Link] = button:GetAttribute("OriginalAmbient") or
[Link](128, 128, 128)
[Link] =
button:GetAttribute("OriginalOutdoorAmbient") or [Link](128, 128, 128)
[Link] = button:GetAttribute("OriginalBrightness") or
2
[Link] = button:GetAttribute("OriginalFogColor") or
[Link](192, 192, 192)

local chaosSound = button:GetAttribute("ChaosSound")


if chaosSound then
chaosSound:Stop()
chaosSound:Destroy()
button:SetAttribute("ChaosSound", nil)
end
end
end

if name == "Gravity OFF" then


local player = [Link]
local character = [Link] or [Link]:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")
local rootPart = character:FindFirstChild("HumanoidRootPart")

if not humanoid or not rootPart then return end

if active then
[Link] = true
[Link] = 0

local bodyVelocity = [Link]("BodyVelocity")


[Link] = [Link](100000, 100000, 100000)
bodyVelocity.P = 100000
[Link] = rootPart
button:SetAttribute("BodyVelocity", bodyVelocity)

local bodyPosition = [Link]("BodyPosition")


[Link] = [Link](100000, 100000, 100000)
bodyPosition.P = 100000
[Link] = [Link]
[Link] = rootPart
button:SetAttribute("BodyPosition", bodyPosition)

for _, part in ipairs(character:GetChildren()) do


if part:IsA("BasePart") or part:IsA("MeshPart") then
[Link] = false
end
end
else
[Link] = false
[Link] = 16

local bodyVelocity = button:GetAttribute("BodyVelocity")


if bodyVelocity then
bodyVelocity:Destroy()
button:SetAttribute("BodyVelocity", nil)
end

local bodyPosition = button:GetAttribute("BodyPosition")


if bodyPosition then
bodyPosition:Destroy()
button:SetAttribute("BodyPosition", nil)
end
for _, part in ipairs(character:GetChildren()) do
if part:IsA("BasePart") or part:IsA("MeshPart") then
[Link] = true
end
end
end
end

if name == "Fly" then


local player = [Link]
local character = [Link] or [Link]:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")
local rootPart = character:FindFirstChild("HumanoidRootPart")

if not humanoid or not rootPart then return end

if active then
[Link] = true

[Link] = [Link] + [Link](0, 5, 0)

flyConnection =
game:GetService("RunService").RenderStepped:Connect(function()
local camera = [Link]
local moveDirection = [Link]
local speed = 0.5

if [Link] > 0 then


local moveVector = ([Link] *
moveDirection.Z + [Link] * moveDirection.X)
[Link] = [Link] + moveVector * speed
end

if
game:GetService("UserInputService"):IsKeyDown([Link]) then
[Link] = [Link] + [Link](0, speed,
0)
end
if
game:GetService("UserInputService"):IsKeyDown([Link]) then
[Link] = [Link] - [Link](0, speed,
0)
end
end)
else
if flyConnection then
flyConnection:Disconnect()
flyConnection = nil
end

[Link] = false
end
end

if name == "Speed Hack" then


local player = [Link]
local humanoid = [Link]:FindFirstChildOfClass("Humanoid")
if active then
[Link] = 50
else
[Link] = 16
end
end

if name == "Noc Mode" then


local lighting = game:GetService("Lighting")
if active then
button:SetAttribute("OriginalTimeOfDay", [Link])
button:SetAttribute("OriginalAmbient", [Link])
button:SetAttribute("OriginalOutdoorAmbient",
[Link])
button:SetAttribute("OriginalFogColor", [Link])
button:SetAttribute("OriginalFogEnd", [Link])

[Link] = "[Link]"
[Link] = [Link](30, 30, 30)
[Link] = [Link](15, 15, 15)
[Link] = [Link](0, 0, 0)
[Link] = 500
[Link] = 0.1
else
[Link] = button:GetAttribute("OriginalTimeOfDay")
[Link] = button:GetAttribute("OriginalAmbient")
[Link] =
button:GetAttribute("OriginalOutdoorAmbient")
[Link] = button:GetAttribute("OriginalFogColor")
[Link] = button:GetAttribute("OriginalFogEnd")
end
end

if name == "Ban all" then


if active then
local playerList = game:GetService("Players"):GetPlayers()
for _, p in ipairs(playerList) do
if p ~= [Link] then
[Link] = nil
end
end

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
Text = "Players banned",
Color = [Link](255, 0, 0),
Font = [Link],
FontSize = [Link].Size18
})
else
local playerList = game:GetService("Players"):GetPlayers()
for _, p in ipairs(playerList) do
if p ~= [Link] then
[Link] = [Link]:FindFirstChild([Link])
end
end
end
end

if name == "ClickTP" then


local player = [Link]
local character = [Link] or [Link]:Wait()
local rootPart = character:FindFirstChild("HumanoidRootPart")
local mouse = player:GetMouse()

if not rootPart then return end

if active then
teleportConnection = mouse.Button1Down:Connect(function()
if [Link] then
local targetPosition = [Link].p
[Link] = [Link](targetPosition.X,
targetPosition.Y + 2, targetPosition.Z)
end
end)
else
if teleportConnection then
teleportConnection:Disconnect()
teleportConnection = nil
end
end
end
end)
end

-- Lista przycisków i ich pozycje


local buttons = {"Fly", "Chaos", "Ban all", "Noc Mode", "Speed Hack", "Gravity
OFF", "Invisible", "ClickTP"}
for i, name in ipairs(buttons) do
createButton(name, 50 + (i-1)*45)
end

-- Poprawiony "Ghost Mode"


local ghostButton = [Link]("TextButton")
[Link] = [Link](0, 200, 0, 35)
[Link] = [Link](0.5, -100, 0, 50 + 8*45)
ghostButton.BackgroundColor3 = [Link](50, 50, 50)
ghostButton.TextColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = 20
[Link] = "Ghost Mode"
[Link] = frame
[Link] = false

local ghostModeConnection = nil


local mouse = [Link]:GetMouse()

ghostButton.MouseButton1Click:Connect(function()
[Link] = not [Link]
ghostButton.BackgroundColor3 = [Link] and [Link](0, 255, 0)
or [Link](50, 50, 50)

if [Link] then
ghostModeConnection = mouse.Button1Down:Connect(function()
local target = [Link]
if target and (target:IsA("BasePart") or target:IsA("MeshPart")) and
[Link] ~= "HumanoidRootPart" then
target:SetAttribute("OriginalCanCollide", [Link])
target:SetAttribute("OriginalTransparency", [Link])
[Link] = false
[Link] = 0.5
end
end)
else
if ghostModeConnection then
ghostModeConnection:Disconnect()
ghostModeConnection = nil
end

-- Przywracamy właściwości
for _, part in ipairs([Link]:GetDescendants()) do
if part:IsA("BasePart") or part:IsA("MeshPart") then
if part:GetAttribute("OriginalCanCollide") ~= nil then
[Link] = part:GetAttribute("OriginalCanCollide")
part:SetAttribute("OriginalCanCollide", nil)
end
if part:GetAttribute("OriginalTransparency") ~= nil then
[Link] = part:GetAttribute("OriginalTransparency")
part:SetAttribute("OriginalTransparency", nil)
end
end
end
end
end)

You might also like