#What went wrong?

1 messages · Page 1 of 1 (latest)

vivid quartz
#

this is just a gui button and textbox where you can input the amount you want to heal yourself and click a button to be healed. i cant figure out why the text in the textbox is always counted as nil.

reef cipher
vivid quartz
#

how did i miss that 😭

#

i moved the health variable to the function for the exact same reason

reef cipher
#

happens to us all

vivid quartz
#

oh great even more issues

reef cipher
#

what

vivid quartz
#

what even is this

#

is like the regen script in the player character bugging it

jade perch
#

If you want to regen

reef cipher
#

probably cuz you touched the damage part multiple times and it has a .spawn function that delays the damage or something lol

jade perch
#

You can also put a negative nulber with takedamage

vivid quartz
vivid quartz
#

no yeah it works

#

bad damage part

jade perch
jade perch
#

Its just another option

vivid quartz
#

does this like stop you from taking damage from it

jade perch
#

But if its work now

#

Its fine

vivid quartz
#

let me test

jade perch
vivid quartz
reef cipher
#

also is that your artwork on the gui?

vivid quartz
#

lol

jade perch
# vivid quartz i see

Since i guess the number we put as argument in take damage is substracted to the health, but if its a negative its like health - (-number) wich is like health + number

#

But what u did is totally fine

#

So its working now right?

vivid quartz
#

yes

jade perch
#

What was the error ? Like poe said ?

vivid quartz
#

i think ill use the same textbox for the damage button too and just make both of them grab values from the textbox

vivid quartz
reef cipher
vivid quartz
distant wolf
#

Give up on scripting

regal isle