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

I have 2 scripts here but when I use both of them there just both 1, fix please?

so here are the scripts, how do i make it 2

this one prints 1 on touch.

local pedestal = 0

function hit2()
	wait(0.1)
	if script.Parent.Transparency == 0.5 then
		pedestal = pedestal + 1
		print(pedestal)
		script:Destroy()
	end
end

script.Parent.Touched:Connect(hit2)

this one also prints 1 on touch

local pedestal = 0

function hit2()
	wait(0.1)
	if script.Parent.Transparency == 0 then
		pedestal = pedestal + 1
		print(pedestal)
		script:Destroy()
	end
end

script.Parent.Touched:Connect(hit2)

1 answer

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