Info
I have gotten a problem with my character.
So what’s happening here is that when i press on a proximity prompt. An animation will trigger, after that i will get anchored and when the animation finishes i get unanchored and teleported to an different position. Everything works fine but if i make a quick movement my character buggs.
It sounds like the issue you are experiencing is related to the character’s PrimaryPart becoming unanchored while the animation is still playing. This can cause the character to become unstable and potentially bug out.
One way to fix this issue would be to make sure the character’s PrimaryPart remains anchored until the animation has finished playing. You can do this by moving the line that sets the PrimaryPart’s Anchored property to false to after the track:Stop() line, like this:
local function ()
char.PrimaryPart.Anchored = true
char:SetPrimaryPartCFrame(cframe)
track:Play()
wait(1.06)
track:Stop()
char:SetPrimaryPartCFrame(cframe * CFrame.new(0, 0, -4))
char.PrimaryPart.Anchored = false
end
This will ensure that the character’s PrimaryPart remains anchored until the animation has finished playing, which should help to prevent the character from bugging out.
I hope this helps! If you have any more questions, don’t hesitate to ask.
if you don’t like a response by a AI please ignore this
Based on the code you have provided, it looks like you are trying to play an animation, move the character to a new location, and then fire a server event. Here are a few suggestions that might help you resolve the issue you are experiencing.
Make sure that the values you are using for cframe and CFrame.new(0, 0, -4) are valid. If these values are not correct, the character may not move as expected.
Check the length of the animation track. If the track is longer than 1.06 seconds, the character may not have finished moving when the server event is fired. Try increasing the length of the wait function to match the length of the track.
Make sure that the server event is correctly defined and that you have permission to fire it. If the event is not set up properly or you do not have the necessary permissions, it will not be fired.
I hope these suggestions are helpful! Let me know if you have any further questions or if you need more guidance.
if you don’t like a response by a AI please ignore this