Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Localscript does not work, The blocks do not show letters ?

Asked by 4 years ago
Edited 4 years ago

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)
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) Spjureeedd 385 — 4y
0
Thank you, you're right. I can fix it tieuvuong07 -8 — 4y

Answer this question