Universal Script 📌
2.7k Views
14 Executions

X

Universal Script 📌
vobBox
vobBoxPublished 10
2 years 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

X

View Raw
local player = game.Players.LocalPlayer

-- متغيرات عامة
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

-- السرعات
local speedValues = {30, 16, 8}
local pressCount = 0
local tiredTextLabel = nil
local timer = 0  -- متغير لحساب الوقت
local isTired = false  -- لمنع تكرار حالة التعب

-- وظيفة لإعادة تهيئة المتغيرات عند إعادة إحياء اللاعب
local function resetCharacter()
    character = player.Character or player.CharacterAdded:Wait()
    humanoid = character:WaitForChild("Humanoid")

    -- إزالة أي نص تعب قديم
    if tiredTextLabel then
        tiredTextLabel:Destroy()
        tiredTextLabel = nil
    end

    pressCount = 0
    timer = 0
    isTired = false
end

-- الدالة الخاصة بالضغط على X
local function onKeyPress(input)
    if input.KeyCode == Enum.KeyCode.X then
        -- زيادة عدد الضغطات
        pressCount = pressCount + 1

        -- تغيير السرعة حسب عدد الضغطات
        humanoid.WalkSpeed = speedValues[(pressCount - 1) % #speedValues + 1]

        -- عند الوصول إلى الحد الأقصى من السرعات، يبدأ العداد
        if pressCount == #speedValues and timer == 0 then


Comments

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

More universal scripts

See all
Universal Script 📌
783
5.0k
Bumped 2 hours ago
Universal Script 📌
6.2k
54.4k
Bumped 2 hours ago
Universal Script 📌
2.4k
2.1k
Bumped 3 hours ago
Key System
Script hub
14.4k
75.0k
Bumped 5 hours ago
Universal Script 📌
97
99
Approved 6 hours ago
Key System
Universal Script 📌
97
120
Approved 7 hours ago