Universal Script πŸ“Œ
4.2k Views
353 Executions

Reset button Beta testing

Universal Script πŸ“Œ
2 years 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

Reset

Updates

  1. Script edited: Create script

View Raw
local ScreenGui = Instance.new("ScreenGui")
local ResetButton = Instance.new("TextButton")
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer

ScreenGui.Parent = game.CoreGui
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

ResetButton.Name = "ResetButton"
ResetButton.Parent = ScreenGui
ResetButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
ResetButton.Position = UDim2.new(0.5, -75, 0.9, -25)
ResetButton.Size = UDim2.new(0, 150, 0, 50)
ResetButton.Font = Enum.Font.GothamBold
ResetButton.Text = "Reset Character"
ResetButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ResetButton.TextSize = 14.000

UserInputService.InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.V then
        UserInputService.MouseBehavior = 
            UserInputService.MouseBehavior == Enum.MouseBehavior.Default 
            and Enum.MouseBehavior.LockCenter 
            or Enum.MouseBehavior.Default
    end
end)

ResetButton.MouseButton1Click:Connect(function()
    local character = player.Character
    if character then
        local humanoid = character:FindFirstChild("Humanoid")
        if humanoid then
            humanoid.Health = 0
        end
        task.wait(0.1)
        player:LoadCharacter()
    end
end)



Comments

2
Log in to join the conversation. Login
logs_7's profile picture
logs_72 years ago(edited)

Thank you for making this script. I was stuck and could not reset no matter what I tried. It was frustrating, but now, with your script, I can finally reset. It took me 18 years just to reset, thank you for making this script.

1
Nooby's profile picture
NoobyUploader2 years ago(edited)

ur welcome :)

-1

More universal scripts

See all
Universal Script πŸ“Œ
2.3k
24.6k
Bumped 40 minutes ago
Universal Script πŸ“Œ
6.5k
30.8k
Bumped 3 hours ago
Script hub
17.0k
112.3k
Bumped 3 hours ago
Key System

Script hub

Kronos New

Script hub
5.6M
1.2M
Bumped 7 hours ago
Key System
Universal Script πŸ“Œ
1.9k
6.8k
Bumped 9 hours ago
Script hub
23.4k
5.0k
Bumped 10 hours ago
Key System
Paid
High QualityΒ Offering
Script hub
4.1M
547.7k
Bumped 11 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*