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

How do you change a bricks resize on keydown?

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

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

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