here's the localscript from the tool of the fruit /eat
local localPlayer = game.Players.LocalPlayer
local Character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
local Mouse = localPlayer:GetMouse()
local Goma = game.ReplicatedStorage["Gomu Gomu"]:Clone()
script.Parent.Equipped:Connect(function()
Mouse.Button1Down:Connect(function()
script.RemoteEvent:FireServer()
delay(4.9,function()
Goma:Clone().Parent = localPlayer.Backpack
Goma:Clone().Parent = localPlayer.StarterGear
end)
wait(5)
script.Parent:Remove()
end)
end)
script.Parent.Unequipped:Connect(function()
end)
here's the ServerScript inside the LocalScript of the tool
script.Parent.OnServerEvent:Connect(function(Player)
local Char = Player.Character
Char.Humanoid:LoadAnimation(script.Folder.Animation):Play()
wait(4.7)
Char.Humanoid.Health = -10000000
end)
i already do a thing but after putting the tool in startergear and die the tool dont appear in the backpack and the script inside of the tool doesn't work , please help

6 comments
you need to clone it from a server script, not local.
and you already cloned it here 'local Goma = game.ReplicatedStorage["Gomu Gomu"]:Clone()' so you dont need to clone it again 'Goma:Clone().Parent'
you could just make everything in the regular script. you dont need the local.
and giving yourself the tool when you hold it wont work because when you die, you will lose it and cant hold it to clone. make another script in serverscriptservice or something and when the character spawns in, clone it to them
How should I do it from a normal script? , all those scripts come in the fruit tool
how i get the backpack in the serverscript?