Universal Script 📌
670 Views
453 Executions

universal dash made by chatgpt

Universal Script 📌
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

creates a button that makes you dash forward (it can clip through walls)

View Raw
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
local hrp = char:WaitForChild("HumanoidRootPart")

local DASH_DISTANCE = 10
local DASH_TIME = 0.15 -- smooth dash duration
local COOLDOWN = 1
local DASH_ANIMATION_ID = "rbxassetid://18153798204" -- change if you want

local canDash = true

-- GUI
local gui = Instance.new("ScreenGui")
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 150, 0, 45)
button.Position = UDim2.new(0.5, -75, 0.8, 0)
button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
button.TextColor3 = Color3.new(1, 1, 1)
button.TextScaled = true
button.Text = "Dash"
button.Parent = gui

-- load dash animation
local dashAnim = Instance.new("Animation")
dashAnim.AnimationId = DASH_ANIMATION_ID

local dashTrack = humanoid:LoadAnimation(dashAnim)

-- Smooth dash function
local function dash()
    if not canDash then return end
    canDash = false

    -- play animation
    if dashTrack then
        dashTrack:Play()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
17
3
Approved 38 minutes ago
Universal Script 📌
39
1
Approved 2 hours ago
Script hub
200
1.0k
Bumped 4 hours ago

Script hub

Lunyx Hub

Script hub
120.8k
221.8k
Bumped 4 hours ago
Key System
Script hub
10.7k
202.7k
Bumped 4 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1