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

Is there anyway I can make this script make a tool unable to be picked up?

This is a script I use for a landmine, but after about a second of deploying it's still able to be picked up.

function drop()
	script.Parent.Parent = game.Workspace
	script.Parent.Handle.CFrame = script.Parent.Handle.CFrame + Vector3.new(0,-1,0)
	local rotation = CFrame.Angles(0,180,-90)
	script.Parent.Handle.CFrame = rotation + script.Parent.Handle.Position
	script.Parent.Handle.Name = ("Explode")
	wait (2)
	script.Parent.Explode.Explode.Disabled = false
end

script.Parent.Activated:connect(drop)

Is there anyway I can edit this script so the landmine can't be picked up?

1 answer

Go into the tool and uncheck CanBeDropped.

or use this script

game.StarterPack.ToolName.CanBeDropped = false

Please accept this answer if it worked. :)

2 comments

0

I would recommend you to just uncheck it's a simple way.

0

I did that before I posted the question :p

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