When equals is pushed the gui stays the same and does not change. Here is the code:
function onInputBegan(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
local keyPressed = input.KeyCode
script.Parent.Text = keyPressed
function onKeyPress(inputObject)
if inputObject.KeyCode == Enum.KeyCode.Equals then
print("= was pressed")
script.Parent.Parent.Junior = script.Parent.Text
script.Parent.Text = " "
end
end
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)
game:GetService("UserInputService").InputBegan:connect(onInputBegan)
Here is the error I'm getting:
18:19:31.821 - Attempt to connect failed: Passed value is not a function
18:19:31.821 - Stack Begin
18:19:31.822 - Script 'Players.Player1.PlayerGui.ScreenGui.Frame.TextBox.LocalScript', Line 15
18:19:31.822 - Stack End
Is there anything else you want to know? Say a comment... I suck at questions sorry...
Thanks-arrowman888
