#HELPP

1 messages · Page 1 of 1 (latest)

smoky aspen
#

so i coded a wand that shoots fireballs right... i chagned the dmg so it does 15 hearts... but now EVERY projectile does 15 hearts, how do i fix that. ```on right click:
If player's tool is {firewand}:
if any:
{cooldown::%player%} is not set
{cooldown::%player%} is less than now
then:
set {cooldown::%player%} to now + 0.0001 seconds
shoot fireball from player

    else:
        send "&cYour wand is on cooldown!" to player

on projectile hit:
projectile is a fireball:
set {_damage} to 15
damage victim by {_damage}```

round bridge
smoky aspen
#

every projectile

#

wind charges...

#

arrows..

#

i specificly said projectil is fireball:

#

why dont it work?

round bridge
#
    if player's tool is {firewand}:
        if any:
            {cooldown::%player%} is not set 
            {cooldown::%player%} is less than now
        then:
            set {cooldown::%player%} to now + 0.0001 seconds
            set {_projectile} to a fireball
            set name of {_projectile} to "fireball-wand"
            shoot {_projectile} from player
           
        else:
            send "&cYour wand is on cooldown!" to player

on projectile hit:
    if name of projectile is "fireball-wand":
        set {_damage} to 15
        damage victim by {_damage}```
try that
round bridge
smoky aspen
#

oh wait lemem try

#

alr

#

so projectiles dont do 15 dmg anymore

#

but the fireball does 0

round bridge
#

idk that should work

you could try
set victim's health to victim's health - 15

#

or something