Remote Event won't register

I want to be able to fire a remove event that prints “Hit” when I click. I’m currently trying to develop a combat system, but for some reason the Remote Event won’t properly register. I’ve tried to fix it for the past few hours, and I’m not sure if I’m just overlooking something. Could someone help?

This is my Local Script
Local Script

and this is my Server Script.
Server Script

Am I doing something wrong? My remote is located in Replicated Storage, and it is labeled “Fighting”

:connect

should be

:Connect

you wrote “connect” with a lowercase c I believe it needs to be capitalized so try “Connect”

:connect works but it’s deprecated.

1 Like

It still doesn’t work, I fixed the connect, but I’m getting an error on this line

local Remote = ReplicatedStorage:WaitForChild(“Fighting”)

Well they should at least try it and see if it fits things. Also why did they deprecate a lowercase spelling of :Connect?

What’s the error you’re getting?

14:57:18.501 Script ‘Players.hpgames16.Backpack.MeleeCombat_Local’, Line 8 - Studio - MeleeCombat_Local:8

No clue, but I can assure you changing it from :connect to :Connect will not fix the problem.

1 Like

can you show us a picture of the children of replicated storage? maybe you miss named it

RemoteStorage

Here you go, I checked the spelling for like the past 30 minutes to make sure it was all right, trying to remove any spaces, but it seems just fine to me

This script should be working right?

Also, please use UserInputService over mouse. Mouse has been superseded by it and it’s much better to use for your game.

1 Like

Did you define Player in the LocalScript?

It should have this at the very top:
Player = game.Players.LocalPlayer

It’s not in the chat service folder? Plus dragging it above doesn’t make a differance, plus you can’t

Thats my bad, I looked at it the wrong way

@Koyonoko Will do, thank you

@Serializer Yes, it’s at the very top exactly like that

@kaiyellow2008 Are you sure that’s the issue? To me it shows it being in RemoteStorage, I tried dragging it there again to make sure. I think the DefaultChatSystems thing is just also in Remote Storage

1 Like

yeah I misunderstood the picture

Is there a problem with my Roblox Studio? Or is it something obvious that I’m just not seeing?

they deprecated a bunch of stuff, like destroy to Destroy, MeshID to MeshId, className to ClassName, etc. I think they just wanted to keep things consistent

maybe try removing “WaitForChild” and add “FindFirstChild” or just game.ReplicatedStorage.Fighting