Emotes Cancelling when Players/Objects go near it

Hey,
I need help with something real quick. I did emotes to give my game more life, but when people are near one another, the emote suddenly cancels, like it’s some sort of barrier. What should I do? I can elaborate if you need me to.

(note: I’m using mainly the Animate localscript)

1 Like

Firstly, we need to know the code you used to do all that stuff, secondly, a video / photo (Optional) of what’s happening, and anything else you wanna tell.

Also, any errors you get in the output?

I think this is the way the roblox chat emotes work, they’ll cancel if you move/get moved

dang that was quick

anyways, first off, I’m using the normal “Animate” localscript, which is here: https://pastebin.com/raw/gyt8pk9N

second off, This. I’m not even touching him, and the animation just cancels out. shoutout to raiden metal gear solid
https://gyazo.com/f2b1c492ba22b34cc5de3440ac239d3f

The animations are under action/movement. Not sure on what’s happening here.
Edit: Oh, and no, no errors in my output.

Could you simply go to the pastebin link you just gave, copy the code, and then simply put it between 3 ticks:

>```
-- Paste the code between the 3 ticks.
>```

I’m asking you this, because I can’t access pastebin at all.

It’s 678 lines of code, and the dev form does NOT like that. Any other alternatives?

Could you at least show all the pieces of code connected to this animation?

Dawg. I can’t post 678 lines of code in here. The forum does NOT like that. I could send it to you via. a roblox file or something like that.

This animation doesn’t seem to be from roblox’s whatsoever, if there’s any issue with it, it’s more likely has to do with your own code.

wha
okay look, I’m not a scripter. I animate and build. I know nothing about scripting. I literally just followed a tutorial on how to add /e emotes. I followed that, and this is happening.

And no, this is NOT my own code. This is from ROBLOX itself. You know, the localscript that’s used to animate your character, and if you want custom animations, is posted in StarterPlayer > StarterCharacterScripts?? You know, THAT kind of localscript?? I just added my own emotes (as well as crouching for my game) and that’s literally it, nothing else.

And YES, this is my own animation. Not ROBLOX’s.

A way to stop emote cancelling would be to make the characters unable to collide with one another, and example of how to do this would be the following:

local PhysService = game:GetService("PhysicsService")
local PlayerGroup = PhysService:CreateCollisionGroup("players")
PhysService:CollisionGroupSetCollidable("players","players",false)

function NoCollide(Character)
	for i,v in pairs(Character:GetChildren()) do
        if v:IsA"BasePart" then
			PhysService:SetPartCollisionGroup(v,"players")
        end
    end
end

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(char)
        NoCollide(char)
    end)
end)

This would go into a normal script, preferably in the ServerScriptService.

Weird, this still happens, even without player collision…