To @superkingburger1456 :
Do not use game.StarterGui. Instead use this, if your using a local script use script.Parent or game.Players.LocalPlayer. In script use script.Parent because you can’t find the local player in normal script.
To @kry1068 :
You don’t have to use script.Parent.Visible = false because i can see that its like this.
local Player = game.Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Frame = PlayerGui.BuyCoinsUI.BuyCoins
local Button = PlayerGui.BuyCoinsUI.TextButton
Button:MouseButton1Click:Connect(function()
frame.Visible = true
end)
local Player = game.Players.LocalPlayer -- Getting one player
local PlayerGui = Player.PlayerGui -- Accessing that Player PlayerGui(Like screenGui, but if you use local script you need to access PlayerGui)
local Frame = PlayerGui.BuyCoinsUI.BuyCoins -- Getting your frame in screen of that player
local Button = PlayerGui.BuyCoinsUI.TextButton -- Declaring your button which need to click in screen of that player
Button:MouseButton1Click:Connect(function() -- Connecting function when player click button
frame.Visible = true -- frame become visible
end) -- ends script
Hey, Thanks man I have seen some tutorials and practiced them in roblox studio by Alvin Blox. He explains the scripts way better than any other youtubers. Thanks I never knew e had something like this. Appreciate it @PhantomGame_Youtube
No problem, good luck scripting your game, also i very interested what game are you making, if it is public, could you give me link i just wanna check it xD
I’m sorry but I am still developing it as you in the screenshot I was making a Desert map. It is a simulator map by the way. Thanks, Good luck for your career too, Bye