Universal Script 📌
642 Views
394 Executions

universal dash made by chatgpt

Universal Script 📌
11 months 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
3.0M
1.1M
Bumped 3 hours ago
Key System

Script hub

#6 today

CanHub V2 200 GAMES KEYLESS

Script hub
164
7
22 hours ago
Script hub
277.5k
165.4k
Bumped 4 hours ago
Key System
Universal Script 📌
6.7k
17.0k
Bumped 4 hours ago
Script hub
1.7M
431.9k
Bumped 5 hours ago
Key System

Script hub

#7 today

Verified script badgeAxonic Hub | 50+ Games Supported

Universal Script 📌
2.5k
7.1k
Bumped 10 hours ago
Script hub
5.9k
86.5k
Bumped 10 hours ago

Script hub

SAGAZx Hub

Script hub
77.7k
274.5k
Bumped 11 hours ago
Key System