so in my last question i said this was my last part of the titan shifting thing im doing. so there were 2 peces of lightings that i did and the last one was supposed to get bigger and bigger. and the loop will break after it gets deleted(idk if the loop will stop after it is deleted so if you could also fix that it would be nice)
game.ReplicatedStorage.titanshifted.OnServerEvent:Connect(function(player) wait(3) local shift1 = game.ReplicatedStorage.shift1:Clone() local shift2 = game.ReplicatedStorage.shift2:Clone() shift1.Parent = game.Workspace:FindFirstChild(player.name).HumanoidRootPart shift1.Position = shift1.Parent.Position wait(1) game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift1"):Remove() shift2.Parent = game.Workspace:FindFirstChild(player.name).HumanoidRootPart shift2.Position = shift2.Parent.Position wait(3) game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2"):Remove() end) game.ReplicatedStorage.titanshifted.OnServerEvent:Connect(function(player) wait(1) while true do wait(0.2) game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2").Size = game.Workspace:FindFirstChild(player.name).HumanoidRootPart:WaitForChild("shift2") + Vector3(1,1,1) if end end)
At line 18, you did vector3 instead it should be
Vector3.new(1,1,1)