Hi. I have made a brick with 15 keys on it ( each key is for each house ) but i dont know how to make the players only take 1 key. You see, They can take all 15 keys if They want to and i would be really greatful if you could help me to make them only take one key and then not be allowed to take another key. Thank you!
✓ ANSWER ACCEPTED
How do i make the keys only work one time to pick?
1 answer
✓ Accepted answer
You can make with Touched.
exemple:
local part = script.Parent
part .Touched:Connect(function(hit) -- hit is when an object touches the part
if hit then -- Verify if something touches
local player = game.Players:GetPlayerFromCharacter(hit.Parent) -- get the player
if player.Character.Humanoid then -- if the player has a Humanoid
part:Destroy() -- Here Destroys the part
end
end
end)
But i still need a screen shot of the items.
4 comments
0
How do i paste in a screenshot?
0
You can paste it here , or edit the post and add a link
0
I dont really know What you mean with parent? Is it the part?
0
Just give me a screen shot with the items
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Post your script please