This is a normal script and this game is Filtering Enabled and giving items wont work. Can someone help?
tool = game.ReplicatedStorage.Tools.Banana local player = game.Players.LocalPlayer game.ReplicatedStorage.NetworkFolder.LOL.OnClientEvent:connect(function() tool:Clone().Parent = player.Backpack end)
--Another local script script.Parent.ClickDetector.MouseClick:connect(function(plr) game.ReplicatedStorage.NetworkFolder.LOL:FireClient() end)
When a player tries to invoke this RemoteEvent, the player is automagically passed by. So:
local tool = game.ReplicatedStorage.Tools.Banana game.ReplicatedStorage.NetworkFolder.LOL.OnServerEvent:connect(function(player) tool:Clone().Parent = player.Backpack end)
Inside a localscript all you gotta do is:
game.ReplicatedStorage.NetworkFolder.LOL:FireServer()