Inconsistencies between Studio testing and published games

I am making a game with a simple third-person camera gun system. After making the guns and testing them in Studio with no bugs, they didn’t work after publishing and playing through the Roblox website.

The third-person-camera works fine, however the guns don’t shoot. I have tried placing print statements in my code in an attempt to debug this, however none of them have printed. There are no errors, and the problem seems to be that ContextActionService is not detecting the LMB input.

Here is the game, feel free to look inside (You can click the three dots and open it in Studio):

I have ensured that I have Drafts disabled, published multiple times, restarted my computer and Studio. (This has persisted for multiple days.)

Please help, as I have encountered this issue before and found no solution.

#1 The game is private, I can’t look inside.

#2 There is no way to help without knowing specific details. Like what is the unexpected behavior you are experiencing in a live server and not in Studio.

Sorry! Didn’t expect a response so fast. The game is public now and you can click the three dots and edit it.

try removing the following lines in your script titled FireWeaponManager

script.AncestryChanged:Connect(function(_, parent)
	if not parent then
		ContextActionService:UnbindAction("FireWeaponAction")
	end
end)

(never mind this did not work)

Thanks for the help anyway!

charscharschars

i have found the issue, when i disable your action “FocusControl”, the gun is able to function in-game.

1 Like

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