When I'm in studio testing it by myself it works. When I go into test mode with 2 players the text "has ordered" text stuff hasn't changed. Can someone make it so the text changes for everyone in the server with a rank higher than 180?
script.Parent.MouseButton1Down:connect(function() local groupID = 3418893 local adminRankID = 180 script.Parent.Text = "Sent!" wait(1) script.Parent.Text = "Order" if game.Players.LocalPlayer:GetRankInGroup(groupID) >= adminRankID then for i,v in pairs(game.Players:GetPlayers()) do v.PlayerGui.PopUpOrder.Frame.Order.Text = game.Players.LocalPlayer.Name.. " has ordered " ..script.Parent.Parent.Box1.Text.. ". " ..game.Players.LocalPlayer.Name.. "'s class is " ..script.Parent.Parent.Box2.Text.. "." end end end)
I think you should change some things on line 7 and move it into that for i,v in pairs thing.
Here's the script :
script.Parent.MouseButton1Down:connect(function() local groupID = 3418893 local adminRankID = 180 script.Parent.Text = "Sent!" wait(1) script.Parent.Text = "Order" for i,v in pairs(game.Players:GetPlayers()) do if v:GetRankInGroup(groupID) >= adminRankID then v.PlayerGui.PopUpOrder.Frame.Order.Text = game.Players.LocalPlayer.Name.. " has ordered " ..script.Parent.Parent.Box1.Text.. ". " ..game.Players.LocalPlayer.Name.. "'s class is " ..script.Parent.Parent.Box2.Text.. "." end end end)