Hello everyone!
//TLDR: I spawn as a Werewolf. But how can I make sure I only morph when I press, for example, E? I know how UserInputService works, it's just that I don't know the proper method.
I have a Script in ServerScriptService which Clones the CustomCharacter Model in ServerStorage into Workspace. This essentially morphs the player into a "Werewolf" (Slavic Mythology)
However, I want it to work with a key-bind, such as UserInputService. The only problem surrounding this, is that key-binds only work from a LocalScript. The essential part, is that when I press 'E' once it will morph me, and when I press it again my normal character should appear.
Overall, what I want to ask you is how this can be accomplished. The method I tried was creating a BoolValue, which is what I normally do, unfortunately something just isn't right... Because I created it in order to Disable/Enable the Script which morphs me into the Werewolf.
Any solutions? Thank you in advance.
Like this:
userinput = game:GetService("UserInputService") if userinput:IsKeyDown(Enum.KeyCode.101) then -- Your code here end
Quite simple, really. Enum also lets you type the letter instead of the number, so if you want to do that instead then go ahead.