im making a simulator and when i was making the rebirth system and i came across this error 13:37:53.949 - Rebirth is not a valid member of Player here's my code
~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~ local repStorage = game:GetService("ReplicatedStorage") local remote = repStorage:FindFirstChild("RebirthClick")
local button = script.Parent
local debounce = false
button.MouseButton1Click:Connect(function() local rebirths = game.Players.LocalPlayer.leaderstats:FindFirstChild("Rebirths") if not debounce then debounce = true local playerPoint = rebirths remote:FireServer(playerPoint) wait(0.01) debounce = false end end)
repeat local textButton = script.Parent textButton.Text = "Rebirth: ".. tostring(100 * game.Players.LocalPlayer.Rebirths.Value + 1) .." points required" wait(0.01) until script.Parent == nil`