Hello I was working on an NPC system for my game
There is an if statement checking if the NPC is walking
I want it where if the NPC is not walking then you can talk to the NPC
Here is my code
local Character = script.Parent
local States = Character.States
Character.HumanoidRootPart.Attachment.ProximityPrompt.Triggered:Connect(function(player)
if not States.Walking.Value then
-- code to enable a textbox
else
warn(Character.Name.. " can't talk right now")
end
end)