Cloning not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to clone

  2. What is the issue? So i have simple clone script when it clone it print a message from a debuging print in the function but,No clone appear

  3. What solutions have you tried so far? Why this wont work

local clne = game.ServerStorage["Explosion effect"]:Clone()
		clne.Position = Vector3.new(script.Parent.Parent.HumanoidRootPart.Position.X,script.Parent.Parent.HumanoidRootPart.Position.Y-3,script.Parent.Parent.HumanoidRootPart.Position.Z)
		clne.Parent = workspace
		print("Cloned")

Server script no error it print.There’s no clone in workspace,From my explorer

1 Like

If you are on a plateform and your clone is small, you won’t see it has it will appear above your legs. Also, is your part anchored? is your part CanCollide true? is your part Transparency 1?

1 Like

Uhh i cant see my clone in the explorer

What sort of part is the “Explosion effect”.

Is it just a part, a particle emitter, what?

A part,No script,Except transparency fading tweening,But,I still cant see the part in the explorer

Im assuming it is part of a player? If so, what kind of script is it in?

Its a tool,WHich should work,And its a server script,Called by a remote event

You have to use replicated storage, server storages won’t work.
In your case, just replace server storage with ReplicatedStorage

They say it is in a serverscript, so it shouldn’t matter

If I’m not wrong, you can’t clone things from the server storage.

1 Like

just tested cloning from server storage. It definitely works

Doesn’t work for me. If I use server storage, the particle that I put in it doesn’t clone. It only changes it’s parent.

Does the tool have a handle? if not then disable requires handle in tool.

It does print from the function,But no cloning

Do you have a screenshot of your server storage and if possible the locations of the tool and script when you’re attempting to use it? This would help all of us better understand your issue.

Can you try using replicated storage instead of server storage?

Add the explosion effect in rep storage and do

game.ReplicatedStorage:WaitForChild("Explosion effect"):Clone()

If you clone from the ServerStorage on a script, then place it in the workspace the client will see it. It’s the same as using ReplicatedStorage. The only difference is the client only gets access to it once its in the workspace when using ServerStorage. Where as they always have access to it in ReplicatedStorage.

2 Likes

First of all I’d like to address something.

This is incorrect, in fact you should actively be using ServerStorage for a large portion of cloning within your game.

OP, there is no portion of your code that we can effectively debug for you because you are not doing anything wrong. We can help you further only if you show your hierarchy, because the problem does not lie in your code.

Additionally, this is a bad way to change a part’s position. Ideally, for changing a single axis, you can use Vector addition and receive the same result.

Vector3.new(1,2,3) + Vector3.new(0,2,0) -- A vector of (1,4,3)
1 Like

you have to use Instance.new(“Explosion”) you cant clone Explosion bc they Explod after player join the game lol Explosion | Roblox Creator Documentation

like this look

1. local explosion = Instance.new("Explosion")
2. explosion.BlastRadius = 60
3. explosion.ExplosionType = Enum.ExplosionType.Craters -- damages terrain
4. explosion.Position = Vector3.new(0, 10, 0)
5. explosion.Parent = game.Workspace