ADVERTISEMENTREMOVE ADS

BetterRefresh Inf Yeild plugin

Universal script
1 year ago
Script preview thumbnail
Script Preview

Description

Yeah i got bored and made this so it just reset and tp back to old pos

Features:

  • Better Refresh No Cap
ADVERTISEMENTREMOVE ADS
44 Lines • 1.43 KiB
Verified
Raw
local Plugin = {
["PluginName"] = "betterrefresh",
["PluginDescription"] = "Plugin Made by 3itx",
["Commands"] = {
["betterrefresh"] = {
["ListName"] = "betterrefresh / br / r",
["Description"] = "Made by 3itx",
["Aliases"] = {"betterrefresh", "br", "r"},
["Function"] = function(args, speaker)
local Players = game:GetService("Players")
-- Variable to store the respawn position
local respawnPosition
-- Function to teleport the player back to the saved position
local function teleportToRespawnPosition()
local player = Players.LocalPlayer
if respawnPosition then
player.Character:WaitForChild("HumanoidRootPart").CFrame = respawnPosition end
end
Players.LocalPlayer.CharacterAdded:Connect(function(character)
-- Save the respawn position when the character is added
if respawnPosition then
teleportToRespawnPosition() end
end)
Players.LocalPlayer.CharacterRemoving:Connect(function(character)
-- Save the respawn position when the character is removed (before respawning)
if character and character:FindFirstChild("HumanoidRootPart") then
respawnPosition = character:WaitForChild("HumanoidRootPart").CFrame
end
end)
local humanoid = Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Health = 0
end
end
}
}
}
return Plugin
ADVERTISEMENTREMOVE ADS

Comments

5 comments
to add a comment
Ha

how tf did you misspell yield 😭

0
0
3i

@HannaeAltae stfu >:(

0
0
Ha

@3itx :( y u so mean

0
0
3i

@HannaeAltae blud u bullying me :(

0
0
Ha

@3itx nuh uh

0
0
ADVERTISEMENTREMOVE ADS