Need help with remote event not firing and EZ CAMERA

I kid you not, I’ve been trying to work on this for the past 5 hours with no success. I don’t know what’s wrong with the script because it never runs the camera shake, so then I tried making it a remote event to a local script and it still won’t work. Any help is appreciated

local part = script.Parent
local pdiddy = script.Parent.Decal
local particle = script.Parent.ParticleEmitter
local clash = script.Parent.MiniSparks
local s1 = script.Parent.OpenSound
local s2 = script.Parent["taco gear - eat sound effect (high quality)"]
local s3 = script.Parent["Sword Clash (Strong Sword Clash)"]
local Players = game:GetService("Players")
local dub = game.ReplicatedStorage.DUBCAM
local function hitEmUp(targetHumanoidRoot)
	local Speed = 49
	local Force = 80000

	local TotalForce = Force

	local KnockBack = Instance.new("BodyVelocity")
	KnockBack.Parent = targetHumanoidRoot
	KnockBack.MaxForce = Vector3.new(TotalForce, TotalForce, TotalForce)
	KnockBack.Velocity = part.CFrame.LookVector * Speed 
	task.wait(1)
	KnockBack:Destroy()
	
	
end
part.Touched:Connect(function(hit)
	local humanoidRoot = hit.Parent:FindFirstChild("HumanoidRootPart")
	local head = hit.Parent:FindFirstChild("Head")
	local player = Players:GetPlayerFromCharacter(hit.Parent)

	if humanoidRoot and head and player then
		s3:Play()
		dub:FireClient(player)  
		clash:Emit()
		hitEmUp(humanoidRoot) 
		s1:Play()
		task.wait(2)
	end
end)


local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("DUBCAM")
local camera = workspace.CurrentCamera

local CameraShaker = require(game.ReplicatedStorage.CameraShaker)

local camShake = CameraShaker.new(Enum.RenderPriority.Camera.Value, function(shakeCFrame)
	camera.CFrame = camera.CFrame * shakeCFrame
end)

camShake:Start()

local function imGONNALOSEMYMIND()
	print("REFSVSVVREGVREVRTEBTRBTRBTR")
	camShake:ShakeOnce(5, 10, 0, 1.5)
end

remoteEvent.OnClientEvent:Connect(imGONNALOSEMYMIND)

I rebuilt that to make it easyer to use. it’s here

1 Like

Thank you so much dude! I wouldve been stuck trying to get that stupid stuff working for the next day

1 Like

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