Hey so right now I’m trying to make a script where when you activate a proximity prompt it gives you a tool. Simple right? Yeah, but the issue im having is that there is multiple tool givers and they can equip multiple tools at once.
So what I’m asking is, how do I make it so when they get it it doesn’t automatically equip.
Heres the code:
local PlayerService = game:GetService('Players')
local Potion = game.ServerStorage.Tools.BodySwapPotion
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local Potion = Potion:Clone()
Potion.Handle.Anchored = false
Potion.Handle.CanCollide = false
Potion.Parent = Character
end)
local PlayerService = game:GetService('Players')
local Potion = game.ServerStorage.Tools.BodySwapPotion
local Prompt = script.Parent.ProximityPrompt
Prompt.Triggered:Connect(function(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local Potion = Potion:Clone()
Potion.Handle.Anchored = false
Potion.Handle.CanCollide = false
Potion.Parent = Character.Player.Backpack -- what i changed
end)
I think this is what you mean? Reply if it is not!