Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

make a sword dissapear after the player picks it up and re show for others how can i do that?

I have no idea where to even start:/

2 comments

0

Please remember scripting helpers is for support. It is not for requests: Please ensure you at least pop an idea you tried..

0

he said how can i do that at the end??

1 answer

If you're talking about a regeneration tool system, you can put the sword somewhere like ReplicatedStorage, clone it and put the clone in workspace, then when the clone disappears from workspace you can wait a few seconds then take another clone and put it inside workspace

If you're confused:

-- assuming we already have a clone in workspace

local sword = game.ReplicatedStorage.Sword -- replace sword with the tool name
game.Workspace.ChildRemoved:Connect(function(child)
	if child.Name == "Sword" then -- replace with tool name
		wait(5) -- waits a few seconds before regenerating
		local clone = sword:Clone() -- clones the original sword
		clone.Parent = workspace -- parenting clone
	end
end)

Hope that makes sense

This discussion is preserved as it was. New answers, comments, and votes are closed.