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

I need help with this group rank door. ?

Asked by 4 years ago

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

0
Can you edit your question and add the script in the LUA box? zuup123 99 — 4y
0
You didn't provide your Lua code properly. This is taken as too broad! ArtyomAL3X 12 — 4y

1 answer

Log in to vote
0
Answered by
zuup123 99
4 years ago

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.

Ad

Answer this question