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

Rebirth is not a valid member of Folder? [Solved]

Asked by 4 years ago
Edited by DeceptiveCaster 4 years ago

This question has been solved by the original poster.
local ReplicatedStorage = game.ReplicatedStorage

ReplicatedStorage.RemoteEvents.Sugar.OnServerEvent:Connect(function(player, valueFolder)
    if player.Debounce.Value == false then
        player.leaderstats.Sugar.Value = player.leaderstats.Sugar.Value + valueFolder.Sugar.Value*(player.leaderstats.Rebirth.Value + 1)
        player.Debounce.Value = true
        wait(valueFolder.Cooldown.Value)
        player.Debounce.Value = false
    end
end)

1 answer

Log in to vote
0
Answered by 4 years ago

I fixed it

Ad

Answer this question