I was trying to make a button that if you have enough point and you click the button, it will teleport you to the part. But it keeps giving me error like "Player is not a valid member of DataModel" What can I do to fix this? Someone Help!
script.Parent.MouseButton1Click:connect(function()
if game.Player.leaderstats.LifeFormFound.Value >= 4 then
game.Players.LocalPlayer.character.LowerTorso.CFrame = CFrame.new(workspace.Point.Position)
print('Successful')
else print('Fail')
end
end)
Someone Please Help!

8 comments
Is the script a localscript?
a script
Ok
can you write the answer please, thx
d0ne
If it is correct , mark my answer as correct.
ok
Please properly indent your code as it makes it easy to read and debug.