Загрузка данных


V

local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")

local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")

local Gui = Instance.new("ScreenGui")
Gui.Name = "DINAXALISE"
Gui.ResetOnSpawn = false
Gui.Parent = PlayerGui

local Main = Instance.new("Frame")
Main.Size = UDim2.new(0, 500, 0, 340)
Main.Position = UDim2.new(0.5, -250, 0.5, -170)
Main.BackgroundColor3 = Color3.fromRGB(20,20,20)
Main.BackgroundTransparency = 0.15
Main.Parent = Gui

Instance.new("UICorner", Main).CornerRadius = UDim.new(0,18)

local Stroke = Instance.new("UIStroke")
Stroke.Color = Color3.fromRGB(255,80,180)
Stroke.Thickness = 2
Stroke.Parent = Main

local Gradient = Instance.new("UIGradient")
Gradient.Color = ColorSequence.new{
	ColorSequenceKeypoint.new(0, Color3.fromRGB(255,80,180)),
	ColorSequenceKeypoint.new(1, Color3.fromRGB(50,50,50))
}
Gradient.Rotation = 45
Gradient.Parent = Main

local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1,0,0,50)
Title.BackgroundTransparency = 1
Title.Text = "DINAXALISE SCR1PTZ"
Title.TextColor3 = Color3.fromRGB(255,255,255)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 26
Title.Parent = Main

local Close = Instance.new("TextButton")
Close.Size = UDim2.new(0,35,0,35)
Close.Position = UDim2.new(1,-45,0,10)
Close.Text = "X"
Close.Font = Enum.Font.GothamBold
Close.TextSize = 18
Close.BackgroundColor3 = Color3.fromRGB(255,70,70)
Close.TextColor3 = Color3.new(1,1,1)
Close.Parent = Main
Instance.new("UICorner", Close)

local OpenButton = Instance.new("TextButton")
OpenButton.Size = UDim2.new(0,120,0,40)
OpenButton.Position = UDim2.new(0,20,1,-60)
OpenButton.Text = "OPEN MENU"
OpenButton.Visible = false
OpenButton.BackgroundColor3 = Color3.fromRGB(255,80,180)
OpenButton.TextColor3 = Color3.new(1,1,1)
OpenButton.Font = Enum.Font.GothamBold
OpenButton.Parent = Gui
Instance.new("UICorner", OpenButton)

Close.MouseButton1Click:Connect(function()
	Main.Visible = false
	OpenButton.Visible = true
end)

OpenButton.MouseButton1Click:Connect(function()
	Main.Visible = true
	OpenButton.Visible = false
end)

local dragging = false
local dragStart
local startPos

Title.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		dragging = true
		dragStart = input.Position
		startPos = Main.Position
	end
end)

UIS.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		dragging = false
	end
end)

UIS.InputChanged:Connect(function(input)
	if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
		local delta = input.Position - dragStart
		Main.Position = UDim2.new(
			startPos.X.Scale,
			startPos.X.Offset + delta.X,
			startPos.Y.Scale,
			startPos.Y.Offset + delta.Y
		)
	end
end)

local function CreateToggle(name, posY)
	local Holder = Instance.new("Frame")
	Holder.Size = UDim2.new(0,440,0,40)
	Holder.Position = UDim2.new(0,30,0,posY)
	Holder.BackgroundTransparency = 1
	Holder.Parent = Main

	local Label = Instance.new("TextLabel")
	Label.Size = UDim2.new(0.7,0,1,0)
	Label.BackgroundTransparency = 1
	Label.Text = name
	Label.Font = Enum.Font.Gotham
	Label.TextColor3 = Color3.new(1,1,1)
	Label.TextXAlignment = Enum.TextXAlignment.Left
	Label.Parent = Holder

	local Toggle = Instance.new("TextButton")
	Toggle.Size = UDim2.new(0,70,0,28)
	Toggle.Position = UDim2.new(1,-70,0.5,-14)
	Toggle.Text = "OFF"
	Toggle.BackgroundColor3 = Color3.fromRGB(60,60,60)
	Toggle.TextColor3 = Color3.new(1,1,1)
	Toggle.Parent = Holder
	Instance.new("UICorner", Toggle)

	local state = false

	Toggle.MouseButton1Click:Connect(function()
		state = not state
		Toggle.Text = state and "ON" or "OFF"
		Toggle.BackgroundColor3 =
			state and Color3.fromRGB(255,80,180)
			or Color3.fromRGB(60,60,60)
	end)
end

CreateToggle("FOV Display",70)
CreateToggle("Practice Overlay",120)

local SliderLabel = Instance.new("TextLabel")
SliderLabel.Size = UDim2.new(0,200,0,30)
SliderLabel.Position = UDim2.new(0,30,0,180)
SliderLabel.BackgroundTransparency = 1
SliderLabel.Text = "Smoothness: 50"
SliderLabel.TextColor3 = Color3.new(1,1,1)
SliderLabel.Font = Enum.Font.Gotham
SliderLabel.Parent = Main

local Bar = Instance.new("Frame")
Bar.Size = UDim2.new(0,250,0,8)
Bar.Position = UDim2.new(0,30,0,220)
Bar.BackgroundColor3 = Color3.fromRGB(50,50,50)
Bar.Parent = Main
Instance.new("UICorner", Bar)

local Fill = Instance.new("Frame")
Fill.Size = UDim2.new(0.5,0,1,0)
Fill.BackgroundColor3 = Color3.fromRGB(255,80,180)
Fill.Parent = Bar
Instance.new("UICorner", Fill)

local draggingSlider = false

Bar.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		draggingSlider = true
	end
end)

UIS.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		draggingSlider = false
	end
end)

UIS.InputChanged:Connect(function(input)
	if draggingSlider and input.UserInputType == Enum.UserInputType.MouseMovement then
		local percent = math.clamp(
			(input.Position.X - Bar.AbsolutePosition.X)
			/ Bar.AbsoluteSize.X,
			0,1
		)

		Fill.Size = UDim2.new(percent,0,1,0)
		SliderLabel.Text =
			"Smoothness: "..math.floor(percent*100)
	end
end)

local CurrentKey = Enum.KeyCode.Q

local KeybindButton = Instance.new("TextButton")
KeybindButton.Size = UDim2.new(0,180,0,40)
KeybindButton.Position = UDim2.new(0,30,0,260)
KeybindButton.Text = "Keybind: Q"
KeybindButton.BackgroundColor3 = Color3.fromRGB(255,80,180)
KeybindButton.TextColor3 = Color3.new(1,1,1)
KeybindButton.Font = Enum.Font.GothamBold
KeybindButton.Parent = Main
Instance.new("UICorner", KeybindButton)

local waiting = false

KeybindButton.MouseButton1Click:Connect(function()
	waiting = true
	KeybindButton.Text = "Press a Key..."
end)

UIS.InputBegan:Connect(function(input,gpe)
	if gpe then return end

	if waiting and input.KeyCode ~= Enum.KeyCode.Unknown then
		CurrentKey = input.KeyCode
		KeybindButton.Text = "Keybind: "..CurrentKey.Name
		waiting = false
	end
end)

local Lighting = game:GetService("Lighting")

local uiLocked = false

CreateToggle("LOCK UI", 310)

-- Lock button
local LockButton = Instance.new("TextButton")
LockButton.Size = UDim2.new(0,180,0,40)
LockButton.Position = UDim2.new(0,250,0,260)
LockButton.Text = "UI: UNLOCKED"
LockButton.BackgroundColor3 = Color3.fromRGB(255,80,180)
LockButton.TextColor3 = Color3.new(1,1,1)
LockButton.Font = Enum.Font.GothamBold
LockButton.Parent = Main
Instance.new("UICorner", LockButton)

LockButton.MouseButton1Click:Connect(function()
	uiLocked = not uiLocked
	LockButton.Text = uiLocked and "UI: LOCKED" or "UI: UNLOCKED"
end)

Title.InputBegan:Connect(function(input)
	if uiLocked then return end

	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		dragging = true
		dragStart = input.Position
		startPos = Main.Position
	end
end)

local FogEnabled = false

local FogToggle = Instance.new("TextButton")
FogToggle.Size = UDim2.new(0,180,0,40)
FogToggle.Position = UDim2.new(0,30,0,310)
FogToggle.Text = "FOG OFF"
FogToggle.BackgroundColor3 = Color3.fromRGB(60,60,60)
FogToggle.TextColor3 = Color3.new(1,1,1)
FogToggle.Parent = Main
Instance.new("UICorner", FogToggle)

FogToggle.MouseButton1Click:Connect(function()
	FogEnabled = not FogEnabled

	if FogEnabled then
		Lighting.FogColor = Color3.fromRGB(255,80,180)
		Lighting.FogStart = 0
		Lighting.FogEnd = 150
		FogToggle.Text = "FOG ON"
	else
		Lighting.FogEnd = 100000
		FogToggle.Text = "FOG OFF"
	end
end)

local FogLabel = Instance.new("TextLabel")
FogLabel.Size = UDim2.new(0,200,0,30)
FogLabel.Position = UDim2.new(0,250,0,310)
FogLabel.BackgroundTransparency = 1
FogLabel.Text = "Fog Distance: 150"
FogLabel.TextColor3 = Color3.new(1,1,1)
FogLabel.Parent = Main

local fogDistance = 150

fogDistance = math.floor(percent * 1000)

Lighting.FogEnd = fogDistance
FogLabel.Text = "Fog Distance: "..fogDistance

local Colors = {
	Color3.fromRGB(255,80,180),
	Color3.fromRGB(100,150,255),
	Color3.fromRGB(255,255,255),
	Color3.fromRGB(255,200,80)
}

local colorIndex = 1

local ColorButton = Instance.new("TextButton")
ColorButton.Size = UDim2.new(0,120,0,35)
ColorButton.Position = UDim2.new(0,350,0,310)
ColorButton.Text = "Fog Color"
ColorButton.Parent = Main

ColorButton.MouseButton1Click:Connect(function()
	colorIndex += 1

	if colorIndex > #Colors then
		colorIndex = 1
	end

	Lighting.FogColor = Colors[colorIndex]
end)

local ShowHitboxes = false

local function UpdateHitboxes()
	for _, player in ipairs(game.Players:GetPlayers()) do
		if player.Character then
			for _, part in ipairs(player.Character:GetChildren()) do
				if part:IsA("BasePart") then

					local box = part:FindFirstChild("DebugBox")

					if ShowHitboxes then
						if not box then
							box = Instance.new("SelectionBox")
							box.Name = "DebugBox"
							box.Adornee = part
							box.Parent = part
						end
					else
						if box then
							box:Destroy()
						end
					end

				end
			end
		end
	end
end

local HitboxButton = Instance.new("TextButton")
HitboxButton.Size = UDim2.new(0,180,0,40)
HitboxButton.Position = UDim2.new(0,30,0,360)
HitboxButton.Text = "SHOW HITBOXES"
HitboxButton.Parent = Main

HitboxButton.MouseButton1Click:Connect(function()
	ShowHitboxes = not ShowHitboxes
	UpdateHitboxes()
end)