When I run the command its suppose to exchange your points for minutes but instead I get
Infinite yield possible on 'Players.vhixloqan:WaitForChild("Mins")'
I really need help because I have no idea how to fix this.
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = player:WaitForChild("leaderstats")
local Mins = player:WaitForChild("Mins")
local Tokens = player:WaitForChild("Tokens")
player.Chatted:Connect(function(msg)
if player:GetRankInGroup(3942568) >=20 then
if msg == ";exchange tokens" then
if leaderstats.Tokens.Value >= 100 then
leaderstats.Tokens.Value = leaderstats.Tokens.Value - 100
Mins.Minutes.Value = Mins.Minutes.Value + 120
end
end
end
end)
end)

2 comments
This means that it cannot find anything named "Mins" inside the player object and it's going to yield the script until it exists. Are you sure there is something named "Mins" being created inside the player object?
How would I create Mins in the player object?