So I am creating a 3D platformer and I needed help generating grip so that the model doesn’t fall off after jumping on a moving platform. Found a script from Jimmy Vegas and did the same thing for the platform grip. Screenshots of the grip script below. Basically just making the platform the parent of the player ontriggerenter and nullifying it after exit. Problem is, when I play the game in the editor without it being maximized or when I play the build the grip doesn’t function for any platform. Works perfectly when I play the game maximized in the editor though. No errors in the console. Any suggestions? Other scripts I’m using in the scene are rotation for the skybox, pause menu, death, and post processing stuff.
Package below too if it uploads.
https://drive.google.com/file/d/1jMvtv4DsQG2zMoh2eOn442iOqu_BFT-7/view?usp=sharing