Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make an Auto Morph with group restrictions?

So lets say you join a certain group and you join the game, how do i make it so you spawn as my custom starter character instead of the default character. but the one thing is i need it to auto apply itself to the group members and to go a bit more advanced a morph for each rank. technically i need a morph that apply it self on spawn for group members and certain ranks

1 answer

Try using this local script:

local player = game.Players.LocalPlayer
local starterChar = workspace.StarterChar --Hide starterChar somewhere in workspace else this wont work
local remote = game.ReplicatedStorage:WaitForChild("RemoteEvent")

if player:GetRankInGroup(000000) == 1 then
	starterChar:Clone().Parent = game.StarterPlayer
	remote:FireServer()
end

This gets their rank in your group and checks it with a number, then we cloned a starter character before the character would spawn. And in the server:

local remote = game.ReplicatedStorage:WaitForChild("RemoteEvent")

remote.OnServerEvent:Connect(function(player)
	player:LoadCharacter()
end)

Hope this helped! :D

2 comments

0

are all those zeros th group id?

0

It didnt work

This discussion is preserved as it was. New answers, comments, and votes are closed.