So far, when I click the part (the 'door') the screen flashes as I ask it to. However, I want the text to appear afterwards for two seconds. Anybody know what mistakes I have made here? Answers would be greatly appreciated.
-- VARIABLES --
colcor = game.Lighting.ColorCorrection
local can = script.Parent.Parent.can
can = true
local replicatedstorage = game.ReplicatedStorage
local text = replicatedstorage.TextLabel
local textclone = text:Clone()
-- USER CLICKS ON DOOR --
script.Parent.MouseClick:connect(function()
if can == true then
can = false
colcor.Brightness = -0.6
wait(.4)
colcor.Brightness = 0.6
wait(.4)
colcor.Brightness = -0.6
wait(.4)
colcor.Brightness = 0.6
wait(.4)
colcor.Brightness = -0.2
wait(.4)
textclone.Parent = game.StarterGui["DOOR PROMPT"]
textclone.Visible = true
wait(2)
textclone:Destroy()
can = true
end
end)

2 comments
Are you using a server script or local script?
server script