PlayerData SOMETIMES clone

okay ill also try that thanks 30 chars

so far ive tested it 4 times it worked on all of them

Did you test it in-game or in-studio?

Were there any other errors and did all of the prints run?

yep i can confirm it works in game

Alrighty, I’m glad I could help :+1:

yeah wait

if i wanna add something to my game, do i always have to publish it and to try it in game,

that would be pretty slow imo

okay thanks it seems to work but now theres still the error
“Not running script because past shutdown deadline (x9)”

studio crashes for like 20 seconds and then i can freely use studio again

oh no

From read on another topic where the same issue was being discussed, you can do something like this

okay ill give it a read thanks

so ive done what he said and it dosent work,

“attempt to call a Instance value”

okay now it works but this is still happening

thank you for helping btw

oh wait i think i have an idea

give me the script’s code that implemented that callback

i dont know which script has it tho

okay so its back but i have no way to know which script has the callback

1 Like

NVM i found it!

this is such a rollercoaster
posting the script in a min

1 Like
local function playerAdded(player)
	local DataStore2 = require(script.Parent.MainModule)
	
	local Cash = DataStore2("Cash", player)
	local PlayerData = player:WaitForChild("PlayerData")
	local PlrRBX = PlayerData.RobuxUpgradeWorth
	
	while true do
		wait(0.3) -- this is where stuff goes downhill
		Cash:Increment(PlrRBX.Value)
	end
end

game:GetService("Players").PlayerAdded:Connect(playerAdded)
for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
	playerAdded(player)
end 

you should just increment it but more then 600 seconds or 6000 seconds below 600 will result in a data stores queue filled