Tweening broke all my buttons, no errors need help

basically I attempted to size a part and now I’m getting just no errors, I can’t seem to fix it
any help?

  local cancel = script.Parent.Frame.Cancel
    local Detonate = script.Parent.Frame.Detonate
    local lower = script.Parent.Frame.Lower
    local Core = script.Parent.Parent.Parent.Core

    --------------------

     Lowered = false



    --------------------

    local TweenService=game:GetService("TweenService")
    lower.MouseButton1Down:Connect(function()
    for i,v in pairs(script.Parent.Parent.Parent.Core:GetChildren()) do
        TweenService:Create(v,TweenInfo.new(3,Enum.EasingStyle.Linear),{CFrame = CFrame.new(0, 0.75, 0)}):Play()
    script.Parent.Parent.Parent.Core.Core.BrickColor = BrickColor.new("Bright red")
    Lowered = true
    print(Lowered)



    Core.Core.Close:Play()
    end
    end)

     
    cancel.MouseButton1Down:Connect(function()
        if Lowered then
    for i,v in pairs(script.Parent.Parent.Parent.Core:GetChildren()) do
        TweenService:Create(v,TweenInfo.new(3,Enum.EasingStyle.Linear),{CFrame = CFrame.new(0, 1.75, 0)}):Play()
    script.Parent.Parent.Parent.Core.Core.BrickColor = BrickColor.new("Toothpaste")


    Core.Core.Open:Play()
    Lowered=false
    print(Lowered)
    end
    end
    end)
Detonate.MouseButton1Down:Connect(function()
if Lowered then
local part = Instance.new(“Part”,Core)
part.Name=“boom”
part.BrickColor = BrickColor.new(“White”)
part.CanCollide=false
part.Anchored=true
part.Material = Enum.Material.Neon
TweenService:Create(part,TweenInfo.new(3,Enum.EasingStyle.Linear),{Size=Vector3.new(500,500,500}):Play()

for i,c in pairs(game.Players:GetChildren()) do
wait(3)
c:Kick(“C//: CORE_TERMINATED”)
end

Lowered=false
end
end)

The area I think is breaking them

Detonate.MouseButton1Down:Connect(function()
if Lowered then
local part = Instance.new(“Part”,Core)
part.Name=“boom”
part.BrickColor = BrickColor.new(“White”)
part.CanCollide=false
part.Anchored=true
part.Material = Enum.Material.Neon
TweenService:Create(part,TweenInfo.new(3,Enum.EasingStyle.Linear),{Size=Vector3.new(500,500,500}):Play()

for i,c in pairs(game.Players:GetChildren()) do
wait(3)
c:Kick(“C//: CORE_TERMINATED”)
end

Lowered=false
end
end)

Hi! so I tried it out in studio and it only took one simple fix to do so right here

{Size=Vector3.new(500,500,500}):Play()

you aren’t properly closing your table and perimeters which is a really quick and simple fix

{Size=Vector3.new(500,500,500)})

Hope this helps!

1 Like

Worked, I never noticed that. Appreciated!

1 Like