Hi, I want my part to scale itself by using a button.
I have tried many scripts but it doesn't work.
If you could do it for me that'd be great!
First place two parts in workspace: One named 'Button' One named 'Part'
Then, inside 'Button' place a Click Detector, and inside the click detector place a Script
Inside that script, first set a variable for the part.
local part = game.Workspace.Part
Next connect MouseClick
script.Parent.ClickDetector.MouseClick:Connect(function () --Scaling local originalSize = part.Size part.Size = originalSize + Vector3.new(10,0,0) end)
The Vector3.new(10,0,0) is for you to decide. Changing the (x, y, z) of the Vector3 to whatever you choose or however you want to scale it per click.
Closed as Non-Descriptive by User#23365 and nilVector
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?