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

I need help with this group rank door. ?

So, I want you to get a screengui on your screen if you're not a certain rank in the group. that says "You're not permitted to enter this area!" and if you are a certain rank I want it to change the transparency and change it to cannot collide.

script.Parent.Touched:Connect(function() if game.Players.LocalPlayer:GetRankInGroup (3282666) (255) = false then game.StarterGui.ScreenGui.Enabled = true if game.Players.LocalPlayer:GetRankInGroup (3282666) (255) = true then script.Parent.CanCollide = false script.Parent.Transparency = 0.5 end end

2 comments

0

Can you edit your question and add the script in the LUA box?

0

You didn't provide your Lua code properly. This is taken as too broad!

1 answer

Try adding an area + torso magnitude or using Region3 in your script, when a player is in the location the local script changes his GUI.

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