I have a script ive used for GUIs that only shows on your screen if your in the group, how can I make it so that it makes a part visible on your player if your in the group? (The part loads onto the body automatically which works I just want it to be made visible if your in the group)
local player = game.Players.LocalPlayer
local groupId = 609409
while true do
if player:IsInGroup(groupId) then
script.Parent.SurfaceGui.Enabled = true
end
end

2 comments
How do I make it a Server Side script?
Sorry for the slow response. A server side script is the element in studio called "script". You cannot grab player via game.Players.LocalPlayer using one