Hi devs, i have a problem with video frames.When i play the video for the first time everything work but , when i re interact with the prox , the video don’t replay , does anyone know how to fix it?
Note : “VideoFrame.Ended:Wait()” ik its wrong but idk how detect when the video stopped , i tried with “VideoFrame.Ended:Connect(function()” but still didn’t worked.
Some of the code might not be working because you have different levels of indentation under the function connected to the Prox.Triggered event. Make sure all indentation level is as appropriate.
Same it doesn’t work , after a second press on the prox when everything is ended the video don’t play and the print (“STOPPED”) get multiplied and multiplied ( : STOPPED (x153) - Serveur - Script:17 )
It’s quite hard to visualise where all the things are you mentioned in variables are without a screenshot, so I’m quite limited in helping you. In terms of the script, try changing VideoFrame.Ended:Wait() to VideoFrame.Ended:Connect(function() end) with the code inside of it. It would honestly be more efficient to have a LocalScript in StarterPlayerScripts to manage this so more than one client can use it at once.
Something that might be wrong (but I’m still not sure about) is that when you disable the ProximityPrompt it might disable the children of that ProximityPrompt too, therefore preventing the rest of the code from running.