Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Anything that can record a player's movements?

Is there any service or event I can use that can record what actions a player does, like jumping, turning left, moving up, etc.?

1 answer

✓ Accepted answer

Perhaps. You could make a value that is increased every time a player jumps; for example

local player = game:GetService("Players").LocalPlayer
local char = player.Character
local jumped = 0
local jumpval = Instance.new("NumberValue",script)
jumpval.Name = "JumpValue"
print(jumped)

while true do wait(.1)
	if char.Humanoid.Jump == true then
		wait(1)
		jumped = jumped+1
		jumpval.Value = jumped
	end
end



For moving, you could record the changes in the position of the character like

A = char.Torso.Position

char.Torso.Changed:connect(function()
B= A-char.Torso.Position --Edited; typo :P
end)

Then, of course, you could insert the value of B into a Vector Value.

Hope this helps!

1 comment

0

+1. Great answer.

This discussion is preserved as it was. New answers, comments, and votes are closed.