local replicatedStorage = game:GetService("ReplicatedStorage") local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData") local cooldown = 1 replicatedStorage.Remotes.Lift.OnServerEvent:Connect(function(player) if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end local debounce = remoteData[player.Name] 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)
When I run the script it keeps saying value isnt a valid member of folder can somebody help?
I believe your problem is that on line 16, the first "Strength.value" is not capitalized to "Strength.Value", meaning you aren't correctly indexing the property of Strength
Below is the Revised Code
local replicatedStorage = game:GetService("ReplicatedStorage") local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData") local cooldown = 1 replicatedStorage.Remotes.Lift.OnServerEvent:Connect(function(player) if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end local debounce = remoteData[player.Name] 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)