Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 1 year ago
Edited 1 year ago

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

Log in to vote
0
Answered by 1 year ago

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
0
how would i make the cameras subject to the new characters humanoid?? bffaresoocool -10 — 1y
Ad

Answer this question