Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why do i have an infinite yield for leaderstats?

Asked by 5 years ago
Edited 5 years ago
01local ReplicatedStorage = game:GetService("ReplicatedStorage")
02local RemoteEvents = ReplicatedStorage.RemoteEvents
03 
04local GivePoint = RemoteEvents.GivePoint
05 
06GivePoint.OnServerEvent:Connect(function(player)
07    local points = player:WaitForChild("leaderstats").Points
08    local ClickBonus = player:WaitForChild("Playerstats").ClickBonus
09    points.Value = points.Value + (1 + ClickBonus.Value)
10end)

1 answer

Log in to vote
0
Answered by 5 years ago

are you sure that leaderstats is in player?

0
wdym player? xTheodxre 16 — 5y
0
how do u do that? xTheodxre 16 — 5y
0
Where is leaderstats located? itz_rennox 412 — 5y
Ad

Answer this question