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

Your title should be specific! Describe your problem concisely?

I tried making an auto morph for a group of mine, and it randomly works and doesn't work.

Excuse my title, I kept getting 'Your title should be specific! Describe your problem concisely.'

Here's my script:

game.Players.PlayerAdded:Connect(function(player)
	if player:IsInGroup("5058689") then
		print("Check")
		local ranks = {
		Emperor = 255,
		Empress = 254,
		Architect = 253,
		Praetor = 252,
		Centurion = 251,
		Legionary = 250
			}
		
		if player:GetRankInGroup("5058689") == ranks.Emperor then
			local starterEmperor = game:GetService("ServerStorage").StarterEmperor
			print("test")
			local clone = starterEmperor:Clone()
			print("ye")
			clone.Name = "StarterCharacter"
			print("yee")
			clone.Parent = game.StarterPlayer
			print("yeeet")
		end
		
		if player:GetRankInGroup("5058689") == ranks.Architect then
			local starterArchitect = game:GetService("ServerStorage").StarterArchitect
			local clone = starterArchitect:Clone()
			clone.Name = "StarterCharacter"
			clone.Parent = game.StarterPlayer
		end
		
		if player:GetRankInGroup("5058689") == ranks.Praetor then
			local starterPraetor = game:GetService("ServerStorage").StarterPraetor
			local clone = starterPraetor:Clone()
			clone.Name = "StarterCharacter"
			clone.Parent = game.StarterPlayer
		end
		
		if player:GetRankInGroup("5058689") == ranks.Centurion then
			local starterCenturion = game:GetService("ServerStorage").StarterCenturion
			local clone = starterCenturion:Clone()
			clone.Name = "StarterCharacter"
			clone.Parent = game.StarterPlayer
		end
		
		if player:GetRankInGroup("5058689") == ranks.Legionary then
			local starterLegionary = game:GetService("ServerStorage").StarterLegionary
			local clone = starterLegionary:Clone()
			clone.Name = "StarterCharacter"
			clone.Parent = game.StarterPlayer
		end
	end
end)

Also, if you want to join it join DM me AaronWilhelm#0475 on discord.

1 answer

// Try to not make the numbers into strings, make it a regular number.

Correct Example: game.Players.builderman:IsInGroup(1051842)

Wrong Example: game.Players.builderman:IsInGroup(“1051842”)

// Also, if your applying a morph directly to one player, I have no idea why your using game.StarterPlayer For one, it’s not accessible (it’s only for local scripts)

6 comments

0

Is there a way to morph the player otherwise?

0

I would recommend humanoid descriptions but this is a new type of feature for the roblox library (I believe there isn’t even a documentation yet), I’m not an expert on morphing so I wouldn’t know much but if you look at different morphing systems you can recreate their techniques.

0

The only thing wrong with humanoid descriptions are that I have welded shields to their arms.

0

It works in studio now but now in game.

0

Just do a combination and see what works best together

0

Would you like me to send you the tc

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