I tried To Use a localscript to make A close And Open button
but heres what i got as My Awenser:
Players.TheStonePro12.PlayerGui.MainMenu.Buttons.Frame.Close.LocalScript:4: attempt to call field 'MouseButton1Click' (a userdata value)
sooooo i kinda need help heres my script
local telePort = script.Parent.Parent.Parent.Parent.TelePort local thisthing = script.Parent local open = script.Parent.Parent.Open.Visible thisthing.MouseButton1Click(function() telePort.Visible = false open.Visible = true thisthing.Visible = false end)
so yeaaa if someone can tell me the problem i do or how to fix it
please tell me
COMMUNITY QUESTION
Players.player.gui's.Menu.Buttons.Frame.TB.LocalScript:4: attempt to call field 'MouseButton1Click'?
1 answer
you have to connect to the event.
thisthing.MouseButton1Click:Connect(function()
--code here
end)
2 comments
0
oh wait
0
thanks for helping And i do know that i have to do that,But I just forgot lol
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
dont use parent spam, it gets confusing
i Pretty Much dont know whats the problem,I used the parent spam just so i dont have to do MORE parent spam
accept the answer if it helped you