You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
A part that hurts. -
What is the issue? Include screenshots / videos if possible!
It does more damage on the first hit. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have a gui which is like a class select thing. The class selector adds hats to the player and changes their walkspeed/health/jumpheight. The starter character had 1 health so it used to just insta kill but I changed the health for the starter character and then this issue popped up.
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!
Note: I am new to scripting.
local debounce = false
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= "Zombie" then
if not debounce then
debounce = true
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 3
wait(math.random(1,2))
debounce = false
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.