This script is located in the ServerScriptService and I have all of these variety of tools, guns etc.
I want the ObjectName to be unique and give individual tools showing their own name, but every other tool says "Tool" as the object name.
So in conclusion, how do I make it so it shows it's own name? I forgot and I don't know what it's really called for it.
local pps = game:GetService("ProximityPromptService") local distance = 5 local timeToHold = 0 pps.PromptTriggered:Connect(function(pp, plr) local tool = pp.Parent.Parent if tool:IsA("Tool") then tool.Parent = plr.Backpack pp:Destroy() end end) while wait() do for i, descendant in pairs(workspace:GetDescendants()) do if descendant:IsA("Tool") and descendant:FindFirstChild("Handle") and not game.Players:GetPlayerFromCharacter(descendant.Parent) then if descendant.Handle:FindFirstChild("TouchInterest") then descendant.Handle.TouchInterest:Destroy() end local pp = descendant.Handle:FindFirstChild("ProximityPrompt") if not pp then pp = Instance.new("ProximityPrompt") pp.MaxActivationDistance = distance pp.HoldDuration = timeToHold pp.RequiresLineOfSight = false pp.ObjectText = "Tool" pp.ActionText = "Pick Up" pp.Parent = descendant.Handle end end end end
It has something to do with line 39 "pp.ObjectText = "Tool"" but in the quotation marks, I forgot how to put the tool name that is being picked up.
try doing
pp.ObjectText = Tool.Name