Im trying to set a Part.Color using Color3.fromRGB(RedString, GreenString, BlueString).
The strings are texts from textboxs.
Code:
game.ReplicatedStorage.ColorSprayEvent.OnServerEvent:Connect(function(plr, sc, Rtex, Gtex, Btex)
sc.Color = Color3.fromRGB(Rtex, Gtex, Btex)
end)
Thanks!
Okay you never told us what the problem is, is it not working?
Are the colors it’s changing to not accurate?
game.ReplicatedStorage.ColorSprayEvent.OnServerEvent:Connect(function(plr, sc, Rtex, Gtex, Btex)
sc.Color = Color3.fromRGB(tonumber(Rtex), tonumber(Gtex), tonumber(Btex))
end)
1 Like
It doesnt work, but I think rescriptedd got it
1 Like
Yes, now works, thanks! I think it was because sometimes it could be used to write words too 
system
(system)
Closed
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.