ADVERTISEMENTREMOVE ADS
FE Dash script
47,446 views
Universal script•
4 months ago

Script Preview
Description
Made it becauze why not it may even be useful sometimes
Features:
- dash
ADVERTISEMENTREMOVE ADS
167 Lines • 5.38 KiB
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Debris = game:GetService("Debris")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local screenGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
screenGui.Name = "DashGUI"
screenGui.ResetOnSpawn = false
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 250, 0, 170)
frame.Position = UDim2.new(0, 100, 0, 100)
frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = screenGui
local topBar = Instance.new("Frame")
topBar.Size = UDim2.new(1, 0, 0, 25)
topBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
topBar.BorderSizePixel = 0
topBar.Parent = frame
local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -50, 1, 0)
title.Position = UDim2.new(0, 5, 0, 0)
title.Text = "FE Dash"
title.TextColor3 = Color3.new(1, 1, 1)
title.BackgroundTransparency = 1
title.Font = Enum.Font.SourceSansBold
title.TextSize = 16
title.TextXAlignment = Enum.TextXAlignment.Left
title.Parent = topBar
local closeBtn = Instance.new("TextButton")
closeBtn.Size = UDim2.new(0, 20, 0, 20)
closeBtn.Position = UDim2.new(1, -25, 0, 2)
closeBtn.Text = "X"
closeBtn.TextColor3 = Color3.new(1, 1, 1)
closeBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
closeBtn.Font = Enum.Font.SourceSansBold
closeBtn.TextSize = 14
closeBtn.Parent = topBar
local minimizeBtn = Instance.new("TextButton")
minimizeBtn.Size = UDim2.new(0, 20, 0, 20)
minimizeBtn.Position = UDim2.new(1, -50, 0, 2)
minimizeBtn.Text = "-"
minimizeBtn.TextColor3 = Color3.new(1, 1, 1)
minimizeBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
minimizeBtn.Font = Enum.Font.SourceSansBold
minimizeBtn.TextSize = 14
minimizeBtn.Parent = topBar
local contentFrame = Instance.new("Frame")
contentFrame.Size = UDim2.new(1, 0, 1, -25)
contentFrame.Position = UDim2.new(0, 0, 0, 25)
contentFrame.BackgroundTransparency = 1
contentFrame.Name = "Content"
contentFrame.Parent = frame
local dashButton = Instance.new("TextButton")
dashButton.Size = UDim2.new(0, 210, 0, 30)
dashButton.Position = UDim2.new(0.5, -105, 0, 100)
dashButton.BackgroundColor3 = Color3.fromRGB(255, 75, 75)
dashButton.Text = "Dash"
dashButton.TextColor3 = Color3.new(1, 1, 1)
dashButton.Font = Enum.Font.SourceSansBold
dashButton.TextSize = 20
dashButton.Parent = contentFrame
local sliderLabel = Instance.new("TextLabel")
sliderLabel.Size = UDim2.new(0, 210, 0, 20)
sliderLabel.Position = UDim2.new(0.5, -105, 0, 5)
sliderLabel.BackgroundTransparency = 1
sliderLabel.Text = "Distance (studs)"
sliderLabel.TextColor3 = Color3.new(1, 1, 1)
sliderLabel.Font = Enum.Font.SourceSans
sliderLabel.TextSize = 14
sliderLabel.Parent = contentFrame
local slider = Instance.new("Frame")
slider.Size = UDim2.new(0, 210, 0, 10)
slider.Position = UDim2.new(0.5, -105, 0, 25)
slider.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
slider.BorderSizePixel = 0
slider.Parent = contentFrame
local fill = Instance.new("Frame")
fill.BackgroundColor3 = Color3.fromRGB(255, 75, 75)
fill.Size = UDim2.new(0.5, 0, 1, 0)
fill.BorderSizePixel = 0
fill.Parent = slider
local inputBox = Instance.new("TextBox")
inputBox.Size = UDim2.new(0, 210, 0, 20)
inputBox.Position = UDim2.new(0.5, -105, 0, 45)
inputBox.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
inputBox.TextColor3 = Color3.new(1, 1, 1)
inputBox.Text = "500"
inputBox.ClearTextOnFocus = false
inputBox.PlaceholderText = "Enter distance (1-1000)"
inputBox.Font = Enum.Font.SourceSans
inputBox.TextSize = 14
inputBox.Parent = contentFrame
local distanceValue = 500
local function updateSliderFromInput()
local num = tonumber(inputBox.Text)
if num then
distanceValue = math.clamp(math.floor(num), 1, 1000)
inputBox.Text = tostring(distanceValue)
fill.Size = UDim2.new(distanceValue / 1000, 0, 1, 0)
end
end
inputBox.FocusLost:Connect(updateSliderFromInput)
slider.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local moveConn
moveConn = RunService.RenderStepped:Connect(function()
local mouse = UIS:GetMouseLocation().X
local pos = math.clamp(mouse - slider.AbsolutePosition.X, 0, slider.AbsoluteSize.X)
fill.Size = UDim2.new(0, pos, 1, 0)
distanceValue = math.floor((pos / slider.AbsoluteSize.X) * 999) + 1
inputBox.Text = tostring(distanceValue)
end)
UIS.InputEnded:Wait()
if moveConn then moveConn:Disconnect() end
end
end)
local function dash()
local char = LocalPlayer.Character
if not char then return end
local hum = char:FindFirstChildWhichIsA("Humanoid")
local root = char:FindFirstChild("HumanoidRootPart")
if not hum or not root then return end
local bv = Instance.new("BodyVelocity")
bv.Velocity = root.CFrame.LookVector * distanceValue + Vector3.new(0, 2, 0)
bv.MaxForce = Vector3.new(1e6, 1e6, 1e6)
bv.P = 1e6
bv.Parent = root
Debris:AddItem(bv, 0.2)
end
dashButton.MouseButton1Click:Connect(dash)
closeBtn.MouseButton1Click:Connect(function()
screenGui:Destroy()
end)
local minimized = false
minimizeBtn.MouseButton1Click:Connect(function()
minimized = not minimized
contentFrame.Visible = not minimized
if minimized then
frame.Size = UDim2.new(0, 250, 0, 25)
else
frame.Size = UDim2.new(0, 250, 0, 170)
end
end)
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS







Comments