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

If then statement won't work any help?

simply won't work

nothing much to describe.

Just nothing happens..

local pa = script.Parent -- seat
while wait() do
	local occupant = script.Parent.Occupant
	if occupant == "Humanoid" then
		print("found") -- won't print this
		game.ReplicatedStorage.EnableCameraEvent:FireClient() -- won't fire
		print("fired") -- or this
	end
end

1 answer

✓ Accepted answer

You'll need to do if occupant.Name == 'Humanoid' then

2 comments

0

This should be a comment.

0

Doesn't have to be a comment it was an answer

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