Why am I getting an error?
A mistake in this moment - "plr.stat.curent.Value=plr.stat.curent.Value+1"
Script:
local Reward = require(game.ServerStorage:WaitForChild("Reward"))
local RewardData = Reward[1]
local stat=RewardData["stats"]
local curent=RewardData["curent"]
local reward=RewardData["reward"]
game.Players.PlayerAdded:Connect(function(plr)
wait(5)
plr.stat.curent.Value=plr.stat.curent.Value+1
end)
ModuleScript:
local day = {
[1]={
stats='PlayerStats',
curent='DoubleXP',
reward = 100000
}
}
return day

1 comment
Uh oh i do not understand at scripts i am new may i get answered so might help you!