Touching a part doesn't fire the remoteevent

I’m trying to test a system that I’m trying to implement, which is a simple mining system. However, when touching the part that’s supposed to fire the remote event, it isn’t working as intended, as it does completely nothing unfortunately. Below you’ll find the possibly problematic code.

Hitbox.Touched:Connect(function(player)
	OreTouchedEvent:FireServer(player, Rock)
	print("Touched")
end)

image

1 Like

The problem is LocalScripts don’t run in workspace.

Or actually they do after an update a year ago or so.

Create a normal script and set it’s RunContext property to Client

Aha! This has worked, thank you very much for pointing that out.

1 Like

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