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

Trying to teleport a zombie, error?

ServerScriptService.EventScript:11: invalid argument #3 (Vector3 expected, got string)

 while wait(5) do
	local event = math.random(1, 3)
	if event == 1 then
		print(1)
		game.StarterGui.EventGui.Frame.TextLabel.Text = "Wrath Takes Hold."
		local Wrath1 = game.ReplicatedStorage.Folder.Zombie:Clone()
		local Wrath2 = game.ReplicatedStorage.Folder.Zombie:Clone()
		local Wrath3 = game.ReplicatedStorage.Folder.Zombie:Clone()
		local Wrath4 = game.ReplicatedStorage.Folder.Zombie:Clone()
		Wrath1.Parent = workspace
		Wrath1.HumanoidRootPart.Position = "-633.383, -6.904, 189.149"
		
	else
		if event == 2 then
			print(2)
		else
			if event == 3 then
				print(3)
			end
		end
	end
end

1 answer

✓ Accepted answer

Line 11 should be

Wrath1.HumanoidRootPart.Position = Vector3.new(-633.383, -6.904, 189.149)

as the Position argument takes a vector3 instead of a string.

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