Why doesnt remote event not work on local?

Hi, So today I was trying to send some info from server to local, But the local just seems to not want ANYTHING to do with remote events heres the server script:

local ATM = script.Parent.Parent

local CP = ATM.CamPart
local TP = ATM.TelPart

local Prox = script.Parent

local RE = game.ReplicatedStorage:WaitForChild("RemoteEvent")

local RE2 = game.ReplicatedStorage.RemoteEvent2

local InUse = false


Prox.Triggered:Connect(function(Player)
	if InUse == false then
		
		InUse = true
		
	local Character = Player.Character
	local HRP = Character:WaitForChild("HumanoidRootPart")
	local HUM = Character:WaitForChild("Humanoid")
	
	local SkillCheck = Player.PlayerGui.SkillCheck.ImageLabel
	
	HRP.CFrame = TP.CFrame
	
	HUM.WalkSpeed = 0
	
	HUM.JumpHeight = 0
	
	RE:FireClient(Player, CP.CFrame)
	
	end
end)

The server script is located in a proximityprompt in the workspace heres the local script:

local Re = game.ReplicatedStorage:WaitForChild("RemoteEvent")


Re.OnClientEvent:Connect(function(Cp)
	local CM = game.Workspace.CurrentCamera
	
	CM.CameraType = Enum.CameraType.Scriptable
	
	CM.CFrame = Cp
end)

The local script is located in the replicated storage, So how can I fix this?

LocalScript will not run unless parented to specfic locations. Most commonly, the local Player’s PlayerScripts Folder or character. Based on the code you posted, it might work simply by changing the LocalScript’s location to StarterPlayerScripts (the contents of StarterPlayerScripts is cloned to the PlayerScripts folder of each Player when they join). As an extra check to ensure the LocalScript is running its code, add a print at the very top.

thank you so much dude, It actually works thank you