So what it does is it will give the player the script and it will work but it doesn't work anymore when someone used it already i want it to make it work every time do you know how to fix it?
local Tool = script.Parent
local Player = nil
local Stabbable = true
local Server = script:WaitForChild("Give")
Tool.Equipped:Connect(function()
wait(0.1)
Player = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
end)
Tool.Activated:Connect(function()
if Stabbable == true and Player.Character:FindFirstChild("Value") == nil then
Stabbable = false
Server.Player.Value = Player
Server.Handle.Value = Tool.Handle:Clone()
Server.Parent = game:GetService("ServerScriptService")
Server.Disabled = false
game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
end
end)

3 comments
What's the error when you use it again?
Well it dosent work anymore when someone already use the tool
like for example i use the tool then i drop the tool and someone picks it up but its not going to work because i already used it