script
local rep = game:GetService("ReplicatedStorage")
local folder = rep:WaitForChild("Folder")
local rem = folder:WaitForChild("RemoteEvent")
local ghost = folder:WaitForChild("ghost")
rem.OnServerEvent:Connect(function(plr)
local char = plr.Character or plr.CharacterAdded:Wait()
local humrp = char:WaitForChild("HumanoidRootPart")
local clone1 = ghost:Clone()
local clone2 = ghost:Clone()
local hum1 = clone1.Humanoid
hum1.DisplayName = string.split(plr.Name,"Ghost")
local humrp1 = clone1.HumanoidRootPart
local humrp2 = clone2.HumanoidRootPart
clone1.Parent = workspace
clone2.Parent = workspace
humrp1.CFrame = humrp.CFrame * CFrame.new(6,0,0)
humrp2.CFrame = humrp.CFrame * CFrame.new(-6,0,0)
print("OK")
end)
error message:
Unable to assign property DisplayName. string expected, got table