Universal Script 📌
2.3k Views
2.0k Executions

Return By Death script

Universal Script 📌
prideSubaru
prideSubaruFirst 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

when u die u go back to the same place where u died.

View Raw
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local isTeleportEnabled = true 
local lastPosition = nil       

local toggleButton = nil

local function updateButtonDisplay()
    if not toggleButton then return end

    if isTeleportEnabled then
        toggleButton.Text = "RETURN BY DEATH: ON"
        toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
        toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
    else
        toggleButton.Text = "RETURN BY DEATH: OFF" 
        toggleButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
        toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
    end
end

local function toggleTeleport()
    isTeleportEnabled = not isTeleportEnabled
    updateButtonDisplay()
    print("Teleport Toggled. Enabled: " .. tostring(isTeleportEnabled))
end

local function setupGUI()
    local gui = Instance.new("ScreenGui")
    gui.Name = "RespawnToggleGui"
    
    gui.ResetOnSpawn = false 

    gui.Parent = LocalPlayer:WaitForChild("PlayerGui")

    toggleButton = Instance.new("TextButton")
    toggleButton.Name = "ToggleTeleport"


Comments

8
Log in to join the conversation. Login
i_love_script's profile picture
i_love_script11 months ago

Your inspiration is Subaru, right?

2
prideSubaru's profile picture
prideSubaruUploader11 months ago

@i_love_script yes

1
mykpat's profile picture
mykpat11 months ago

@i_love_script yes

1
johntheman199's profile picture
johntheman1995 months ago

Does it work in rivals Roblox

1
Scriptgooner's profile picture
Scriptgooner11 months ago

can you make it play THAT sound once u die?

1
Flower_boy's profile picture
Flower_boy11 months ago

Love the return by death script, It works on alot of games.

1
atrix's profile picture
atrix11 months ago

is working ?

1
prideSubaru's profile picture
prideSubaruUploader11 months ago

@atrix yea on lots of games

1

Tags

More universal scripts

See all
Universal Script 📌
309
762
Bumped 53 minutes ago
Universal Script 📌
26.2k
154.0k
Bumped 6 hours ago
Universal Script 📌
6.9k
319.5k
Bumped 6 hours ago
Script hub
29.4k
243.8k
Bumped 6 hours ago
Universal Script 📌
7.1k
227.5k
Bumped 7 hours ago
Script hub
7.0k
101.8k
Bumped 7 hours ago

Script hub

SAGAZx Hub

Script hub
280.2k
190.4k
Bumped 8 hours ago
Key System
Script hub
429
547
Bumped 9 hours ago

Script hub

Blythe