local plyrs = game:GetService("Players")
local uis = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local localplayer = plyrs.LocalPlayer
local UI = Instance.new("ScreenGui")
UI.Name = "xuqor"
UI.ResetOnSpawn = false
UI.Parent = game:GetService("CoreGui")
local main_frame = Instance.new("Frame")
main_frame.Parent = UI
main_frame.Size = UDim2.new(0, 200, 0, 80)
main_frame.Position = UDim2.new(0.5, -100, 0.1, 0)
main_frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
main_frame.BorderSizePixel = 0
main_frame.Active = true
local str = Instance.new("UIStroke")
str.Parent = main_frame
str.Color = Color3.fromRGB(45, 45, 45)
local crnr = Instance.new("UICorner")
crnr.Parent = main_frame
crnr.CornerRadius = UDim.new(0, 8)
local txt = Instance.new("TextLabel")
txt.Parent = main_frame
txt.Size = UDim2.new(1, 0, 0, 25)
txt.BackgroundTransparency = 1
txt.Text = "xuqor"
txt.TextColor3 = Color3.fromRGB(255, 255, 255)
txt.Font = Enum.Font.GothamMedium
txt.TextSize = 14
local button1 = Instance.new("TextButton")
button1.Parent = main_frame
button1.Size = UDim2.new(0, 160, 0, 35)
button1.Position = UDim2.new(0.5, -80, 0, 32)
button1.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
button1.Text = 'Status: OFF'
button1.TextColor3 = Color3.fromRGB(255, 80, 80)
button1.TextSize = 13
button1.Font = Enum.Font.GothamBold
local crnr2 = Instance.new("UICorner")
crnr2.Parent = button1
crnr2.CornerRadius = UDim.new(0, 6)
local is_dragging = false
local drag_start = nil
local start_pos = nil
main_frame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
is_dragging = true
drag_start = input.Position
start_pos = main_frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
is_dragging = false
end
end)
end
end)
main_frame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
if is_dragging == true then
local delta = input.Position - drag_start
main_frame.Position = UDim2.new(start_pos.X.Scale, start_pos.X.Offset + delta.X, start_pos.Y.Scale, start_pos.Y.Offset + delta.Y)
end
end
end)
local isOn = false
button1.MouseButton1Down:Connect(function()
if isOn == false then
isOn = true
button1.Text = "Status: ON"
button1.TextColor3 = Color3.fromRGB(80, 255, 80)
button1.BackgroundColor3 = Color3.fromRGB(25, 35, 25)
else
isOn = false
button1.Text = "Status: OFF"
button1.TextColor3 = Color3.fromRGB(255, 80, 80)
button1.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
end
end)
local waitTime = false
runService.Heartbeat:Connect(function()
if isOn == true and waitTime == false then
local char = localplayer.Character
if char ~= nil then
local hum = char:FindFirstChild("Humanoid")
local root = char:FindFirstChild("HumanoidRootPart")
if hum and root then
if uis:IsKeyDown(Enum.KeyCode.Space) or hum.Jump == true then
waitTime = true
local p = Instance.new("Part")
p.Parent = workspace
p.Size = Vector3.new(4, 0.5, 4)
p.CFrame = root.CFrame * CFrame.new(0, -3.1, 0)
p.Anchored = true
p.Transparency = 1
game:GetService("Debris"):AddItem(p, 0.03)
task.wait(0.03)
waitTime = false
end
end
end
end
end)
Comments
No comments yet
Be the first to share your thoughts!