im trying to change glove colour this is the script:
local WhiteGloves = game.ReplicatedStorage.Punch.Handle
script.Parent.MouseButton1Click:Connet(function()
WhiteGloves.BrickColor = BrickColor.new(248, 248, 248)
end)
im trying to change glove colour this is the script:
local WhiteGloves = game.ReplicatedStorage.Punch.Handle
script.Parent.MouseButton1Click:Connet(function()
WhiteGloves.BrickColor = BrickColor.new(248, 248, 248)
end)
WhiteGloves.Color = Color3.fromRGB(248, 248, 248)
That’s not a valid BrickColor value, try using “Color3.fromRGB” instead.
Connet
Is spelled incorrectly too.
local WhiteGloves = game.ReplicatedStorage.Punch.Handle
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
WhiteGloves.Color = Color3.fromRGB(248, 248, 248)
end)
it doesnt work the colour stays as red
Then that’s likely an issue on your end, make sure you’re attempting to color the correct part.
It may also be worth checking the console for any errors.
Is your item a meshpart? If so you need to enable a property in it that allows it to show the color.
nothing works ive tried everything
Are you trying to change the handle of a tool you have equipped?
yes im trying to change the handle of a tool i have equipped
Then it won’t be inside ReplicatedStorage it’ll be inside the player’s character/player’s backpack.
i put it in replicated storage because i only want the player to get the tool when they are inside the boxing ring
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Backpack = Player:WaitForChild("Backpack")
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
local Tool = Character:FindFirstChild("Punch") or Backpack:FindFirstChild("Punch")
if Tool then
Tool.Handle.Color = Color3.new(1, 1, 1) --white
end
end)
Assuming this is a local script.
its inside replicated storage so what do i do?
I thought you said the tool was equipped by the player’s character.
the tool is inside the replicated storage and once your in the ring its in the players backpack