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

Why isn't this working?

This use to work before, I've every script details the same, but it stop working for some reason.

Part = game.Workspace.Part

function onTouch()
	Part.Transparency = .5
	wait(3)
	Part.Transparency = 1
	wait(3)
	Part.Transparency = 0
	
end
script.Parent.Touched:Connect(onTouch)
--// In the future, please enter your code into a code block. To do so, press the blue button in the question editor, and insert your code between the lines.

1 comment

0

Please insert you code into the lua block

1 answer

Change 'Connect' to 'connect'. The connect event is case sensitive.

Part = game.Workspace.Part

function onTouch()
    Part.Transparency = .5
    wait(3)
    Part.Transparency = 1
    wait(3)
    Part.Transparency = 0

end
script.Parent.Touched:connect(onTouch)

Hope this helped.

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