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

Why do i have an infinite yield for leaderstats?

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemoteEvents = ReplicatedStorage.RemoteEvents

local GivePoint = RemoteEvents.GivePoint

GivePoint.OnServerEvent:Connect(function(player)
	local points = player:WaitForChild("leaderstats").Points
	local ClickBonus = player:WaitForChild("Playerstats").ClickBonus
	points.Value = points.Value + (1 + ClickBonus.Value)
end)

1 answer

✓ Accepted answer

are you sure that leaderstats is in player?

3 comments

0

wdym player?

0

how do u do that?

0

Where is leaderstats located?

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