Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Trying to open a garage door?

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)

2 comments

0

oh lol well glad you could fix it

0

also next time explain what you have in the game for something likke this

1 answer

✓ Accepted answer

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

2 comments

0

What do you mean by 3 things

0

my problem is I had the msg thing infront of the gui lol

This discussion is preserved as it was. New answers, comments, and votes are closed.