I Cant Get A Part To Trigger A Client Event

I Am Making A Cutscene And I Made it So When You Touch A Part It Plays. Idk What’s Happening, But It Doesn’t Work. please help:

script.Parent.Touched:Connect(function(hit)
if hit.Parent:IsA(“Humanoid”) then
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
workspace.CutsceneJacob5:MoveTo(Vector3.new(102.172, 4.286, 206.907))
script.Parent.Position = Vector3.new(102.172, 29.397, 208.683)
game:GetService(“ReplicatedStorage”).CutsceneEvents.KnockedOutEvent:FireClient(Player)
else
print(“error”)
end
end)

I think it’s because the character model itself isn’t a humanoid, so you check if a humanoid is a child of the character:

if hit.Parent:FindFirstChildOfClass("Humanoid") then

hit.Parent:FindFirstChild(“Humanoid”)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.