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

Why is this not working please help?

local player = game.Players.LocalPlayer
y = 1
x = game.Lighting["Baton"]:Clone(); 
game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.E then 
		if y == 1 then
        player.Character.Humanoid:EquipTool(x)
		y = 2
		game.player.PlayerGui.InventoryGui.Frame.Frame.E.BorderColor3 = 13, 120, 177
		elseif y == 2 then
		player.Character.Humanoid:UnequipTools()
		y = 1
		end
    end 
end)

this my script the part that's not working is game.player.PlayerGui.InventoryGui.Frame.Frame.E.BorderColor3 = 13, 120, 177 its spost to make border color different

1 answer

✓ Accepted answer

The first thing you did wrong on that line was write game.player instead of player. The second was trying to set one property to three separate numbers when it should be set to Color3.new(13/255,120/255,177/255).

2 comments

0

thanks

0

nextime ill be more carful

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