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

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

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!

5 comments

0

This is a request, sorry, but I can't help on requests.

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.

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

0

Use httppost async run a webhook from discord

0

Thank you guys!

1 answer

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)

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