Chosen Solution

why dose it do this i will connet then 3 secconds later it disconnects all ither devices work perfectly fine other then the playstation WHAT IS GOING ON i have factory reset it and everything i don’t know what to do i have told playstation and they say its a router problem but how can it be when the other devices work perfectly

This sounds like a faulty WiFi card. If possible, connect your PS4 via Ethernet.