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

Time-Taking Pickaxe to mine?

Asked by 10 years ago

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

Log in to vote
0
Answered by
Kozero 120
10 years ago

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.

0
Okay, but one question. Do I put this as a seperate script IN the hammer, or would I put the script in Workspace> blockhaak2 1 — 10y
Ad

Answer this question