Hello I have this script from my last post but instead of it just becoming one rank I want it to be one rank and above. How do I do this?
I keep geting errors when I try to do this
I have tryed to code this in but it has not worked. Here is the script.
script.Parent.MouseButton1Click:Connect(function()
if game:GetService(“Players”).LocalPlayer:GetRankInGroup(groupid) == 255 then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new(“Institutional white”)
wait(0.5)
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end
script.Parent.MouseButton1Click:Connect(function()
if game:GetService("Players").LocalPlayer:GetRankInGroup(13824371) >= 3 then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new(“Br. Br. yellowish orange”)
task.wait(0.5)
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end
end)
I changed >- to >=, but I still recommend you to change the player’s health and team on server side. Client sided is never to be trusted and the server is always secure with true information.
I mean its not a local script, should it be? I used a script and the script is from yt. I had someone on a other post make it into a rank script for me but seems to not be working.
and I thought you were trying to do the top 2 ranks in the group before
your current code says <= 3 (less than or equal to 3), so it would be people ranked 1, 2, 3, and people with no rank in the group