Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Tool break if cloned and put it in Backpack?

Asked by 4 years ago
Edited 4 years ago

i'll explain this is a little bit confusing

first off my tool is filtering enabled friendly! so i don't know why it would break! when i put it on starterpack in the studio and play it on the game it works normally but when i clone it and put it in the backpack the server script isn't working. i know that the local script is working cause of the animation playing. i put a print() on the serverscript to see if it work but nothing is printing. so i checked in the game if the serverscript is inside the tool,and its there. so i checked if its disabled and its not disabled. Anyone help me please!

here's the whole code

game.ReplicatedStorage.Archer.OnServerEvent:Connect(function(plr)
    wait(1)
    local Weapon = game.ReplicatedStorage.Bow
    Weapon:Clone().Parent = plr.Backpack
end)

game.ReplicatedStorage.SwordsMan.OnServerEvent:Connect(function(plr)
    wait(1)
    local Weapon = game.ReplicatedStorage.PvPKatana:Clone()
    Weapon.Parent = plr.Backpack
end)
0
im honestly confuse why is it doing this,this didn't happen before! i didn't change the clone script or anything.This just one day break! Cyrellejheff 11 — 4y
0
You need copy your tool from ReplicatedStorage ArtemVoronin0 171 — 4y
0
i am copying it from replicated storage Cyrellejheff 11 — 4y
0
Maybe problem in the code, can you show part of code? ArtemVoronin0 171 — 4y
View all comments (5 more)
0
ok Cyrellejheff 11 — 4y
0
Done! Cyrellejheff 11 — 4y
0
Hmm... Sorry I can't decide what's the problem. ArtemVoronin0 171 — 4y
0
same here lol Cyrellejheff 11 — 4y
0
Try to put prints in every line, with different texts, so you will know where's the problem. Maybe the RemoteEvent isnt triggered WoTrox 345 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

I figured it out

Ad

Answer this question