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 4 years ago
Edited 4 years ago
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

Log in to vote
0
Answered by 4 years ago

are you sure that leaderstats is in player?

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

Answer this question