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

how to make only one person spawn as a different character to the rest?

Hello i have a script that allows me to have a custom character and the rest to have a different morph but when i spawn in as me the camera is locked and the body is floating while not playing any animation, Also with the display above it "StarterCharacter"

heres the script. This is also a script in serverscriptservice

local value = 0
local mods = {"BFFARESOOCOOL"}

game.Players.PlayerAdded:connect(function(plr)
	value = 0
end)

game.Players.PlayerAdded:connect(function(plr) 
	plr.CharacterAdded:connect(function(char) 
		wait(1) 
		if plr.Name == "BFFARESOOCOOL" and value == 0 then
			local model = game.ReplicatedStorage.Characters.StarterCharacter
			local model1 = model:Clone()
			model1.Parent = game.Workspace
			model1.PrimaryPart.CFrame = plr.Character.PrimaryPart.CFrame 
			plr.Character = model1
			model1.Humanoid.HipHeight = 3.8
			value = 1
			
		end
	end)
	end)

1 answer

I believe the issues are:

  1. you're not setting the camera's subject to the new character's humanoid
  2. the character has some anchored brick
  3. you probably don't have an animation script inside the player model, and if you do, it's either not a localscript, or doesn't work because of the reasons listed above

1 comment

0

how would i make the cameras subject to the new characters humanoid??

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