https://gyazo.com/aa77efeae669f9139d1fa7fa4f2ef3fa
local raidvalues = game.ReplicatedStorage.RaidValues while true do wait(1) if raidvalues.Value == true then if raidvalues.RaidType.Value == "Domination" then if raidvalues.DefenderPoints.Value >= 3000 then GlobalNotify("Defenders win!") raidvalues.Value = false game.ReplicatedStorage.EndingRaid:FireAllClients() end if raidvalues.RaiderPoints.Value >= 100 then GlobalNotify("Raiders win!") raidvalues.Value = false game.ReplicatedStorage.EndingRaid:FireAllClients() end end end end function GlobalNotify(Notification) game.ReplicatedStorage.RaidNotifications:FireAllClients(Notification) end
All of my values are correct, its just the function does not work.
local raidvalues = game.ReplicatedStorage.RaidValues function GlobalNotify(Notification) game.ReplicatedStorage.RaidNotifications:FireAllClients(Notification) end while true do wait(1) if raidvalues.Value == true then if raidvalues.RaidType.Value == "Domination" then if raidvalues.DefenderPoints.Value >= 3000 then GlobalNotify("Defenders win!") raidvalues.Value = false game.ReplicatedStorage.EndingRaid:FireAllClients() end if raidvalues.RaiderPoints.Value >= 100 then GlobalNotify("Raiders win!") raidvalues.Value = false game.ReplicatedStorage.EndingRaid:FireAllClients() end end end end