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

Help me with this script please?

Asked by
steev 0
10 years ago

When a player touches the brick they get a LinkedSword. I tried this script and it didn't work

Any advice?

script.Parent.Touched:connect(function(player) -- Getting brick and defining the player.
end)

script.Parent.Touched:connect(function(player)
    local Tool = game.Workspace.LinkedSword:clone(); -- Defining a tool that will be cloned.
    Tool.Parent = player.Backpack; -- Defining the parent of the cloned tool.
end)

Thank you.

1 answer

Log in to vote
0
Answered by 10 years ago

Im not sure if it matters, but should :clone() be capitalized to :Clone()

Ad

Answer this question