Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do you make a tool able to use once? throwing wise?

Asked by 3 years ago

how do you make it where once you throw the tool you cant pick it up again or it cant be use if you throw at another player they cant pick it up?

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

maybe try using debounce

local db = true

and after function

if db then -- if db is true then script can go on (if statement is checking if value between if .. then is true)

    db = false -- here we set db to false so now if statement will stop because db isnt true
Ad

Answer this question