How can I make an object disappear after I tocuh it?
Something like the coins in deathrun is what I'm aiming for?
P.S I can edit the script and all that, just need to base of the script done
Hope you can help??
Er, best way is the 'Destroy' function. Place the following script in your part.
script.Parent.Touched:connect(function (hit) if not hit.Parent:findFirstChild("Humanoid") then return end hit:Destroy() end)
Note, after this it is NOT POSSIBLE in ANY WAY to get the part back, other then making another part via Instance.new(). If I helped, give me a rep point please.
if you are aiming for a coin-like model, one of the simplest ways to preform an action like this is to start with an onTouch() that makes the player the parent of the object with which to then remove it once the object is in the players model, which you could then remove it like a basic limb. I would write you the code but it is extremely late and I'm cramming. Sorry.
Or you could do this.
while true do pcall(function() Workspace.PartName:Destroy() end) end