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!