As the title says what else do you need to know?
Easy, go to the Players Tab in the Explorer section of your game in studio, go to its properties and change the value RespawnTime to a lower number than the default number, which is 5.
For example, if you change the RespawnTime number to 1, the player will load in that much time. It will load faster.
The number in the RespawnTime section represents the time on how much you have to wait to spawn back into the game.
I think he means the health regeneration not the respawn time
Here this should work for you
oh my bad
-- Gradually regenerates the Humanoid's Health over time.
local REGEN_RATE = 1/100 -- Regenerate this fraction of MaxHealth per second.
local REGEN_STEP = 1 -- Wait this long between each regeneration step.
--------------------------------------------------------------------------------
local Character = script.Parent
local Humanoid = Character:WaitForChild'Humanoid'
--------------------------------------------------------------------------------
while true do
while Humanoid.Health < Humanoid.MaxHealth do
local dt = wait(REGEN_STEP)
local dh = dt*REGEN_RATE*Humanoid.MaxHealth
Humanoid.Health = math.min(Humanoid.Health + dh, Humanoid.MaxHealth)
end
Humanoid.HealthChanged:Wait()
end
Isn’t it better to use
Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
end)
Otherwise u have an infinite Loop.
Its just a modified version of the health script made by roblox to make the regen time faster
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.