My own waves script Everything works fine only one important thing doesn't work: Awarding Points/Coins after complete wave (Disaster) [NOT PLAYERPOINTS] <-- Just saying I do like to add more diffrent points like Complete 25 waves complete but that is what i add soon but i need to let work first the awarding points. I tried alot but its everytime not working Does anybody know how to fix this?
Maybe i need explain the script, First part i just added 3 waves yet but this look green lines but this doesn't been changed bc it work perfect.
local A = "Map1"
local B = "Map2"
local C = "Map3"
local D = "Map4"
local E = "Map5"
local Lighting = game.ServerStorage
local Choos = 0
local leaderboard = game.Workspace:findFirstChild("leaderboard")
game.Players.PlayerAdded:wait()
while true do
Choos = math.random(1)
wait(10)
if Choos == 1 then
Lighting:findFirstChild(A):clone().Parent = game.Workspace
wait (5)
------------------------------------- Wave one below
Lighting:findFirstChild("M1W1"):clone().Parent = game.Workspace
for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(Vector3.new(-37.161, 43.18, 72.114))
end
wait(25)
if game.Workspace:FindFirstChild("M1W1") then
for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(Vector3.new(-40.361, 138.18, 62.914))
end
game.Workspace:FindFirstChild(A):Destroy()
else
------------------------------------- Wave 2 below
leaderboard.Points.Value + 10
Lighting:findFirstChild("M1W2"):clone().Parent = game.Workspace
for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(Vector3.new(-37.161, 43.18, 72.114))
end
wait(15)
if game.Workspace:FindFirstChild("M1W2") then
for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(Vector3.new(-40.361, 138.18, 62.914))
end
game.Workspace:FindFirstChild(A):Destroy()
else
------------------------------------- Wave 3 below
Lighting:findFirstChild("M1W3"):clone().Parent = game.Workspace
wait(15)
if game.Workspace:FindFirstChild("M1W3") then
for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(Vector3.new(-40.361, 138.18, 62.914))
end
game.Workspace:FindFirstChild(A):Destroy()
else
Lighting:findFirstChild("M1W4"):clone().Parent = game.Workspace
wait(15)
end
end
end
wait (1)
end
end

2 comments
Thanks dude, and for the tips about Lighting ;)
I dont find the player.