Input Context working in studio, but not in game

Hello DevForum!

I recently started using Input Context and it works fine when I am playtesting in studio, but fails completely when I test in game (the Roblox app). Is this because this is still in bèta or am I doing something wrong? If you have any clue, please reply below, any help is appreciated!

Code:

local replicatedStorage = game:GetService("ReplicatedStorage")
local remotes = replicatedStorage:WaitForChild("remotes")
local fireRemote = remotes:WaitForChild("fireRemote")
local reloadRemote = remotes:WaitForChild("reloadRemote")

local workspaceContext = script.Parent
local fireAction = workspaceContext.fireAction
local reloadAction = workspaceContext.reloadAction

fireAction.Pressed:Connect(function()
	print('fire pressed')
	fireRemote:FireServer()
end)

reloadAction.Pressed:Connect(function()
	print('reload pressed')
	reloadRemote:FireServer()
end)

Hierarchy:

Have a nice day!

Yep it is still in beta and will not work on live servers.

Ah, dang it time to replace my code then, thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.