Answered by
4 years ago Edited 4 years ago
You can just clone the character of the player:
There are 2 ways to do this; Option 1: Where every player can see the model. Option 2: Just you can see the model, the first option I will do now:
Option 1 - Local Script (TextBoxI)
1 | local textbox = script.Parent |
2 | textbox:GetPropertyChangedSignal( "Text" ):Connect( function () |
3 | if textbot.Text = = game.Players.LocalPlayer.Name then |
4 | game.ReplicatedStorage.SpawnCharacter:FireServer() |
Option 1 - Server Script (ServerScriptService
01 | game.ReplicatedStorage.SpawnCharacter.OnServerEvent:Connect( function (player) |
02 | if player.Character then - Checks to see if they have a character |
03 | if game.Workspace:FindFirstChild( "Model" ..player.Name) then |
04 | game.Workspace:FindFirstChild( "Model" ..player.Name) :Destroy() |
06 | local model = player.Character:Clone() |
07 | model.Parent = game.Workspace |
08 | model.Name = "Model " ..player.Name |
09 | model:SetPrimaryPartCFrame(player.Character.PrimaryPart.CFrame + Vector 3. new( 0 , 0 ,- 15 )) |
11 | local model = player.Character:Clone() |
12 | model.Parent = game.Workspace |
13 | model.Name = "Model " ..player.Name |
14 | model:SetPrimaryPartCFrame(player.Character.PrimaryPart.CFrame + Vector 3. new( 0 , 0 ,- 15 )) |
Option 2 - Local Script (TextBox)
01 | local textbox = script.Parent |
02 | local player = game.Players.LocalPlayer |
03 | textbox:GetPropertyChangedSignal( "Text" ):Connect( function () |
04 | if textbot.Text = = player.Name then |
05 | if game.Workspace:FindFirstChild( "Model" ..player.Name) then |
06 | game.Workspace:FindFirstChild( "Model" ..player.Name) :Destroy() |
08 | local model = player.Character:Clone() |
09 | model.Parent = game.Workspace |
10 | model.Name = "Model " ..player.Name |
11 | model:SetPrimaryPartCFrame(player.Character.PrimaryPart.CFrame + Vector 3. new( 0 , 0 ,- 15 )) |
13 | local model = player.Character:Clone() |
14 | model.Parent = game.Workspace |
15 | model.Name = "Model " ..player.Name |
16 | model:SetPrimaryPartCFrame(player.Character.PrimaryPart.CFrame + Vector 3. new( 0 , 0 ,- 15 )) |
Please feel free to ask any questions, if I helped please accept this answer!