Universal Script 📌
2.3k Views
1.5k 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
johntheman1994 months ago

Does it work in rivals Roblox

1
Scriptgooner's profile picture
Scriptgooner10 months ago

can you make it play THAT sound once u die?

1
Flower_boy's profile picture
Flower_boy10 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
Script hub
1.6M
2.0M
Bumped 37 minutes ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
268.9k
114.4k
Bumped 1 hour ago
Key System
Script hub
171.1k
1.4M
Bumped 4 hours ago
Key System
Script hub
16.5k
3.2k
Bumped 6 hours ago
Key System
Paid
Script hub
17.2k
87.3k
Bumped 6 hours ago