i am trying to make my chars body all neon with a script but it only make hands neon how do i fix?
Asked by
5 years ago Edited 5 years ago
local plr = game.Players.LocalPlayer
local chr = plr.Character
local ref = game.Workspace.Part
local hum = chr:WaitForChild("Humanoid")
local InputService = game:GetService("UserInputService")
InputService.InputBegan:Connect(function(input)
local plr = game.Players.LocalPlayer
local chr = plr.Character
local hum = chr.Humanoid
local key = input.KeyCode
if key == Enum.KeyCode.R then
for _,body in pairs(chr:GetChildren()) do
if body:IsA("BasePart") then
body.BrickColor = BrickColor.new("Gold")
body.Material = "Neon"
end
for _,size in pairs(hum:GetChildren())do
if size:IsA("NumberValue") then
size.Value = 5
end
-- this dose work as well
for _,resize in pairs(hum:GetChildren()) do
if resize.Name == "BodyDepthScale" or "BodyWidthScale" or "HeadScale" then
resize.Value = 7
end
end
end
end
end
end)