#Need Help with attributes

12 messages · Page 1 of 1 (latest)

signal mica
#

So E_1, E_2, E_3 are set to true. but when i check if they are true it bassicly says no imma print it

frail cedar
#
local Prox = script.Parent
local Core = script.Parent.Parent.Parent.Parent.Core
local C1 = script.Parent.Parent.Parent.C1

Prox.Triggered:Connect(function(player)

    local E_1 = game.Workspace.World_Folder.Levels.Doomsday_Level.E_1:GetAttributes("ON_1")
    local E_2 = game.Workspace.World_Folder.Levels.Doomsday_Level.E_2:GetAttributes("ON_2")
    local E_3 = game.Workspace.World_Folder.Levels.Doomsday_Level.E_3:GetAttributes("ON_3")

    if E_1 == true and E_2 == true and E_3 == true then
        Prox.Enabled = false
        game.Workspace.World_Folder.Levels.Doomsday_Level.Doomsday_Device.CORE_BUTTON.BrickColor = BrickColor.new("Bright red")
        wait(2)
        C1.Material = Enum.Material.Neon
        C1.BrickColor = BrickColor.new("Daisy orange")
        wait(2)
        Core.SpinningScript.Enabled = true
    else
        print(E_1, E_2, E_3)
    end
end) 

#

lets see

#

mhm, might have to do with the way you fetched the attributes, one second

signal mica
#

Alright!

signal mica
#

@frail cedar did u find anything out?

frail cedar
#

it worked both cases

#
local part = workspace.Part

part.ProximityPrompt.Triggered:Connect(function(player)
    local att = workspace.Baseplate:GetAttribute("B1") 
    if att then
        print(true)
    else
        print(false)
    end
end)
#

tried with multiple as well

#

not quite sure why yours is not working