How to make a model move from ServerStorage to Workspace if above group rank

Heya! I’m looking for info on how I’d go by making it so if a player is above a rank in a group that a model from ServerStorage will duplicate itself into workspace but only for that player.

I’ve tried looking into group scripts etc… and I get the basic idea of this but unsure how I’d do it for moving models to workspace etc?

Thanks!

7 Likes

First use a server side script to with a function (on player added) to and use this:
Player | Documentation - Roblox Creator Hub.

Then if it returns true, clone the item and use a remote event to send the item to the client which a local script will then use that remote and parent to the workspace.

1 Like

First of all, the client can’t see nor interact with the ServerStorage.
You will have to put your model in ReplicatedStorage and put a local script in PlayerScripts.
The script should look like that :

local reqRank = 5; -- Required Rank.
local groupId = 0; -- Group Id
local plr = game.Players.LocalPlayer
local model = game.ReplicatedStorage. -- The model.
if plr:GetRankInGroup(groupId)>= reqRank then
model.Parent = workspace
end
5 Likes