You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want the tool to clone to the backpack with the local script working -
What is the issue? Include screenshots / videos if possible!
cloning the tool makes the local -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i tried firing a remote event when the script runs but the local script didn’t even detect the remote event and all the other solutions are for server scripts not working or they don’t have a solution yet
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
https://gyazo.com/a57e3e44874b7b54ac60be9547d14afa
the console should print: “equipped tool” but it doesn’t
script to insert the tool into the player’s backpack
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr)
local value = plr.Weapon --Weapon is a string value in the player
value.Value = script.Parent.Value.Value
if value.Value == "Ultrakill" then
print("a")
local tool = game.ReplicatedStorage.Weapons.Ultrakill:Clone()
tool.Parent = plr.Backpack
script.Parent.Parent.Parent:Destroy()
end
end)