How to localize this model?

This is a sinple question I want to localize this model called “(player name`s arrow”
Captura de tela 2021-12-26 114539
By a local script I have no idea to how localize it. local arrow model = game.workspace.arowmodel?? Thanks for your help. he is inside of workspace. And I want to put ths to localize all players that have the arow model.

When object name has special characters or blank spaces, your syntax should be something like this:

local arrowModel = player.character["danielfornari20's Arrow"]

(also, never insert blank spaces in variable names. A variable name like this: “arrow model” isn’t possible)

1 Like

I will test. No the name Theres no space in it . Thanks for your help.

But I want to put ths to localize all players that have the arow model.

You wanna get all player that has an Arrow model, that’s right?

--Script inside StarterCharacterScripts
--runs inside player characters when they load
local Character = script.Parent 

function ArrowFunction(arrow)
	if not arrow then return end
	--apply code to arrow
	print(Character, arrow)
end

local arrowModel = workspace:FindFirstChild(Character.Name.."'s Arrow")
ArrowFunction(arrowModel)

workspace.ChildAdded:Connect(function(child)
	if child.Name == Character.Name.."'s Arrow" then
		ArrowFunction(child)
	end
end)

Yes is it (minimum 30 caracteres)

I will make it thanks for help

Oh sorry the model it’s in the workspace you can upate the script?

1 Like