So, I was hired to work in an obby game as the scripter and they wanted me to make a room for the developers of the game only. I have made this script but it works for anyone who touches the block:

script.Parent.Touched:Connect(function(object)
	if object.Parent:FindFirstChild("Humanoid") then
		if object.Parent.Name == "DangerousKillerTimur" or "Merryt" then
			object.Parent:MoveTo(game.Workspace.OCOTpPoint.Position)
		end
	end
end)

Please help.

3 comments

1

I do understand the issue is in the 3 and 4 lines, I have tried to fix it but it seems it won't do anything.

1

if object.Parent.Name == "DangerousKillerTimur" or object.Parent.Name == "Merryt" then

1

Thank you so much it worked.