When I click a part, I want a part's size to grow until the size reaches 20,20,20. (JUTS KEEPS GROWING).
Also, when I click on the part, the gui does not pop up.
game.Players.PlayerAdded:connect(function(plr)
d = true
script.Parent.ClickDetector.MouseClick:connect(function()
if d == true then
d = false
while true do
local X = script.Parent.Parent.Parent.Block.Part.Size.X
local Y = script.Parent.Parent.Parent.Block.Part.Size.Y
local Z = script.Parent.Parent.Parent.Block.Part.Size.Z
script.Parent.Parent.Parent.Block.Part.Size = Vector3.new(X+.1,Y+.1,Z+.1)
wait()
if script.Parent.Parent.Parent.Block.Part.Size = Vector3.new(20,20,20) then
break
end
end
local Gui = script.Parent.Gui
Gui:Clone().Parent = plr.PlayerGui
wait(2)
plr.PlayerGui.Gui:remove()
d = true
end
end)
end)
