i created a script that clone the tool from replicatedStorage, and put in the backpack when press E, but i want it to equip the tool too when press E, but isnt working, there is a other way to do this?
wait()
local toolname = script.Parent.Name
local replicatedstorage = game:GetService("ReplicatedStorage")
local fruit = replicatedstorage.Skills:WaitForChild(script.Parent.Parent.Parent.Parent.Stats.AkumaNoMi.Value)
local tool = fruit:WaitForChild(script.Parent.Name)
local plr = game.Players.LocalPlayer
local plrc = plr.Character
Mouse = plr:GetMouse()
function PressE(key) --Edit PressQ to what ever key you want. Example: PressF (capitals matter)
if (key == "e") then -- Edit "q" to the same key you chose in the line above! Example: "f" (make sure it isn't in caps!)
if script.Parent.Reloading.Value == "No" then
local toolCloning = tool:Clone()
toolCloning.Parent = plr.Backpack
wait(0.25)
plrc.Humanoid:EquipTool(script.Parent.Parent.Parent.Parent.Backpack.toolname)
end
end
end
Mouse.KeyDown:connect(PressE) --Edit (PressQ) to the same key you chose in line 8 and 9. Example: PressF

3 comments
the script doesn't work anymore :(
oh, wait a minute
it worked, thanks