
2.7k Views
14 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
X
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
0Log in to join the conversation. Login
No comments yet. Be the first!







