Can you show your new script???
Maybe remove, “if player then”?
script.Parent.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
if player then
end
player.PlayerGui.ScreenGui.Frame.Visible = true
end)
oh yeah that’s wrong…
''''
script.Parent.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
if player then
player.PlayerGui.ScreenGui.Frame.Visible = true
end)
'''
then do end and end) 99jdojddwq
'''
''''
script.Parent.MouseButton1Click:Connect(function()
local player = game.Players.LocalPlayer
if player then
player.PlayerGui.ScreenGui.Frame.Visible = true
end
end)
'''
'''
Uhmm, try this.
script.Parent.MouseButton1Click:Connect(function(player)
if player then
player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("ScreenGui"):WaitForChild("Frame").Visible = true
end
end)
Obviously, theres other ways to open the GUi but this code is one of them. Also, there is plenty of videos on youtube that you can review if you are confused, for example: https://youtu.be/6r_PBSXzOmI
Still doesn’t do anything
Can you show me your explorer? You are probably not assigning script.Parent to a textbutton.
Try my script above…
Sure lksfdjlsdjfklsdjflksdjfklsdjflksdjfklsjdfklsdfj (30 chars)
I tried, still doesnt do anything
then remove the end and if player then part
There is 2 frames with the same name and 2 ScreenGui with the same name so the script will be confused, try change one of the ScreenGui’s name to something else.
Once you have changed your screenGui’s name then change the name in the script as well.
Ok. (30 chars) heklfjlskdfjlksdfjlskdfsfddsff
Then my script should work… (thats probably why the script wasn’t working)
Did you change the script too?