Back to Scripts
Subaru script
ScriptBlox
Universal
Free
Game: Universal Script 📌
45
Views
0
Likes
0
Dislikes
Ronaldo_messi
offline
Features
Just a Subaru script
Script Code
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local CoreGui = game:GetService("CoreGui")
local TweenService = game:GetService("TweenService")
local SoundService = game:GetService("SoundService")
local checkpoint = nil
local lastAutoSave = 0
local autoSaveEnabled = true
local isCharacterDead = false
if CoreGui:FindFirstChild("SubaruScript") then
CoreGui:FindFirstChild("SubaruScript"):Destroy()
end
local s = Instance.new("ScreenGui")
s.Name = "SubaruScript"
s.Parent = CoreGui
local warningFrame = Instance.new("Frame")
warningFrame.Size = UDim2.new(1, 0, 0, 40)
warningFrame.Position = UDim2.new(0, 0, 0, 0)
warningFrame.BackgroundColor3 = Color3.new(0.3, 0, 0)
warningFrame.BackgroundTransparency = 0.2
warningFrame.BorderSizePixel = 0
warningFrame.ZIndex = 100
warningFrame.Visible = false
warningFrame.Parent = s
local warningText = Instance.new("TextLabel")
warningText.Text = "⚠️ SUBARU SCRIPT ACTIVE ⚠️"
warningText.Size = UDim2.new(1, 0, 1, 0)
warningText.Position = UDim2.new(0, 0, 0, 0)
warningText.BackgroundTransparency = 1
warningText.TextColor3 = Color3.new(1, 0.3, 0.3)
warningText.Font = Enum.Font.GothamBlack
warningText.TextSize = 24
warningText.ZIndex = 101
warningText.Parent = warningFrame
local startupOverlay = Instance.new("Frame")
startupOverlay.Size = UDim2.new(1, 0, 1, 0)
startupOverlay.Position = UDim2.new(0, 0, 0, 0)
startupOverlay.BackgroundColor3 = Color3.new(0,0,0)
startupOverlay.BackgroundTransparency = 0
startupOverlay.ZIndex = 90
startupOverlay.Parent = s
local title1 = Instance.new("TextLabel")
title1.Text = "SUBARU"
title1.Size = UDim2.new(1, 0, 0.2, 0)
title1.Position = UDim2.new(0, 0, 0.3, 0)
title1.BackgroundTransparency = 1
title1.TextColor3 = Color3.new(1,0.3,0.3)
title1.Font = Enum.Font.GothamBlack
title1.TextSize = 70
title1.ZIndex = 91
title1.Parent = startupOverlay
local title2 = Instance.new("TextLabel")
title2.Text = "SCRIPT"
title2.Size = UDim2.new(1, 0, 0.2, 0)
title2.Position = UDim2.new(0, 0, 0.45, 0)
title2.BackgroundTransparency = 1
title2.TextColor3 = Color3.new(1,1,1)
title2.Font = Enum.Font.GothamBlack
title2.TextSize = 50
title2.ZIndex = 91
title2.Parent = startupOverlay
local playButton = Instance.new("TextButton")
playButton.Text = "▶ PLAY"
playButton.Size = UDim2.new(0.3, 0, 0.1, 0)
playButton.Position = UDim2.new(0.35, 0, 0.7, 0)
playButton.BackgroundColor3 = Color3.new(0.8, 0.1, 0.1)
playButton.TextColor3 = Color3.new(1,1,1)
playButton.Font = Enum.Font.GothamBold
playButton.TextSize = 30
playButton.ZIndex = 91
playButton.Parent = startupOverlay
local deathOverlay = Instance.new("Frame")
deathOverlay.Size = UDim2.new(1, 0, 1, 0)
deathOverlay.Position = UDim2.new(0, 0, 0, 0)
deathOverlay.BackgroundColor3 = Color3.new(0.3,0.3,0.3)
deathOverlay.BackgroundTransparency = 1
deathOverlay.Visible = false
deathOverlay.ZIndex = 50
deathOverlay.Parent = s
local deathText = Instance.new("TextLabel")
deathText.Text = "💀 DIED 💀"
deathText.Size = UDim2.new(1, 0, 0.2, 0)
deathText.Position = UDim2.new(0, 0, 0.4, 0)
deathText.BackgroundTransparency = 1
deathText.TextColor3 = Color3.new(1,0.3,0.3)
deathText.Font = Enum.Font.GothamBlack
deathText.TextSize = 50
deathText.TextTransparency = 1
deathText.ZIndex = 51
deathText.Parent = deathOverlay
local rewindOverlay = Instance.new("Frame")
rewindOverlay.Size = UDim2.new(1, 0, 1, 0)
rewindOverlay.Position = UDim2.new(0, 0, 0, 0)
rewindOverlay.BackgroundColor3 = Color3.new(0.5,0.2,0.7)
rewindOverlay.BackgroundTransparency = 1
rewindOverlay.Visible = false
rewindOverlay.ZIndex = 60
rewindOverlay.Parent = s
local rewindText = Instance.new("TextLabel")
rewindText.Text = "🕓 RETURN BY DEATH 🕓"
rewindText.Size = UDim2.new(1, 0, 0.2, 0)
rewindText.Position = UDim2.new(0, 0, 0.4, 0)
rewindText.BackgroundTransparency = 1
rewindText.TextColor3 = Color3.new(1,1,1)
rewindText.Font = Enum.Font.GothamBlack
rewindText.TextSize = 30
rewindText.TextTransparency = 1
rewindText.ZIndex = 61
rewindText.Parent = rewindOverlay
local function showDeathEffect()
deathOverlay.Visible = true
deathOverlay.BackgroundTransparency = 1
deathText.TextTransparency = 1
TweenService:Create(deathOverlay, TweenInfo.new(0.3), {BackgroundTransparency = 0.3}):Play()
TweenService:Create(deathText, TweenInfo.new(0.3), {TextTransparency = 0}):Play()
task.wait(1.5)
TweenService:Create(deathOverlay, TweenInfo.new(0.3), {BackgroundTransparency = 1}):Play()
TweenService:Create(deathText, TweenInfo.new(0.3), {TextTransparency = 1}):Play()
task.wait(0.3)
deathOverlay.Visible = false
end
local function showRewindEffect()
rewindOverlay.Visible = true
rewindOverlay.BackgroundTransparency = 1
rewindText.TextTransparency = 1
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://91846437771243"
sound.Volume = 0.7
sound.Parent = SoundService
sound:Play()
TweenService:Create(rewindOverlay, TweenInfo.new(0.3), {BackgroundTransparency = 0.5}):Play()
TweenService:Create(rewindText, TweenInfo.new(0.3), {TextTransparency = 0}):Play()
task.wait(1.5)
TweenService:Create(rewindOverlay, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
TweenService:Create(rewindText, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
task.wait(0.5)
rewindOverlay.Visible = false
end
local function saveCheckpoint()
local c = Player.Character
if c and c:FindFirstChild("HumanoidRootPart") then
checkpoint = c.HumanoidRootPart.CFrame
print("[SUBARU] Checkpoint saved")
return true
end
return false
end
playButton.MouseButton1Click:Connect(function()
TweenService:Create(startupOverlay, TweenInfo.new(1), {BackgroundTransparency = 1}):Play()
TweenService:Create(title1, TweenInfo.new(1), {TextTransparency = 1}):Play()
TweenService:Create(title2, TweenInfo.new(1), {TextTransparency = 1}):Play()
TweenService:Create(playButton, TweenInfo.new(1), {BackgroundTransparency = 1, TextTransparency = 1}):Play()
task.wait(1)
startupOverlay.Visible = false
warningFrame.Visible = true
saveCheckpoint()
print("[SUBARU] Script activated")
end)
local function autoSaveLoop()
while true do
task.wait(1)
if autoSaveEnabled and warningFrame.Visible then
local timeSinceLastSave = tick() - lastAutoSave
if timeSinceLastSave >= 30 then
if saveCheckpoint() then
lastAutoSave = tick()
end
end
end
end
end
spawn(autoSaveLoop)
local function checkHealth()
while true do
task.wait(0.1)
local char = Player.Character
if char then
local humanoid = char:FindFirstChild("Humanoid")
if humanoid then
if humanoid.Health <= 0 and not isCharacterDead then
isCharacterDead = true
showDeathEffect()
elseif humanoid.Health > 0 and isCharacterDead then
isCharacterDead = false
end
end
end
end
end
spawn(checkHealth)
local lastCharacter = Player.Character
local function checkRespawn()
while true do
task.wait(0.1)
local currentChar = Player.Character
if currentChar ~= lastCharacter then
if lastCharacter ~= nil and checkpoint then
task.wait(0.5)
showRewindEffect()
if currentChar and currentChar:FindFirstChild("HumanoidRootPart") then
currentChar.HumanoidRootPart.CFrame = checkpoint
print("[SUBARU] Auto-respawned at checkpoint")
end
end
lastCharacter = currentChar
end
end
end
spawn(checkRespawn)
Comments (0)
Please login to comment
Login with Discord
Loading comments...