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


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)