Hello everyone, I hope everyone of you are having an amazing day today. Today I just randomly came up with an idea, that I want to achieve an FireClient (RemoteEvent) GUI when magnitude is close enough to selected object. I will give you an example of what I want to achieve:
- For example: In Jailbreak, GUI shows up when player is close enough to a car.
My problem is that I don’t really know what would be the best way to do that so I won’t take much server performance or players performance while they are in game.
- For example: random lags, high ping^^
What It’s in my mind to try to do this is to do an loop with ‘while true do’ on magnitude value and once that magnitude is below selected magnitude it fires client (RemoteEvent) and paste GUI in PlayerGui. After magnitude is not close enough again it destroys it from PlayerGui.
Please read ‘My idea’ spoiler if you’d like to reply. If there is a simpler way to do this let me know. What I have in my mind is that I try to make this thing to work with lowest taken performance possible. Thank you for your time.