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?