How do I make this see if a Person is VIP? Script: (Not fully)
game.Players.PlayerAdded:connect(function(plr)
script.DailyReward:Clone().Parent = plr.PlayerGui
end)
local DataStore = game:GetService('DataStoreService'):GetDataStore('DailyRewards')
local TimePeriod = 86400
function Give(plr)
assert(coroutine.resume(coroutine.create(function()
if plr:FindFirstChild("leaderstats") then
local rank = plr.leaderstats[script.StatsRank.Value].Value
if rank = "RIX VIP"
plr.leaderstats[script.Stats.Value].Value = plr.leaderstats[script.Stats.Value].Value + script.IncreaseByVIP.Value
else
plr.leaderstats[script.Stats.Value].Value = plr.leaderstats[script.Stats.Value].Value + script.IncreaseBy.Value
end
local Gui = plr:WaitForChild('PlayerGui')
if Gui:FindFirstChild('DailyReward') then
local as = Gui.DailyReward.Frame
as.Visible = true
end
end)))
end

1 comment
OMG! "if rank = "RIX VIP" I forgot then! But maybe it is not fixing it still...