Someone had helped me with this script yesterday, but it only targets the player who fires the command instead of the player which it is destined to target for:
local GroupID = 3248427
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message)
if player:IsInGroup(GroupID) and player:GetRankInGroup(3248427) >= 5 then
if message == ":give ".. player.Name .." room 101" then
game.Players.LocalPlayer:GetChildren()
print(player.LocalPlayer.Character.Name)
print(player.LocalPlayer.Name)
game.ReplicatedStorage["Room101"]:Clone().Parent = game.Workspace[player.Name]
script.Parent.SurfaceGui.Frame.R101.BackgroundColor3 = script.Parent.SurfaceGui.Frame.R101.ColorInActive.Value
end
end
end)
end)
