I was creating a script that spawns a specific part with code from the ServerStorage when i press E. However, i can't figure out what to do next. Here is the entire code:
local pillar = game.ServerStorage.pillarthing
pillarclone = pillar:Clone()
pillarclone.Parent = workspace
local player = game.Players.LocalPlayer
local character = player.Character
pillarclone.Position = character
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.E then
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

5 comments
Still don't understand why the hell they decided to deprecate the lower-case Connect :/
It is not a really big deal just for an uppercase C you know :P.
It worked perfectly. Thanks.
no problem :)
They deprecated lower-case methods because ROBLOX wanted to shift their naming conventions to upper-camel-case.