Give the server information after a delay?

script:

mouse.Button1Down:Connect(function()
	if not db and script.Parent.Humanoid.Health ~= 0 then
		db = true
		db2 = true
		script.Parent.Torso.Anchored = true
		wait(0.15)
		event:FireServer(mouse.Hit.Position,mouse.Hit.LookVector)
		anim:Play()
		wait(0.5)
		script.Parent.Torso.Anchored = false
		wait(1)
		db =false
		db2 = false
	end
	
end)

what i am trying to do is send the server another piece of information after the original event has played, since there will be a second pass, the mouse.hit woulkdn’t be accurate on the server, so i would have to send another one one second later, any idea how?

the server would need an updated piece of information, so is there a way i can possibly delay the information somehow?

you could use a seperate function that gives the function whatever information you need.
(and call that function)

1 Like