I made a local script that fire a remote event when you press left click, heres the script:
local debounce = false
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
script.Parent.Activated:Connect(function()
if not debounce then
debounce = true
script.RemoteEvent:FireServer(mouse.Hit)
local hum = player.Character.Humanoid
for i = 1,15 do
wait()
hum.CameraOffset = Vector3.new(
math.random(-1,1),
math.random(-1,1),
math.random(-1,1)
)
end
hum.CameraOffset = Vector3.new(0,0,0)
wait(2)
debounce = false
end
end)
Can someone edit this script using Context Action Service and explain how it works
