i made a local script that clones the player is there any way to send the clones to the server and make other players see them
local player = game.Players.LocalPlayer
local rs = game.ReplicatedStorage
local event = rs.SandevistanFolder:WaitForChild("SandevistanRemote")
local uis = game:GetService("UserInputService")
local ClonesFolder = game.Workspace:WaitForChild("ClonesFolder")
uis.InputBegan:Connect(function(input, processed)
if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.E and processed == false then
local timepassed = tick()
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")
local function CloneDestroy(clone)
task.wait(0.7)
clone:Destroy()
end
local function CloneCharacter()
if character then
character.Archivable = true
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
local clone = character:Clone()
for _, cloneChild in pairs(clone:GetChildren()) do
if cloneChild:IsA("BasePart") then
cloneChild.Anchored = true
cloneChild.CanCollide = false
cloneChild.CollisionGroup = "Clone"
end
end
clone.HumanoidRootPart.CFrame = humanoidRootPart.CFrame
clone.Parent = ClonesFolder
clone.Name = "Clone"
CloneDestroy(clone)
end
end
end
while tick() - timepassed < 5 and humanoid.Health > 0 do
task.spawn(CloneCharacter)
task.wait(.1)
end
end
end)
** You are now Level 8! **