#I'm new, and i don't understand anything

24 messages · Page 1 of 1 (latest)

noble stirrup
#

I want these stones to do damage, i have tried too copi a script from a kill block, and that only worked on a test stone. So please help

fringe yoke
#

di you need it to work for multiple

#

you can add a script to all of them

#

you can use a hit function i think

#

im making a script rn

noble stirrup
#

ty

fringe yoke
#

here

#
script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        hit.Parent.Humanoid.Health = nil
    end
end)```
#

normal script in every kill brick

#

mark the post as solved

#

@noble stirrup

noble stirrup
#

Thank you so much

noble stirrup
alpine quest
noble stirrup
#

ty :))

meager axle
#

studio** You are now Level 2! **studio

alpine quest
#

ill also add comments so you actually understand what the code does because you should try to understand at least some of the code if you are copying it from another place

noble stirrup
#

ok

alpine quest
#
script.Parent.Touched:Connect(function(hit)
    if debounce == false then
        if hit.Parent:FindFirstChild("Humanoid") then
            debounce = true -- cooldown is running
            hit.Parent.Humanoid.Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
            wait(0.5) -- change this to the cooldown you want
            debounce = false --cooldown is finished running and the part can deal damage again
        end
    end
end)


#

oops

#

it looks disorganized in discord

noble stirrup
#

Ty

#

idk if im just dumb but it doesn't work. Im done for today lol