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:
1 | script.Parent.MouseButton 1 Click:Connect( function () |
3 | game.ReplicatedStorage.ChangeTrailColor:FireServer(script.Parent.Parent.ColorDisplay.BackgroundColor 3 ) |
5 | script.Parent.Parent.Visible = false |
7 | print (script.Parent.Parent.ColorDisplay.BackgroundColor 3 ) |
Here is server side script:
01 | game.ReplicatedStorage.ChangeTrailColor.OnServerEvent:Connect( function (plr, color) |
05 | if not plr.Character then |
07 | plr.CharacterAdded:wait(); |
15 | char.HumanoidRootPart.Trail.Color = ColorSequence.new(Color 3. fromRGB(color),Color 3. fromRGB(color)) |
It always prints numbers like 1, 0, 0 instead of 255,0,0. Please help!