I want to make this present the players character to them when they are in the menu, I have tried replacing the humanoid and also replacing the model entirely, none worked and I’m not sure what to do.
local Players = game:GetService("Players")
local dummy = game.Workspace.MainMenu.PlayerChar
local dummyHumanoid = dummy.Humanoid
local id = game:GetService("Players").Player.UserID
local Modle = game.Players:CreateHumanoidModelFromUserId(1537563005)
--1537563005
local Rotation = CFrame.Angles(0, math.rad(140), 0)
local Movement = CFrame.new(-685.991, 13.101, -953.575)
Modle.SetPrimaryPartCFrame(Rotation)
Modle.SetPrimaryPartCFrame(Movement)
wait(1)
dummy:Destroy()
I’m not entirely sure what to do or try next. Any help?
local Players = game:GetService("Players")
local dummy = game.Workspace.MainMenu.PlayerChar
local id = Players.Player.UserID
local Description = game.Players:GetHumanoidDescriptionFromUserId(1537563005)
playerDummy = dummy:Clone()
playerDummy.Humanoid:ApplyDescription(Description)
wait(1)
dummy:Destroy()
Thats a local script? If you clone the dummy from a server script it wont work.
If thats a local script, whats local id = Players.Player.UserID I think it should be local id = Players.LocalPlayer.UserId
And the dummy doesnt need to be a clone from the original player, just a blank dummy works, the ApplyDescription will do the job to turning it into the player’s appearance
Oh another thing. You are cloning the dummy which is at game.Workspace.MAINMENU, thats not needed.
Store a blank dummy in ReplicatedStorage, and clone it whenerver you need it for the menu.
Example. I have a menu that everytime player clicks Menu Button, it shows a clone of their character. Im not using the real player character, Im just cloning a blank dummy from client side, and apply the HumanoidDescription
Ill look into that soon, I was gonna move it all around after it was working as the previous thing I was doing I had to move it in and out of server storage every time I changed it
local Players = game:GetService("Players")
local Replicated = game:GetService("ReplicatedStorage")
local dummy = Replicated.PlayerChar
local player = Players.LocalPlayer
local id = player.UserId
local Description = game.Players:GetHumanoidDescriptionFromUserId(1537563005)
playerDummy = dummy:Clone()
playerDummy.Humanoid:ApplyDescription(Description)
Only changed line 7 to local Description = game.Players:GetHumanoidDescriptionFromUserId(id)
and added this playerDummy.Parent = game.Workspace.MainMenu