Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

eaderstats script works in Studio, but not Roblox game, why? (is this specific enough)

This script is supposed to take the value of Views, divide it by 35, and have the quotient be the value of Subscribers. It works in Studio but not in my game. I have tried many things: using WaitForChild, not using anything, putting a wait period of 5 minutes at the beginning of the script (what you see here) lots of different things. This is the script:

wait(300)
dividedby = 35
while true do
	wait(1)
	for _,player in pairs(game.Players:GetPlayers()) do
if player:FindFirstChild("leaderstats")then
	player.leaderstats.Subscribers.Value = ( player.leaderstats.Views.Value / dividedby )
end
end
end

2 comments

0

I meant leaderstats lol

0

Can we see the leaderstats part of the script when it's being made?..

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.