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

How do I make a mod call GUI that can only be pressed by LR+ in my group?

Asked by
Ixdia -2
6 years ago
Edited 6 years ago

I would like a mod call GUI but I do not know how to do this. I would like it to only be able to be pressed by LR+ in my group. I do not know how to do this and I need help. I know I will probably have to link it up with like a discord server or something but if you know how please say something. Thank you!

0
This is a request, sorry, but I can't help on requests. JellyYn 70 — 6y
0
^ I mean, this isn’t 100% a request. He’s just saying he has absolutely no idea on how to make this, and at least needs to know where to start. User#20279 0 — 6y
0
attempt it first: http://wiki.roblox.com/index.php?title=API:Class/Player/GetRankInGroup and http://wiki.roblox.com/index.php?title=Fundamentals_of_Scripting_with_GUIs, if you have no idea what your doing peaspod has some good videos to learn roblox lua, if you still having trouble paste the code that you wrote and we can help you from there TheGreatSailor 20 — 6y
0
Use httppost async run a webhook from discord moo1210 587 — 6y
0
Thank you guys! Ixdia -2 — 6y

1 answer

Log in to vote
0
Answered by
uhTeddy 101
6 years ago

I hope this helps, Read below to fix it to your standard, This script would go into the button. It also must be a localscript. (Though all GUI's should be a localscript)

-- THIS MUST BE IN A LOCALSCRIPT

local  open = false -- Status

script.Parent.MouseButton1Down:connect(function()
    if game.Players.LocalPlayer:GetRankInGroup(GROUPID) >= RANK then -- GroupID and Ranks Checks
        -- Below Please edit to the thing you would like visible
        if not open then -- Checks if closed
            script.Parent.Parent.Panel.Visible = true -- The panel to open
            open = true --Sets open
        else
            if open then -- Checks if open
                script.Parent.Parent.Panel.Visible = false -- The panel to close
                open = false --Sets closed
            end
        end 
    end
end)
Ad

Answer this question