Universal Script 📌
702 Views
1.6k Executions

loop reset

Universal Script 📌
gamzercat
gamzercatFirst script
2 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

auto reset loop ur welcome

View Raw
local player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")

local running = false
local savedPosition = UDim2.new(0.5, -110, 0.5, -65)

local function resetPlr()
	if player.Character then
		player.Character:BreakJoints()
	end
end

local function createGUI()
	local oldGui = player.PlayerGui:FindFirstChild("ResetLoopGUI")

	-- Save the old GUI position before deleting it
	if oldGui then
		local oldFrame = oldGui:FindFirstChild("Frame")
		if oldFrame then
			savedPosition = oldFrame.Position
		end
		oldGui:Destroy()
	end

	local screenGui = Instance.new("ScreenGui")
	screenGui.Name = "ResetLoopGUI"
	screenGui.ResetOnSpawn = false
	screenGui.Parent = player:WaitForChild("PlayerGui")

	local frame = Instance.new("Frame")
	frame.Name = "Frame"
	frame.Size = UDim2.new(0, 220, 0, 130)
	frame.Position = savedPosition
	frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
	frame.Active = true
	frame.Parent = screenGui

	Instance.new("UICorner", frame)

	local startButton = Instance.new("TextButton")


Comments

1
Log in to join the conversation. Login
gamzercat's profile picture
gamzercatUploader3 weeks ago

if u use this script like it or comment smt lmk

1

More universal scripts

See all
Universal Script 📌
14
0
Approved 9 minutes ago
Script hub
2.9k
13.8k
Bumped 18 minutes ago

Script hub

TLMenu

Universal Script 📌
37
5
Approved 52 minutes ago
Script hub
43
2
Approved 1 hour ago
Key System

Script hub

Plak New