Answered by
8 years ago Edited 8 years ago
When using decals, be sure you subtract 1 from the ID. If it still does not work, keep subtracting, as sometimes the IDs can end up a couple apart.
Also do note that I recommend adding an if statement to ensure gameProcessedEvent
is false so it doesn't pick up chat input.
Example:
1 | function onKeyPress(inputObject, gameProcessedEvent) |
2 | if inputObject.KeyCode = = Enum.KeyCode.Q and gameProcessedEvent = = false then |
3 | workspace.Pet.Decal.Texture = "rbxassetid://" ..script.Parent.Text |
7 | game:GetService( "UserInputService" ).InputBegan:connect(onKeyPress) |