My problem is that when I increase the size of a block, it also moves location!
By request, I added the code:
function onTouched(part) part:Destroy() end game.ServerStorage.CoreTemp.Changed:connect(function() if game.ServerStorage.CoreTemp.Value == 10000 then for i=1, 2048 do game.Workspace.Boom.Size = Vector3.new(i,i,i) game.Workspace.Boom.Position = Vector3.new(0,0,0) game.Workspace.Boom.Touched:connect(onTouched) wait() end end end)
NEVER use Position
when changing the Position
of a part. Instead, use CFrame
. Using Position
can give you unexpected results.
function onTouched(part) part:Destroy() end game.ServerStorage.CoreTemp.Changed:connect(function() if game.ServerStorage.CoreTemp.Value == 10000 then for i=1, 2048 do game.Workspace.Boom.Size = Vector3.new(i,i,i) game.Workspace.Boom.CFrame = CFrame.new(0,0,0) game.Workspace.Boom.Touched:connect(onTouched) wait() end end end)
This should work.