#Need help with regen script
1 messages · Page 1 of 1 (latest)
You can bypass it by just adding a health script to your game
Its because youre running on robloxs default health regen
yeah i figured that out after looking at 1 youtube video
glad you got it
not sure lol
while ur here im making a new one which is if i touch this part i get double the jump power but im not sure why its not working
local JumpBoostCooldowns = {}
local COOLDOWN_TIME = 1
workspace.JumpBoostBlock.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid and humanoid.JumpPower < 51 and not JumpBoostCooldowns[character] then
JumpBoostCooldowns[character] = true
local originalJumpPower = humanoid.JumpPower
humanoid.JumpPower = 100
task.wait(10)
humanoid.JumpPower = originalJumpPower
JumpBoostCooldowns[character] = nil
end
end)
there's 2 options for jumping, jumppower or jumpheight, and there's a setting to choose which one to use. you're probably using jumpheight. i dont remember the exact names of the properties, you should look them up in the docs 👍
i fixed it it was just jumpheight
great, so yeah it's exactly what i just said 👍
yeah ai and a bunch of videos said it was jumppower so i was stuck on that for a while