Question 1: How do I make a clickable GUI?
Question 2: How do I make said clickable GUI affect a part/union?
make a event in replicated storage called buttonclicked or something
in your gui button
local repstorage = game.replicatedstorage local buttonevent = repstorage.FindFirstChild("buttonclicked") function buttonClicked() buttonevent:FireServer() end button.Activated:Connect(buttonClicked())
and then in your part
local repstorage = game.replicatedstorage local buttonevent = repstorage.FindFirstChild("buttonclicked") function changePart() part = script.Parent part.Transparency = 1 part.Size = Vector3(1000,1000,1000) print("resized part") end buttonevent.OnServerEvent:Connect(changePart())
i havent actually tested this so if it works im a genius