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

Hat cannot be dropped?

How would i do this?

1 answer

Uh this might work but it's un-tested. In theory it should just make it use the handles inside the hat so when they press "=" it wont drop anything. Sorry ahead of time if it doesn't work.

game.Players.PlayerAdded:connect(function(plr)
	plr.CharacterAdded:connect(function(char)
		wait(.2)
		for _,v in pairs(char:GetChildren()) do
			if v.ClassName == "Hat" then
				local Handle = v:FindFirstChild("Handle")
				if Handle == nil then return end
				local copy = Handle:Clone()
				v:remove()
				copy.Parent = char
			end
		end
	end)
end)

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