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

Trying to open a garage door?

Asked by 8 years ago

I have not scripted in a while and this script has no error in the output neither does what I asked so check it over please

script.Parent.MouseButton1Click:connect(function()
    local player = script.Parent.Parent.Parent.Parent
    if player.Name == game.Workspace.House1.Own.Value then
        game.Workspace.Garage1.Transparency = 0.5 
        game.Workspace.Garage1.CanCollide = false
    end
end)
0
oh lol well glad you could fix it arrowman888 69 — 8y
0
also next time explain what you have in the game for something likke this arrowman888 69 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Three things is own and value inside of House1 and in the (function() put click in the (function(click) and then try local player = click.Parent

0
What do you mean by 3 things johndeer2233 439 — 8y
0
my problem is I had the msg thing infront of the gui lol johndeer2233 439 — 8y
Ad

Answer this question