I need some help to be better for script

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

  2. What is the issue? Include screenshots / videos if possible!

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

-- location
script.Parent.Parent.Dummies
regen
= script.Parent.Parent.Dummies.Models
function onClicked()
regen. Parent
= game. ServerStorage
regen["100 HP Dummy"] .Humanoid.Health
= 100
regen["500 HP Dummy"] .Humanoid.Health
500
regen["1000 HP Dummy"] .Humanoid.Health
= 1000
regen["5000 HP Dummy"] . Humanoid.Health
= 5000
regen["10000 HP Dummy"] .Humanoid.Health
= 10000
script.Parent.BrickColor = BrickColor.new ("Dark stone grey")
script.Parent.Display.Label.TextColor3 = Color3.new(1,
1)
script.Disabled
true
script.Parent.Display.Label.Text =
"Loading."
wait (0.5)
script.Parent.Display.Label.Text =
"Loading.
wait (0.5)
script.Parent.Display.Label.Text = "Loading...
wait (0.5)
script.Parent.Display.Label.Text
"Loading."
wait (0.5)
regen. Parent
= location
script.Parent.Display.Label.Text
= usO
script.Parent.Display.Label.TextColor3
= Color3.new(0, 0, 0)
while true
script.Parent.Display.Label.Text
if script.Parent.Display.Label. Text
= script.Parent.Display. Label.Text
no" then
script.Disabled = false
script.Parent .Brickcolor
= BrickColor.new ("Lime green")
script.Parent.Display.Label.Text
= "Regen (Click) "
else
wait (1)
end
end
end

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

I think that maybe will be ideal this is need to be helped from Roblox it’s to do studio
image