작동 중
SCRIPT Medium Mode
스크립트 코드
Lua
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local stamina = 100
local maxStamina = 100
local staminaDrain = 20
local staminaRegen = 15
local isSprinting = false
local canSprint = true
local sprintCoroutine = nil
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "SprintHUD"
screenGui.Parent = player:WaitForChild("PlayerGui")
local sprintButton = Instance.new("TextButton")
sprintButton.Size = UDim2.new(0, 80, 0, 80)
sprintButton.Position = UDim2.new(1, -100, 0.5, -40)
sprintButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
sprintButton.BackgroundTransparency = 0.3
sprintButton.Text = "SPRINT"
sprintButton.TextColor3 = Color3.new(1, 1, 1)
sprintButton.TextSize = 14
sprintButton.Font = Enum.Font.SourceSansBold
sprintButton.BorderSizePixel = 2
sprintButton.BorderColor3 = Color3.new(1, 1, 1)
sprintButton.Parent = screenGui
local buttonCorner = Instance.new("UICorner")
buttonCorner.CornerRadius = UDim.new(1, 0)
buttonCorner.Parent = sprintButton
local staminaFrame = Instance.new("Frame")
staminaFrame.Size = UDim2.new(0, 80, 0, 10)
staminaFrame.Position = UDim2.new(1, -100, 0.5, 45)
staminaFrame.BackgroundColor3 = Color3.new(0, 0, 0)
staminaFrame.BackgroundTransparency = 0.5
staminaFrame.BorderSizePixel = 1
staminaFrame.BorderColor3 = Color3.new(1, 1, 1)
staminaFrame.Parent = screenGui
local staminaBar = Instance.new("Frame")
staminaBar.Size = UDim2.new(1, 0, 1, 0)
staminaBar.BackgroundColor3 = Color3.new(0, 1, 0)
staminaBar.BorderSizePixel = 0
staminaBar.Parent = staminaFrame
local staminaText = Instance.new("TextLabel")
staminaText.Size = UDim2.new(1, 0, 1, 0)
staminaText.Position = UDim2.new(0, 0, 0, -12)
staminaText.BackgroundTransparency = 1
staminaText.Text = "100%"
staminaText.TextColor3 = Color3.new(1, 1, 1)
staminaText.TextSize = 10
staminaText.Font = Enum.Font.SourceSansBold
staminaText.Parent = staminaFrame
local function updateBar()
staminaBar.Size = UDim2.new(stamina / maxStamina, 0, 1, 0)
staminaText.Text = math.floor(stamina) .. "%"
if stamina <= 30 then
staminaBar.BackgroundColor3 = Color3.new(1, 0, 0)
sprintButton.BackgroundColor3 = Color3.new(0.5, 0, 0)
elseif stamina <= 60 then
staminaBar.BackgroundColor3 = Color3.new(1, 1, 0)
sprintButton.BackgroundColor3 = Color3.new(0.5, 0.5, 0)
else
staminaBar.BackgroundColor3 = Color3.new(0, 1, 0)
sprintButton.BackgroundColor3 = Color3.new(0, 0.5, 0)
end
end
spawn(function()
while true do
wait(0.1)
if not isSprinting and stamina < maxStamina then
stamina = math.min(maxStamina, stamina + staminaRegen / 10)
updateBar()
end
if stamina >= maxStamina and not canSprint then
canSprint = true
sprintButton.BackgroundTransparency = 0.3
end
end
end)
local function stopSprint()
if isSprinting then
isSprinting = false
humanoid.WalkSpeed = 16
sprintButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
sprintButton.BackgroundTransparency = 0.3
sprintButton.Text = "SPRINT"
if sprintCoroutine then
coroutine.close(sprintCoroutine)
sprintCoroutine = nil
end
end
end
local function startSprint()
if isSprinting then return end
if canSprint and stamina > 0 then
isSprinting = true
humanoid.WalkSpeed = 30
sprintButton.BackgroundColor3 = Color3.new(0, 0.8, 0)
sprintButton.BackgroundTransparency = 0
sprintButton.Text = "SPRINTING"
sprintCoroutine = coroutine.create(function()
while isSprinting and stamina > 0 do
wait(0.1)
stamina = math.max(0, stamina - staminaDrain / 10)
updateBar()
if stamina <= 0 then
isSprinting = false
canSprint = false
humanoid.WalkSpeed = 16
sprintButton.BackgroundColor3 = Color3.new(0.3, 0, 0)
sprintButton.BackgroundTransparency = 0.5
sprintButton.Text = "RECHARGE"
break
end
end
end)
coroutine.resume(sprintCoroutine)
end
end
sprintButton.MouseButton1Down:Connect(startSprint)
sprintButton.MouseButton1Up:Connect(stopSprint)
sprintButton.TouchTap:Connect(function()
if isSprinting then stopSprint() else startSprint() end
end)
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gp)
if gp then return end
if input.KeyCode == Enum.KeyCode.LeftShift then startSprint() end
end)
UserInputService.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift then stopSprint() end
end)
spawn(function()
while true do
wait(0.5)
pcall(function()
for _, v in pairs(workspace:GetDescendants()) do
if v:IsA("BasePart")
and not v:IsDescendantOf(player.Character)
and not v:FindFirstAncestorOfClass("Tool")
and not v:FindFirstAncestorOfClass("Accessory") then
v.Material = Enum.Material.Slate
v.BrickColor = BrickColor.new("Dark stone grey")
for _, c in pairs(v:GetChildren()) do
if c:IsA("Texture") or c:IsA("Decal") then c:Destroy() end
end
end
if v.Name:lower():find("door") then
for _, child in pairs(v:GetDescendants()) do
if child:IsA("BillboardGui") or string.lower(child.Name):find("sign") then
child:Destroy()
end
end
end
end
end)
end
end)
local lighting = game:GetService("Lighting")
local normalFogStart = 0
local normalFogEnd = 100
local normalFogColor = Color3.fromRGB(10,10,10)
local normalBrightness = 1
local normalAmbient = Color3.fromRGB(5,5,5)
local normalClockTime = 0
local darkFogEnd = 15
local darkBrightness = 1
local darkAmbient = Color3.fromRGB(0,0,0)
lighting.FogStart = normalFogStart
lighting.FogEnd = normalFogEnd
lighting.FogColor = normalFogColor
lighting.Brightness = normalBrightness
lighting.ClockTime = normalClockTime
lighting.OutdoorAmbient = normalAmbient
coroutine.wrap(function()
while true do
task.wait(100)
lighting.FogEnd = darkFogEnd
lighting.Brightness = darkBrightness
lighting.OutdoorAmbient = darkAmbient
pcall(function()
require(game.Players.LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game).caption("The Light Power Has Been Turned Off ",true)
end)
task.wait(10)
lighting.FogStart = normalFogStart
lighting.FogEnd = normalFogEnd
lighting.FogColor = normalFogColor
lighting.Brightness = normalBrightness
lighting.ClockTime = normalClockTime
lighting.OutdoorAmbient = normalAmbient
end
end)()
pcall(function()
for _, name in pairs({"Ambience_Hotel", "Ambience_Hotel2"}) do
local sound = workspace:FindFirstChild(name)
if sound then sound:Destroy() end
end
end)
workspace["The Damned"]:Play()
workspace["The Damned"].SoundId = "rbxassetid://9113731836"
workspace["The Damned"].Pitch = 1
workspace["The Damned"].Looped = true
workspace["The Damned"].Volume = 5
function ambiance()
while true do
local ambiencefirst = Instance.new("Sound", workspace)
ambiencefirst.SoundId = "rbxassetid://12229501"
ambiencefirst.Pitch = 5
ambiencefirst:Play()
wait(120)
end
end댓글 (0)
- 첫 댓글을 작성하세요.
자주 묻는 질문
- SCRIPT Medium Mode 스크립트는 어떻게 사용하나요?
- 위의 스크립트 코드를 복사하고, Roblox 엑시큐터를 열어 붙여넣은 후, 게임 중에 실행을 누르세요. 스크립트가 실행되면 기능이 즉시 활성화됩니다.
- SCRIPT Medium Mode 스크립트는 무료인가요?
- 네. 이 스크립트는 무료로 복사하고 사용할 수 있습니다. 키 시스템을 사용하는 경우, 링크를 통해 무료로 키를 받으세요.
- SCRIPT Medium Mode 스크립트는 안전한가요?
- 전체 소스 코드가 이 페이지에 표시되어 실행 전에 정확히 무엇을 하는지 확인할 수 있습니다. 항상 신뢰할 수 있는 엑시큐터를 사용하고, 스크립트 사용은 Roblox 이용 약관에 위반되므로 자의적 위험으로 사용하세요.
- SCRIPT Medium Mode에 호환되는 엑시큐터는?
- 이 스크립트는 대부분의 인기 Roblox 엑시큐터에서 작동합니다. 기기에 맞는 신뢰할 수 있는 무료 또는 유료 엑시큐터를 찾으려면 엑시큐터 페이지를 확인하세요.