script.Parent.Touched:Connect(function(hit) if hit.Name == "HumanoidRootPart" then if game:GetService("Players")(hit.Parent.Name).leaderstats.Rebirths >= 10 then game:GetService("ReplicatedStorage").checkData:FirClient(game:GetService("Players")(hit.Parent.Name), Portal1) end end end)
I've revamped your script to hopefully get it working to your liking.
script.Parent.Touched:Connect(function(hit) local plr = game.Players:GetPlayerFromCharacter(hit.Parent) or game.Players:GetPlayerFromCharacter(hit.Parent.Parent) if plr.leaderstats.Rebirths.Value >= 10 then game:GetService("ReplicatedStorage").checkData:FireClient(plr.Name), Portal1) end end)