I would like to have a brick that then it is touched that person gets a sword. How?
COMMUNITY QUESTION
When someone touches a brick they get a sword?
2 answers
Put the sword you wish for them to get in your ReplicatedStorage. Put this script into the block you wish to give the sword to the player with:
script.Parent.Touched:connect(function(part)
p = game.Players:GetPlayerFromCharacter(part.Parent)
if p == nil then return end
a = game.ReplicatedStorage.Sword:clone()
if p.Backpack:FindFirstChild(a.Name) ~= nil then return end
a.Parent = p.Backpack
end)
dude theres millions of them out in the catalog... and btw, its not Tools, its Functions you mean, cos if you get something when you do something is a Function...
3 comments
0
btw, if you dont know how to search then just search for 'weapon giver'
0
I don't want a giver. I just want it so when you touch the brick you get it....
0
yeah, thats what they do :p you touch it you get it :p
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
If this helped you, please remember to upvote me, and to accept this answer.
Doesn't work