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

Player is not a valid member of Folder?? Any help?

Asked by 4 years ago
local replicatedStorage = game:GetService("ReplicatedStorage")
local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData")

local cooldown = 1

replicatedStorage.Remotes.Chop.OnServerEvent:Connect(function(player)

    if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end

    print ("Got past the Debounce variable")

    local debounce = remoteData(player.Name) .Debounce

    if not debounce.Value then

        debounce.Value = true

        player.leaderstats.Strength.Value = player.leaderstats.Strength.Value + 25 * (player.leaderstats.Rebirths.Value + 1)

        wait(cooldown)

        debounce.Value = false



    end

end)

02:16:57.948 - Nerraw420 is not a valid member of Folder

0
ignore what I said Tyler090130 619 — 4y
0
Ok haha, Im just dazzled when i click "play" i can see my Name in RemoteData, But when i Stop it goes away. Im not sure if thats why it wont run. Nerraw420 0 — 4y

Answer this question