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

How do you change a bricks resize on keydown?

Asked by 9 years ago

So I made this script that makes a brick resize on keydown. But problem is it's not doing it. Is there a specific way to resize a brick like this?

Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()

function Out(key)
    if key == "q" then
        for i = 0,4.46,0.1 do
        script.Parent.Blade.Size = Vector3.new(0.3, i, 0.3) --[[ If this is wrong please tell me the way to fix it.]]--
        wait(0.1)
    end
end

Mouse.KeyDown:connect(Out)

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

There's nothing wrong with that script, any output? And is this a localscript?

Ad

Answer this question