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

Time-Taking Pickaxe to mine?

Okay, so I'm making a survival game based off of terraria.

I have a delete tool, like from Welcome to Roblox Building.

I want to make it so it takes about 2 seconds to mine a block, instead of instant mine. I've tried editing the script with wait(2), but it didn't work.

Any suggestions?

1 answer

Use the Numeric for.Here's an example

for i=0,1,0.1 do
Workspace.Part.Transparency = i
end

This will change the properties value by 0.1 per frame which is like 0.3 seconds until it reaches 1.

1 comment

0

Okay, but one question. Do I put this as a seperate script IN the hammer, or would I put the script in Workspace>

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