COMMUNITY QUESTION
How do I change values of a Object whos name has spaces?
1 answer
In a Local Script:
local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
--you may want to wait some before looping to allow parts to load
for _,v in pairs(char:GetChildren()) do
if v.Name:match("%s") and v:IsA("BasePart") then --the string pattern for whitespace
v.Transparency = 1
end
end
1 comment
0
I'm not trying to edit the local player. Its a Humanoid NPC
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
player's limbs don't have spaces in them though
ur silly http://prntscr.com/lx9viu
that's R6. hardly anybody uses that anymore https://gyazo.com/794a5085d0a4b59d84a76cd00e08c712
am old fashioned.