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

it say "Screen is not a valid member of Model "Workspace.Computer" what i do wrong?

Asked by 3 years ago
script.Parent.ProximityPrompt.Triggered:Connect(function(player)
    game.Workspace.Computer.Screen = BrickColor.new("Lime green")
    script.Parent.ProximityPrompt.Enabled = false
    print("Computer hacking compleat")
end)
0
answer me pls Trorapantest1 13 — 3y
0
im have this problem im have some confuse Trorapantest1 13 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Is the Screen inside the Computer model or somewhere else, also If you want to change the brickcolor of a part you would call its BrickColor property not the part itself so it would look more like this

script.Parent.ProximityPrompt.Triggered:Connect(function(player)
        game.Workspace.Computer.Screen.BrickColor = BrickColor.new("Lime green")
        script.Parent.ProximityPrompt.Enabled = false
    print("Computer hacking compleat")
end)

Ad

Answer this question