I know, A weird title but I don’t know how to explain so I’m just gonna show you the scripts:
This is the one in my tool
script.Parent.Activated:Connect(function()
local player = game.Players.LocalPlayer
local char = game.Workspace:FindFirstChild(player.Name)
local head = char:WaitForChild('Head')
local mouse = player:GetMouse()
local target = game.Workspace:FindFirstChild(mouse.Target.Name)
local namevar = Instance.new('')
local MAXDIS = 60
if mouse.Target:FindFirstChild('Killable') and target then
player.PlayerGui.ArrowUI.Enabled = true
player.PlayerGui.ArrowUI.Adornee = mouse.Target:FindFirstChild('navigate')
script.shoot:FireServer(target)
end
end)
Now the problem here is that my target is called ‘doll’ but I have more than 1 object called doll in the workspace. How can I make sure I got the right one?
You can open an unique attributation for the part and then you can check it with a code maybe?
Or you can check it’s parent, transparency, child, blockcolor or any other specific stat.
I was thinking that first too but I just think the problem here is that all the dolls have the same name, parent, color, transparency,… so it is really hard to do this.