Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can I have Values in tools?

Hi,

I am trying to create a tool that once clicked the duration of time the mouse button was down would translate to power. This is a soccer game, so power will translate to the ball with bodyforces, but I can't figure out anyway to make it work. Any help will be greatly appreciated.

Thank You, ForeverNotts

2 comments

0

If you're trying to get a duration of time value, I would suggest looking into tick.

0

Thank You

1 answer

Yes. There is no reason you couldn't.

But consider using Lua variables instead of Value objects. Value objects make code much harder to read, and generally raise the complexity of code needlessly.

This discussion is preserved as it was. New answers, comments, and votes are closed.