script.Parent.MouseButton1Click:Connect(function(Player)
if game.Players.LocalPlayer.leaderstats.LifeFormFound.Value >= 4 then
game.Players.LocalPlayer.Character.LowerTorso.CFrame = CFrame.new(workspace.Point.Position)
Player.PlayerGui.TestGui.Frame.Visible = true
else print('Fail')
end
end)
can someone check why is it not correct? it keeps giving me the error message that says " Players.RainbowBeastYT.PlayerGui.ScreenGui2.TextButton.LocalScript:4: attempt to index local 'Player' (a nil value)"

1 comment
Please properly indent your code as it makes it easy to read and debug.