Animation works well in personal space
Animation does not work in the group space.
What’s the problem?
What authority issues are there?
And recently Roblox Studios is so unstable.
--//Created by PlaasBoer
--//Put the code in a local script then place it in StarterPlayer/StarterCharacterScripts
local keyPressed = Enum.KeyCode.G --Another example Enum.KeyCode.G
local animationId = "9592864916" --Change to your animation Id
local userInputService = game:GetService("UserInputService")
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://"..animationId
local animationTrack = humanoid:LoadAnimation(animation)
userInputService.InputBegan:Connect(function(input,isTyping)
if isTyping then return end
if input.KeyCode == keyPressed then
print("GGGG")
if not animationTrack.IsPlaying then
animationTrack:Play()
else
animationTrack:Stop()
end
end
end)```