The Sinking Ship in Lighting keeps Loading and Loading... here's the script am using??
game.Workspace.PartL.Transparency = 0
game.Workspace.PartL.CanCollide = true
wait(10)
while true do
game.Workspace.PartL.Transparency = 1
game.Workspace.PartL.CanCollide = false
game.Lighting.SinkingShip:clone().Parent = game.Workspace --clone
print("SS Loaded!")
wait(5)
end
target = CFrame.new(14.6, 96, 5.9)
for i, player in ipairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = target + Vector3.new(0, i * 6, 0)
end
wait(10)
game.Workspace.SinkingShip:remove()
wait()
game.Workspace.PartL.Transparency = 0
game.Workspace.PartL.CanCollide = true
01 | game.Workspace.PartL.Transparency = 0 |
02 | game.Workspace.PartL.CanCollide = true |
03 | wait( 10 ) |
04 | while true do --loop |
05 | game.Workspace.PartL.Transparency = 1 |
06 | game.Workspace.PartL.CanCollide = false |
07 | game.Lighting.SinkingShip:clone().Parent = game.Workspace --clone |
08 | print ( "SS Loaded!" ) |
09 | wait( 5 ) |
10 | --end --loop ends, below code will never execute since 'true' is the condition for the loop |
11 | target = CFrame.new( 14.6 , 96 , 5.9 ) |
12 | for i, player in ipairs (game.Players:GetChildren()) do |
13 | player.Character.Torso.CFrame = target + Vector 3. new( 0 , i * 6 , 0 ) |
14 | end |
15 | wait( 10 ) |
16 | game.Workspace.SinkingShip:Destroy() --destroy method is more efficient |
17 | wait() |
18 | game.Workspace.PartL.Transparency = 0 |
19 | game.Workspace.PartL.CanCollide = true |
20 | end --end loop here? I am guessing this is what you want to do. |