I am trying to make a script that once you click on specific part it would add a value inside local player 1 script
script.Parent.ClickDetector.MouseClick:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
game.ReplicatedStorage.GiveIng1:FireClient(player)
end)
2 script
game.ReplicatedStorage.GiveIng1.OnClientEvent:Connect(function()
local player = game.Players.LocalPlayer
player.Item.Value = 1
player.InvSpace = true
end)
