So I can make it trigger the animation in my gui so that people can press "e" and my gui animation will occur I have no idea how to do this and I need help so please help.
UserInputService is not required to create a KeyDown function.
I suggest reading the Wiki for help on KeyDown and help on Animations.
Click on the "Playing Animations in Player Character", section 2.1, in the table of contents of the Wiki I linked you for the animations.
How to make a function for the key F from a LocalScript:
local player = game.Players.LocalPlayer local Mouse = player:GetMouse() Mouse.KeyDown:connect(function(key)) if key == "f" then --code end end)
local plr = game.Players.LocalPlayer local mouse = plr:GetMouse() mouse.KeyDown:connect(function(key) print(key) end)