Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix this clone script?

Asked by 8 years ago
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 tryna make the player play an animation, wait .7 seconds then a clone pops up right behind the player. But nothing is working. How do I fix this?

1 answer

Log in to vote
0
Answered by 8 years ago
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)

0
Never mind it is local s = Humanoid:LoadAnimation(game.StarterPack.HandSign.Animation) tyrellyommey123 0 — 8y
0
You forgot to Capitation the H tyrellyommey123 0 — 8y
0
Dude.. what is this...? Use the actual script thing. Not THIS. james24dj 90 — 8y
0
happy tyrellyommey123 0 — 8y
Ad

Answer this question