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

Any ideas for this creation I made like what I should make with it?

1 answer

You should make it onTouch and THEN make it red... then maybe make them smaller, and invisible. You could make them come visible again when you touch it.

debounce = false
local function onTouch(Object)
	local mine = script.Parent -- assuming you inserted the script in the mine
	if (debounce ~= false) then return end

	debounce = true		
	local char = Object.Parent:FindFirstChild("Humanoid")
		if (char ~= nil) then
			local play = game.Players:GetPlayerFromCharacter(Object.Parent)
			if (play ~= nil) then
				
				mine.Transparency = 0
				mine.BrickColor = BrickColor.new("Really red")
				wait(1)
				-- insert explode script you have in your mines already
				
			end	
		end
		debounce = false
end

script.Parent.Touched:connect(onTouch)

Good job! Good luck!

2 comments

0

Thanks but my script isn't in the brick. That one makes it explode non-stop.

0

So you could make it in the brick and do the 'explode' on a lower level. Can you give me the explode script?

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