How to tell how long your not touching a part

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!

    I want to achieve how long im not touching a part in my roblox game so that i can make a sword fighting game.

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

robloxapp-20220729-1641346.wmv (974.1 KB)

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

I tried using remotes and tried to change my code a bit but it wont print or the leaderstat value wont change every second.

If you know how to script this please tell me how to do it. Thanks!

you could make the character take damage every second or however long you want them to take damage until they are touching the part again.

Any luck?

(Character limit bruh)

Nope it just says Attempt to index nil with character

can you give me your code?

char limit

Oh i just had the varable in the wrong place in my script i fixed it and it works now!

1 Like