I create a event Players will pick up the gift box and receive the letters. I created the blocks in the workspace and put in that surfacegui. The blocks will display the letters they already own I created a localscript and put it in startergui but it didn't work This is my script

local d = script.Parent.Parent.event.D
local o = script.Parent.Parent.event.O

function checkd()
	if d.Value == true then
		game.Workspace.D.SurfaceGui.Enabled = true
	end
end
function checko()
	if d.Value == true then
		game.Workspace.O.SurfaceGui.Enabled = true
	end
end

d.Changed:Connect(checkd)
o.Changed:Connect(checko)

2 comments

0

You really have to describe more, and write in better english. But I would guess that on line 10, it should be "if o.Value" and not "d". (This does not solve your problem as I don't know what your problem is)

0

Thank you, you're right. I can fix it