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

Click dector isn't archivable but I can still click it?

When you click on the part, the click detector shouldn't be able to be used anymore, but it still works!

Code:

local clickDetector = script.Parent
local status = game.ReplicatedStorage.Status
local gem = script.Parent.Parent

clickDetector.MouseClick:Connect(function(plr) 
	print(plr.Name.." has found a gem")
	status.Value = plr.Name.." has found a gem!"
	
	gem.Transparency = 1
	gem.CanCollide = false
	clickDetector.Archivable = false
	
	wait(50)
	
	gem.Transparency = 0
	gem.CanCollide = true
	clickDetector.Archivable = true
end)

1 answer

✓ Accepted answer

Archivable is pretty much useless to control them in a script. I think you meant unfunctioning the Click Detector. Consider changing the click detector's MaxActivationDistance to 0, or parenting the click detector to workspace.

1 comment

0

Archivable meant for is it showable on roblox player, but not roblox studio. You can still see the click detector while on studio but not roblox player. Archivable = false means for you cant see it in roblox player but you can see in roblox studio.

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