Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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)




0
Your code works, I tested it in a Baseplate. Under StarterCharacterScripts, it changes the whole body. FlyingFighter11 20 — 5y
0
Sorry, I tested the first chunk not the whole script. FlyingFighter11 20 — 5y
0
really? when i tryed it changed the color but not to neon 23,31 dose not work helleric -3 — 5y
0
I only tested to line 17, sorry. FlyingFighter11 20 — 5y
View all comments (2 more)
0
its alright but can u test the rest of the script to see whats wrong plz helleric -3 — 5y
0
I've tried the script and there are things that do not work because you can not, change it changes you have to remove the pants and the shirt so it looks all gold and neon and if you use MeshPart not the same as BasePart are two different classes Anyway, I have tried and only change everything but not everything looks neon if I change the material. brok4d 77 — 5y

Answer this question