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

Why does WorthCoin show in same time as Part?

So I was trying to make when touch brick then show WorthCoin but when you step on the part first it works good second time it just shows all the time.

Here is the script:

workspace.Part.Touched:Connect(function(hit)
	workspace.WorthCoin.Transparency = 0
	workspace.WorthCoin.CanCollide = true
	workspace.Part.Transparency = 1
	workspace.Part.CanCollide = false
	
	wait(5)
	
	workspace.Part.Transparency = 0
	workspace.Part.CanCollide = true
end)

1 answer

Is this all of the script? You make the WorthCoin part visible but never make it invisible again, so if this is all of the script then just remember to set the WorthCoin invisible again after the wait

1 comment

0

This is another part of the script: ~~~~~~~~~~~~~~~~~ workspace.WorthCoin.Touched(function(hit) workspace.WorthCoin.Transparency = 1 workspace.WorthCoin.CanCollide = true wait(5) workspace.WorthCoin.Transparency = 0 workspace.WorthCoin.CanCollide = false end) ~~~~~~~~~~~~~~~~~

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