So, my code won't work. I'm trying to make a boss fight with meteors falling above you, my script is a local script, and my attack is in the server storage. Even when I removed the while loop, it still wouldn't work. So, what's going on and how do I fix it?
while true do
wait(5)
local attack = game.ServerStorage.Attack:Clone()
attack.Parent = workspace
attack.Position = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,attack.CFrame.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z)
end

1 comment
oh yeah, and view the codeblock's source. i really need to make that 5th line shorter :/