Basically, I want to make it so that when a part is touched by the player, a tool called Book is given to the player and their starter pack until the book touches a part that destroys it. Then, they cannot get it again. Would it be something like this?:
function onTouched(part)
local player = game.workspace.Players.LocalPLayer
local book = game.ReplicatedStorage.Book
if player then
book:Clone().Parent = player.Backpack
book:Clone().Parent = player.StarterGear
until……? I don't know how to make it so that the book will not clone after it touches the other part. (The other part's name is taker)
|