RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a script that plays an animation when I click on a player, the animationID is 12584847759"
-- local script local player = game.Players.LocalPlayer local targetPlayer = nil game.Workspace.ChildAdded:Connect(function(child) if child:IsA("ClickDetector") then child.ClickDetected:Connect(function() targetPlayer = child.Parent end) end end) player.MouseClick:Connect(function(click) if targetPlayer then targetPlayer.Humanoid:LoadAnimation(12584847759):Play() targetPlayer = nil end end)