Player = game.Players:playerFromCharacter(WhatDoIPutHere) <--------
script.Parent.MouseButton2Click:connect(function()
if Player:IsInGroup(1) then
blahblahhere
It's a GUI BTW.
i do not understand why you would use a serverscript to operate guis
the IsInGroup() function would also have delayed responses when used in serverscripts.