Cloning not working

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

Its not explosion,But a part,That look like explosion

make sure the “Explosion effect” it is not folder or model and the script not local script

Its not a model its a meshpart and the script is server sided

if the script active after player join you have to wait the character to load

Yes,the character is already loaded

your script works fine for me i tested it

can you send the full script ?

Well i cant,But basicly its randomly choosing attack but i hijack it to that it always choose attack n2 which is the script i send to you,By instead of rng = math.random,I change it to rng = 2

Sending the full script will make it easier for us to find the problem

Somehow it has been fixed,Anyway i think the problem is on my place so thankyou for your time