Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[Solved]My trail color changer not working?

So I have a trail color changer, which fires and recieves correctly, but it doesn't change the color correctly. The color always changes to black. Here is the local script:

script.Parent.MouseButton1Click:Connect(function()

    game.ReplicatedStorage.ChangeTrailColor:FireServer(script.Parent.Parent.ColorDisplay.BackgroundColor3)
    
    script.Parent.Parent.Visible = false
    
    print(script.Parent.Parent.ColorDisplay.BackgroundColor3)
    
    end)

Here is server side script:

game.ReplicatedStorage.ChangeTrailColor.OnServerEvent:Connect(function(plr, color)

  

if not plr.Character then

plr.CharacterAdded:wait();

char = plr.Character

else

char = plr.Character

char.HumanoidRootPart.Trail.Color = ColorSequence.new(Color3.fromRGB(color),Color3.fromRGB(color))

end

end)

It always prints numbers like 1, 0, 0 instead of 255,0,0. Please help!

2 answers

It is not working because you didn't add the certain color you wanted into your Script!

2 comments

0

Thats the color, its the frames background color.

0

Captain also read your roblox messages

line 1 should be

script.Parent.Button1Down:Connect(function()

Plus you need to specify a color.

This discussion is preserved as it was. New answers, comments, and votes are closed.