Okay, so I'm wanting to make it so my character presses e and turns into another character. --Local Script--
local player = game:GetService("Players")
local rep = game:GetService("ReplicatedStorage")
local event = rep.Remotes.Shift
game:GetService("UserInputService").InputBegan:connect(function (input)
if input.KeyCode == Enum.KeyCode.E then
event:FireServer()
end
end)
--Server Script--
local event = game.ReplicatedStorage.Remotes.Shift
local armor = game.Workspace["Armored Titan"]
local function armored(player)
---
local hum = player.Character:WaitForChild("Humanoid"):Clone()
hum.RigType = "R15"
hum.Parent = armor
player.Character = armor
end
event.OnServerEvent:Connect(armored)
Right now all it does is this https://gyazo.com/d689dfff95412912279c0c2d38728171

5 comments
you should use userinputservice instead of mouse.KeyDown
Will that help my question?
Just a suggestion, I would use UserInputService for that.
Hex_0517 Yes it would
Okay fixed it