I want to write a script when I press a key, the part will appear and enlarge to 1 specific size
You can insert a Local Script
Into StarterPlayerScripts
so when a key is pressed it can enlarge the part
function onKeyPress(inputObject, gameProcessedEvent) if not gameProcessedEvent then if inputObject.KeyCode == Enum.KeyCode.X then -- Change X to the key you would like to press workspace.Test.Size = Vector3.new(10,10,10) -- Change 10,10,10 to the size you would like and Test to the name of your part end end end game:GetService("UserInputService").InputBegan:connect(onKeyPress)
ok i think this might help you:-
local Part = game.Workspace.Part local ClickDetector = Part.ClickDetector ClickDetector.MouseClick:Connect(function() Part.Size = Part.Size + vector3.new(1,1,1) -- change the length, breadth and height as per your needs end)
Hope this helps you!!