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.
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.
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.
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.