![]() Was messing around with the code above just for fun. RunService.Heartbeat:Connect(function(dt) UserInputService.InputBegan:Connect(handleInputs) If inputObject.Ke圜ode = Enum.Ke圜ode.R and not recording thenĮlseif inputObject.Ke圜ode = Enum.Ke圜ode.R and recording thenĮlseif inputObject.Ke圜ode = Enum.Ke圜ode.C and not recording thenĮlseif inputObject.Ke圜ode = Enum.Ke圜ode.P and not recording then Local function handleInputs(inputObject, typing) Local NPC = workspace:WaitForChild("NPC") Local UserInputService = game:GetService("UserInputService") Local RunService = game:GetService("RunService") Player.CharacterAdded:Connect(onCharacterAdded) HRP = character:WaitForChild("HumanoidRootPart") Humanoid = character:WaitForChild("Humanoid") Local player = game:GetService("Players").LocalPlayer Pseudo-code? (ignore this, more so just me thinking out loud) - Client essentials ![]() My best guess would be to just play the animations yourself as the NPC enters those states. As for physics like the water state, I’m not sure. I think your best shot at this is storing the players HumanoidRootPart CFrame inside of an array and iterating over that, setting the NPCs HumanoidRootPart CFrame.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |