Sorry for repeating, but last time I only got like 5 views and 1 crazy answer.
wait(1)
local player = game.Players.LocalPlayer
local Mouse = player:GetMouse()
local humanoid = player.Character.Humanoid
local s = humanoid:LoadAnimation(game.StarterPack.HandSign.Animation)
Mouse.KeyDown:connect(function(key)
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local CharacterChildren = character:GetChildren()
for i,v in pairs(CharacterChildren) do
local Clone = v:Clone()
if key:lower() == "h" and humanoid then
s:Play()
player.Character.Humanoid.WalkSpeed = 16
wait(.7)
Clone.Parent = game.Workspace.Character
end
end
end)
I'm trying to make the player be cloned in .7 seconds after an animation is played when he/she pressed H. But it's not working. What's wrong here?
